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 ShapeSource
ShapeSource.Predicates, ShapeSource.ShapesGraph -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RepositoryConnectionprivate final Resource[]private final Repositoryprivate static final SchemaCachingRDFSInferencerprivate static final IRIFields inherited from interface ShapeSource
DASH_CONSTANTS -
Constructor Summary
ConstructorsModifierConstructorDescriptionRdf4jShaclShapeGraphShapeSource(RepositoryConnection connection) privateRdf4jShaclShapeGraphShapeSource(Repository repository, RepositoryConnection connection, Resource[] context) Rdf4jShaclShapeGraphShapeSource(SailConnection connection) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private static SchemaCachingRDFSInferencerprivate voidenrichShapes(RepositoryConnection shaclSailConnection) private SailRepositoryforwardChain(CloseableIteration<? extends Statement, ? extends RDF4JException> statements) private SailRepositoryforwardChain(RepositoryConnection shapesRepoConnection) private SailRepositoryforwardChain(SailConnection shapesSailConnection) Resource[]getObjects(Resource subject, ShapeSource.Predicates predicate) getRdfFirst(Resource subject) getRdfRest(Resource subject) private static InputStreamgetResourceAsStream(String filename) getSubjects(ShapeSource.Predicates predicate) private voidimplicitTargetClass(RepositoryConnection shaclSailConnection) booleanwithContext(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:
withContextin interfaceShapeSource
-
getActiveContexts
- Specified by:
getActiveContextsin interfaceShapeSource
-
getAllShapeContexts
- Specified by:
getAllShapeContextsin interfaceShapeSource
-
getTargetableShape
- Specified by:
getTargetableShapein interfaceShapeSource
-
isType
- Specified by:
isTypein interfaceShapeSource
-
getSubjects
- Specified by:
getSubjectsin interfaceShapeSource
-
getObjects
- Specified by:
getObjectsin interfaceShapeSource
-
getAllStatements
- Specified by:
getAllStatementsin interfaceShapeSource
-
getRdfFirst
- Specified by:
getRdfFirstin interfaceShapeSource
-
getRdfRest
- Specified by:
getRdfRestin interfaceShapeSource
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceShapeSource
-