Class BackwardChainingShapeSource
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.wrapper.shape.BackwardChainingShapeSource
-
- All Implemented Interfaces:
java.lang.AutoCloseable,ShapeSource
public class BackwardChainingShapeSource extends java.lang.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 Modifier and Type Field Description private SailConnectionconnectionprivate Resource[]context-
Fields inherited from interface org.eclipse.rdf4j.sail.shacl.wrapper.shape.ShapeSource
DASH_CONSTANTS
-
-
Constructor Summary
Constructors Modifier Constructor Description BackwardChainingShapeSource(SailConnection connection)privateBackwardChainingShapeSource(SailConnection connection, Resource[] context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Resource[]getActiveContexts()java.util.stream.Stream<ShapeSource.ShapesGraph>getAllShapeContexts()java.util.stream.Stream<Statement>getAllStatements(Resource id)java.util.stream.Stream<Value>getObjects(Resource subject, ShapeSource.Predicates predicate)ValuegetRdfFirst(Resource subject)ResourcegetRdfRest(Resource subject)java.util.stream.Stream<Resource>getSubjects(ShapeSource.Predicates predicate)java.util.stream.Stream<Resource>getTargetableShape()private booleanisNodeShapeOrPropertyShape(Resource id)booleanisType(Resource subject, IRI type)BackwardChainingShapeSourcewithContext(Resource[] context)
-
-
-
Field Detail
-
connection
private final SailConnection connection
-
context
private final Resource[] context
-
-
Constructor Detail
-
BackwardChainingShapeSource
public BackwardChainingShapeSource(SailConnection connection)
-
BackwardChainingShapeSource
private BackwardChainingShapeSource(SailConnection connection, Resource[] context)
-
-
Method Detail
-
withContext
public BackwardChainingShapeSource withContext(Resource[] context)
- Specified by:
withContextin interfaceShapeSource
-
getActiveContexts
public Resource[] getActiveContexts()
- Specified by:
getActiveContextsin interfaceShapeSource
-
getAllShapeContexts
public java.util.stream.Stream<ShapeSource.ShapesGraph> getAllShapeContexts()
- Specified by:
getAllShapeContextsin interfaceShapeSource
-
getTargetableShape
public java.util.stream.Stream<Resource> getTargetableShape()
- Specified by:
getTargetableShapein interfaceShapeSource
-
isNodeShapeOrPropertyShape
private boolean isNodeShapeOrPropertyShape(Resource id)
-
getSubjects
public java.util.stream.Stream<Resource> getSubjects(ShapeSource.Predicates predicate)
- Specified by:
getSubjectsin interfaceShapeSource
-
getObjects
public java.util.stream.Stream<Value> getObjects(Resource subject, ShapeSource.Predicates predicate)
- Specified by:
getObjectsin interfaceShapeSource
-
getAllStatements
public java.util.stream.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
-
isType
public boolean isType(Resource subject, IRI type)
- Specified by:
isTypein interfaceShapeSource
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceShapeSource
-
-