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 SailConnection
connection
private 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)
private
SailConnectionShapeSource(SailConnection connection, Resource[] context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
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)
Value
getRdfFirst(Resource subject)
Resource
getRdfRest(Resource subject)
java.util.stream.Stream<Resource>
getSubjects(ShapeSource.Predicates predicate)
java.util.stream.Stream<Resource>
getTargetableShape()
boolean
isType(Resource subject, IRI type)
SailConnectionShapeSource
withContext(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:
withContext
in interfaceShapeSource
-
getActiveContexts
public Resource[] getActiveContexts()
- Specified by:
getActiveContexts
in interfaceShapeSource
-
getAllShapeContexts
public java.util.stream.Stream<ShapeSource.ShapesGraph> getAllShapeContexts()
- Specified by:
getAllShapeContexts
in interfaceShapeSource
-
getContext
private java.util.stream.Stream<Resource> getContext(ShapeSource.Predicates predicate)
-
getTargetableShape
public java.util.stream.Stream<Resource> getTargetableShape()
- Specified by:
getTargetableShape
in interfaceShapeSource
-
isType
public boolean isType(Resource subject, IRI type)
- Specified by:
isType
in interfaceShapeSource
-
getSubjects
public java.util.stream.Stream<Resource> getSubjects(ShapeSource.Predicates predicate)
- Specified by:
getSubjects
in interfaceShapeSource
-
getObjects
public java.util.stream.Stream<Value> getObjects(Resource subject, ShapeSource.Predicates predicate)
- Specified by:
getObjects
in interfaceShapeSource
-
getAllStatements
public java.util.stream.Stream<Statement> getAllStatements(Resource id)
- Specified by:
getAllStatements
in interfaceShapeSource
-
getRdfFirst
public Value getRdfFirst(Resource subject)
- Specified by:
getRdfFirst
in interfaceShapeSource
-
getRdfRest
public Resource getRdfRest(Resource subject)
- Specified by:
getRdfRest
in interfaceShapeSource
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceShapeSource
-
-