Interface PropertySchemaFromPropertyShape

All Superinterfaces:
org.apache.jena.graph.FrontsNode, PropertySchema, org.apache.jena.rdf.model.RDFNode, org.apache.jena.rdf.model.Resource

public interface PropertySchemaFromPropertyShape extends PropertySchema, org.apache.jena.rdf.model.Resource
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
     
    default 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.
    default long
    copyMatchingValues(org.apache.jena.graph.Node source, Collection<org.apache.jena.graph.Node> target, org.apache.jena.graph.Graph sourceGraph)
     
    default org.apache.jena.graph.Triple
    createMatchTriple(org.apache.jena.graph.Node source)
     
     
     
     
    default org.apache.jena.sparql.path.Path
     
    default org.apache.jena.graph.Node
     
    default org.topbraid.shacl.model.SHPropertyShape
     
     
     
    default boolean
     
    default boolean
    matchesTriple(org.apache.jena.graph.Node source, org.apache.jena.graph.Triple triple)
     
    setDataTypeIri(String datatypeIri)
     
     
     
    setSHClass(org.apache.jena.rdf.model.Resource shClass)
     
    default 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.

    Methods inherited from interface org.apache.jena.graph.FrontsNode

    asNode

    Methods inherited from interface org.apache.jena.rdf.model.RDFNode

    as, asLiteral, asResource, asStatementTerm, canAs, getModel, isAnon, isLiteral, isResource, isStatementTerm, isURIResource, visitWith

    Methods inherited from interface org.apache.jena.rdf.model.Resource

    abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties, toString
  • Method Details

    • getPropertyShape

      default org.topbraid.shacl.model.SHPropertyShape getPropertyShape()
    • getSHClass

      SHAnnotatedClass getSHClass()
    • setSHClass

      PropertySchemaFromPropertyShape setSHClass(org.apache.jena.rdf.model.Resource shClass)
    • getDataTypeIri

      String getDataTypeIri()
    • setDataTypeIri

      PropertySchemaFromPropertyShape setDataTypeIri(String datatypeIri)
    • getMinCount

      Long getMinCount()
    • setMinCount

    • getMaxCount

      Long getMaxCount()
    • setMaxCount

    • getPredicate

      default org.apache.jena.graph.Node getPredicate()
      Specified by:
      getPredicate in interface PropertySchema
    • isForward

      default boolean isForward()
      Specified by:
      isForward in interface PropertySchema
    • getPath

      default org.apache.jena.sparql.path.Path getPath()
      Specified by:
      getPath in interface PropertySchema
    • getTargetSchemas

      default Set<NodeSchemaFromNodeShape> getTargetSchemas()
      Specified by:
      getTargetSchemas in interface PropertySchema
    • canMatchTriples

      default boolean canMatchTriples()
      Specified by:
      canMatchTriples in interface PropertySchema
    • createMatchTriple

      default org.apache.jena.graph.Triple createMatchTriple(org.apache.jena.graph.Node source)
    • matchesTriple

      default boolean matchesTriple(org.apache.jena.graph.Node source, org.apache.jena.graph.Triple triple)
      Specified by:
      matchesTriple in interface PropertySchema
    • copyMatchingValues

      default long copyMatchingValues(org.apache.jena.graph.Node source, Collection<org.apache.jena.graph.Node> target, org.apache.jena.graph.Graph sourceGraph)
      Specified by:
      copyMatchingValues in interface PropertySchema
    • streamMatchingTriples

      default 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.
      Specified by:
      streamMatchingTriples in interface PropertySchema
      Parameters:
      source -
      sourceGraph -
      Returns:
    • copyMatchingTriples

      default 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.
      Specified by:
      copyMatchingTriples in interface PropertySchema
      Parameters:
      target -
      source -