Package org.aksw.jena_sparql_api.schema
Interface PropertySchema
- All Known Subinterfaces:
PropertySchemaFromPropertyShape
- All Known Implementing Classes:
PropertySchemaImpl
public interface PropertySchema
-
Method Summary
Modifier and TypeMethodDescriptionbooleanlongcopyMatchingTriples(org.apache.jena.graph.Node source, org.apache.jena.graph.Graph targetGraph, org.apache.jena.graph.Graph sourceGraph) Copy triples that match the predicate specification from the source graph into the target graph.longcopyMatchingValues(org.apache.jena.graph.Node source, Collection<org.apache.jena.graph.Node> target, org.apache.jena.graph.Graph sourceGraph) org.apache.jena.sparql.path.PathgetPath()org.apache.jena.graph.NodeSet<? extends NodeSchema>booleanbooleanmatchesTriple(org.apache.jena.graph.Node source, org.apache.jena.graph.Triple triple) Stream<org.apache.jena.graph.Triple>streamMatchingTriples(org.apache.jena.graph.Node source, org.apache.jena.graph.Graph sourceGraph) Return a stream of the triples in sourceGraph that match this predicate schema for the given starting node.
-
Method Details
-
getPredicate
org.apache.jena.graph.Node getPredicate() -
isForward
boolean isForward() -
getPath
org.apache.jena.sparql.path.Path getPath() -
getTargetSchemas
Set<? extends NodeSchema> getTargetSchemas() -
canMatchTriples
boolean canMatchTriples() -
matchesTriple
boolean matchesTriple(org.apache.jena.graph.Node source, org.apache.jena.graph.Triple triple) -
copyMatchingValues
long copyMatchingValues(org.apache.jena.graph.Node source, Collection<org.apache.jena.graph.Node> target, org.apache.jena.graph.Graph sourceGraph) -
streamMatchingTriples
Stream<org.apache.jena.graph.Triple> streamMatchingTriples(org.apache.jena.graph.Node source, org.apache.jena.graph.Graph sourceGraph) Return a stream of the triples in sourceGraph that match this predicate schema for the given starting node.- Parameters:
source-sourceGraph-- Returns:
-
copyMatchingTriples
long copyMatchingTriples(org.apache.jena.graph.Node source, org.apache.jena.graph.Graph targetGraph, org.apache.jena.graph.Graph sourceGraph) Copy triples that match the predicate specification from the source graph into the target graph.- Parameters:
target-source-
-