Interface SHPropertyShape

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.apache.jena.rdf.model.Resource getClassOrDatatype()
      Gets the declared sh:class or sh:datatype (if any).
      String getCountDisplayString()  
      String getDescription()
      Gets the sh:description, if it exists.
      Integer getMaxCount()  
      Integer getMinCount()  
      String getName()
      Gets the sh:name, if it exists.
      Integer getOrder()
      Gets the sh:order of this
      org.apache.jena.rdf.model.Property getPredicate()
      Gets the property represented by the sh:path, assuming it's a IRI.
      String getVarName()
      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 Detail

      • 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