Class RepositoryConnectionShapeSource
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.wrapper.shape.RepositoryConnectionShapeSource
-
- All Implemented Interfaces:
AutoCloseable,ShapeSource
public class RepositoryConnectionShapeSource extends Object implements ShapeSource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.rdf4j.sail.shacl.wrapper.shape.ShapeSource
ShapeSource.Predicates, ShapeSource.ShapesGraph
-
-
Field Summary
-
Fields inherited from interface org.eclipse.rdf4j.sail.shacl.wrapper.shape.ShapeSource
DASH_CONSTANTS
-
-
Constructor Summary
Constructors Constructor Description RepositoryConnectionShapeSource(RepositoryConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Resource[]getActiveContexts()Stream<ShapeSource.ShapesGraph>getAllShapeContexts()Stream<Statement>getAllStatements(Resource id)Stream<Value>getObjects(Resource subject, ShapeSource.Predicates predicate)ValuegetRdfFirst(Resource subject)ResourcegetRdfRest(Resource subject)Stream<Resource>getSubjects(ShapeSource.Predicates predicate)Stream<Resource>getTargetableShape()booleanisType(Resource subject, IRI type)RepositoryConnectionShapeSourcewithContext(Resource[] context)
-
-
-
Constructor Detail
-
RepositoryConnectionShapeSource
public RepositoryConnectionShapeSource(RepositoryConnection connection)
-
-
Method Detail
-
withContext
public RepositoryConnectionShapeSource withContext(Resource[] context)
- Specified by:
withContextin interfaceShapeSource
-
getActiveContexts
public Resource[] getActiveContexts()
- Specified by:
getActiveContextsin interfaceShapeSource
-
getAllShapeContexts
public Stream<ShapeSource.ShapesGraph> getAllShapeContexts()
- Specified by:
getAllShapeContextsin interfaceShapeSource
-
getTargetableShape
public Stream<Resource> getTargetableShape()
- Specified by:
getTargetableShapein interfaceShapeSource
-
isType
public boolean isType(Resource subject, IRI type)
- Specified by:
isTypein interfaceShapeSource
-
getSubjects
public Stream<Resource> getSubjects(ShapeSource.Predicates predicate)
- Specified by:
getSubjectsin interfaceShapeSource
-
getObjects
public Stream<Value> getObjects(Resource subject, ShapeSource.Predicates predicate)
- Specified by:
getObjectsin interfaceShapeSource
-
getAllStatements
public Stream<Statement> getAllStatements(Resource id)
- Specified by:
getAllStatementsin interfaceShapeSource
-
getRdfFirst
public Value getRdfFirst(Resource subject)
- Specified by:
getRdfFirstin interfaceShapeSource
-
getRdfRest
public Resource getRdfRest(Resource subject)
- Specified by:
getRdfRestin interfaceShapeSource
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceShapeSource
-
-