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 void
close()
Resource[]
getActiveContexts()
Stream<ShapeSource.ShapesGraph>
getAllShapeContexts()
Stream<Statement>
getAllStatements(Resource id)
Stream<Value>
getObjects(Resource subject, ShapeSource.Predicates predicate)
Value
getRdfFirst(Resource subject)
Resource
getRdfRest(Resource subject)
Stream<Resource>
getSubjects(ShapeSource.Predicates predicate)
Stream<Resource>
getTargetableShape()
boolean
isType(Resource subject, IRI type)
RepositoryConnectionShapeSource
withContext(Resource[] context)
-
-
-
Constructor Detail
-
RepositoryConnectionShapeSource
public RepositoryConnectionShapeSource(RepositoryConnection connection)
-
-
Method Detail
-
withContext
public RepositoryConnectionShapeSource withContext(Resource[] context)
- Specified by:
withContext
in interfaceShapeSource
-
getActiveContexts
public Resource[] getActiveContexts()
- Specified by:
getActiveContexts
in interfaceShapeSource
-
getAllShapeContexts
public Stream<ShapeSource.ShapesGraph> getAllShapeContexts()
- Specified by:
getAllShapeContexts
in interfaceShapeSource
-
getTargetableShape
public Stream<Resource> getTargetableShape()
- Specified by:
getTargetableShape
in interfaceShapeSource
-
isType
public boolean isType(Resource subject, IRI type)
- Specified by:
isType
in interfaceShapeSource
-
getSubjects
public Stream<Resource> getSubjects(ShapeSource.Predicates predicate)
- Specified by:
getSubjects
in interfaceShapeSource
-
getObjects
public Stream<Value> getObjects(Resource subject, ShapeSource.Predicates predicate)
- Specified by:
getObjects
in interfaceShapeSource
-
getAllStatements
public 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 interfaceAutoCloseable
- Specified by:
close
in interfaceShapeSource
-
-