Interface SHPropertyShape

All Superinterfaces:
org.apache.jena.graph.FrontsNode, org.apache.jena.rdf.model.RDFNode, org.apache.jena.rdf.model.Resource, SHResource, SHShape
All Known Subinterfaces:
SHParameter
All Known Implementing Classes:
SHParameterImpl, SHPropertyShapeImpl

public interface SHPropertyShape extends SHShape
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.jena.rdf.model.Resource
    Gets the declared sh:class or sh:datatype (if any).
     
    Gets the sh:description, if it exists.
     
     
    Gets the sh:name, if it exists.
    Gets the sh:order of this
    org.apache.jena.rdf.model.Property
    Gets the property represented by the sh:path, assuming it's a IRI.
    Gets the variable name associated with this.

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

    asNode

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

    as, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isStmtResource, 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, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties, toString
  • Method Details

    • getClassOrDatatype

      org.apache.jena.rdf.model.Resource getClassOrDatatype()
      Gets the declared sh:class or sh:datatype (if any). If none is declared, falls back to sh:nodeKind, e.g. returning rdfs:Resource if sh:nodeKind is sh:IRI.
      Returns:
      the value type or data type
    • getCountDisplayString

      String getCountDisplayString()
    • getDescription

      String getDescription()
      Gets the sh:description, if it exists.
      Returns:
      the description or null
    • getMaxCount

      Integer getMaxCount()
    • getMinCount

      Integer getMinCount()
    • getName

      String getName()
      Gets the sh:name, if it exists.
      Returns:
      the name or null
    • getOrder

      Integer getOrder()
      Gets the sh:order of this
      Returns:
      the order or null no sh:order is given
    • getPredicate

      org.apache.jena.rdf.model.Property getPredicate()
      Gets the property represented by the sh:path, assuming it's a IRI. Returns null if it's a property path (blank node).
      Returns:
      the predicate or null
    • getVarName

      String getVarName()
      Gets the variable name associated with this. This is the local name of the predicate, i.e. implementations can assume that this value is not null iff getPredicate() != null.
      Returns:
      the variable name