Class SailConnectionShapeSource
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.wrapper.shape.SailConnectionShapeSource
-
- All Implemented Interfaces:
java.lang.AutoCloseable,ShapeSource
public class SailConnectionShapeSource 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 SailConnectionShapeSource(SailConnection connection)privateSailConnectionShapeSource(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)private java.util.stream.Stream<Resource>getContext(ShapeSource.Predicates predicate)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)SailConnectionShapeSourcewithContext(Resource[] context)
-
-
-
Field Detail
-
connection
private final SailConnection connection
-
context
private final Resource[] context
-
-
Constructor Detail
-
SailConnectionShapeSource
public SailConnectionShapeSource(SailConnection connection)
-
SailConnectionShapeSource
private SailConnectionShapeSource(SailConnection connection, Resource[] context)
-
-
Method Detail
-
withContext
public SailConnectionShapeSource 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
-
getContext
private java.util.stream.Stream<Resource> getContext(ShapeSource.Predicates predicate)
-
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
-
-