Class Rdf4jShaclShapeGraphShapeSource
java.lang.Object
org.eclipse.rdf4j.sail.shacl.wrapper.shape.Rdf4jShaclShapeGraphShapeSource
- All Implemented Interfaces:
AutoCloseable
,ShapeSource
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.rdf4j.sail.shacl.wrapper.shape.ShapeSource
ShapeSource.Predicates, ShapeSource.ShapesGraph
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RepositoryConnection
private final Resource[]
private final Repository
private static final SchemaCachingRDFSInferencer
private static final IRI
Fields inherited from interface org.eclipse.rdf4j.sail.shacl.wrapper.shape.ShapeSource
DASH_CONSTANTS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionRdf4jShaclShapeGraphShapeSource
(RepositoryConnection connection) private
Rdf4jShaclShapeGraphShapeSource
(Repository repository, RepositoryConnection connection, Resource[] context) Rdf4jShaclShapeGraphShapeSource
(SailConnection connection) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private static SchemaCachingRDFSInferencer
private void
enrichShapes
(RepositoryConnection shaclSailConnection) private SailRepository
forwardChain
(CloseableIteration<? extends Statement, ? extends RDF4JException> statements) private SailRepository
forwardChain
(RepositoryConnection shapesRepoConnection) private SailRepository
forwardChain
(SailConnection shapesSailConnection) Resource[]
getObjects
(Resource subject, ShapeSource.Predicates predicate) getRdfFirst
(Resource subject) getRdfRest
(Resource subject) private static InputStream
getResourceAsStream
(String filename) getSubjects
(ShapeSource.Predicates predicate) private void
implicitTargetClass
(RepositoryConnection shaclSailConnection) boolean
withContext
(Resource[] context)
-
Field Details
-
shaclVocabularyGraph
-
shaclVocabulary
-
connection
-
context
-
repository
-
-
Constructor Details
-
Rdf4jShaclShapeGraphShapeSource
-
Rdf4jShaclShapeGraphShapeSource
-
Rdf4jShaclShapeGraphShapeSource
private Rdf4jShaclShapeGraphShapeSource(Repository repository, RepositoryConnection connection, Resource[] context)
-
-
Method Details
-
forwardChain
-
forwardChain
-
forwardChain
private SailRepository forwardChain(CloseableIteration<? extends Statement, ? extends RDF4JException> statements) -
createShaclVocabulary
-
getResourceAsStream
-
enrichShapes
-
implicitTargetClass
-
withContext
- Specified by:
withContext
in interfaceShapeSource
-
getActiveContexts
- Specified by:
getActiveContexts
in interfaceShapeSource
-
getAllShapeContexts
- Specified by:
getAllShapeContexts
in interfaceShapeSource
-
getTargetableShape
- Specified by:
getTargetableShape
in interfaceShapeSource
-
isType
- Specified by:
isType
in interfaceShapeSource
-
getSubjects
- Specified by:
getSubjects
in interfaceShapeSource
-
getObjects
- Specified by:
getObjects
in interfaceShapeSource
-
getAllStatements
- Specified by:
getAllStatements
in interfaceShapeSource
-
getRdfFirst
- Specified by:
getRdfFirst
in interfaceShapeSource
-
getRdfRest
- Specified by:
getRdfRest
in interfaceShapeSource
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceShapeSource
-