Class CombinedShapeSource
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.wrapper.shape.CombinedShapeSource
-
- All Implemented Interfaces:
java.lang.AutoCloseable,ShapeSource
public class CombinedShapeSource 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 BackwardChainingShapeSourcebaseSailprivate Resource[]contextprivate Rdf4jShaclShapeGraphShapeSourcerdf4jShapesGraph-
Fields inherited from interface org.eclipse.rdf4j.sail.shacl.wrapper.shape.ShapeSource
DASH_CONSTANTS
-
-
Constructor Summary
Constructors Modifier Constructor Description CombinedShapeSource(RepositoryConnection shapesForForwardChainingConnection, SailConnection sailConnection)privateCombinedShapeSource(RepositoryConnection shapesForForwardChainingConnection, SailConnection sailConnection, Resource[] context)CombinedShapeSource(SailConnection shapesForForwardChainingConnection, SailConnection sailConnection)privateCombinedShapeSource(SailConnection shapesForForwardChainingConnection, SailConnection sailConnection, Resource[] context)privateCombinedShapeSource(Rdf4jShaclShapeGraphShapeSource rdf4jShapesGraph, BackwardChainingShapeSource baseSail, 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()booleanisType(Resource subject, IRI type)ShapeSourcewithContext(Resource[] context)
-
-
-
Field Detail
-
rdf4jShapesGraph
private final Rdf4jShaclShapeGraphShapeSource rdf4jShapesGraph
-
baseSail
private final BackwardChainingShapeSource baseSail
-
context
private final Resource[] context
-
-
Constructor Detail
-
CombinedShapeSource
public CombinedShapeSource(SailConnection shapesForForwardChainingConnection, SailConnection sailConnection)
-
CombinedShapeSource
public CombinedShapeSource(RepositoryConnection shapesForForwardChainingConnection, SailConnection sailConnection)
-
CombinedShapeSource
private CombinedShapeSource(RepositoryConnection shapesForForwardChainingConnection, SailConnection sailConnection, Resource[] context)
-
CombinedShapeSource
private CombinedShapeSource(SailConnection shapesForForwardChainingConnection, SailConnection sailConnection, Resource[] context)
-
CombinedShapeSource
private CombinedShapeSource(Rdf4jShaclShapeGraphShapeSource rdf4jShapesGraph, BackwardChainingShapeSource baseSail, Resource[] context)
-
-
Method Detail
-
withContext
public ShapeSource 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
-
isType
public boolean isType(Resource subject, IRI type)
- Specified by:
isTypein interfaceShapeSource
-
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
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceShapeSource
-
-