Interface PropertySchema

All Known Subinterfaces:
PropertySchemaFromPropertyShape
All Known Implementing Classes:
PropertySchemaImpl

public interface PropertySchema
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    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.
    long
    copyMatchingValues(org.apache.jena.graph.Node source, Collection<org.apache.jena.graph.Node> target, org.apache.jena.graph.Graph sourceGraph)
     
    org.apache.jena.sparql.path.Path
     
    org.apache.jena.graph.Node
     
    Set<? extends NodeSchema>
     
    boolean
     
    boolean
    matchesTriple(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 -