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 BackwardChainingShapeSource
baseSail
private Resource[]
context
private Rdf4jShaclShapeGraphShapeSource
rdf4jShapesGraph
-
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)
private
CombinedShapeSource(RepositoryConnection shapesForForwardChainingConnection, SailConnection sailConnection, Resource[] context)
CombinedShapeSource(SailConnection shapesForForwardChainingConnection, SailConnection sailConnection)
private
CombinedShapeSource(SailConnection shapesForForwardChainingConnection, SailConnection sailConnection, Resource[] context)
private
CombinedShapeSource(Rdf4jShaclShapeGraphShapeSource rdf4jShapesGraph, BackwardChainingShapeSource baseSail, 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)
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)
ShapeSource
withContext(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:
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
-
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
-
-