Class SHPropertyShapeImpl

    • Field Summary

      • Fields inherited from class org.apache.jena.rdf.model.impl.ResourceImpl

        factory, rdfNodeFactory
      • Fields inherited from class org.apache.jena.enhanced.EnhNode

        enhGraph, node
    • Constructor Summary

      Constructors 
      Constructor Description
      SHPropertyShapeImpl​(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph graph)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.jena.rdf.model.Resource getClassOrDatatype()
      Gets the declared sh:class or sh:datatype (if any).
      org.apache.jena.rdf.model.Resource getContext()
      Returns either sh:NodeShape or sh:PropertyShape.
      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.
      String toString()  
      • Methods inherited from class org.apache.jena.rdf.model.impl.ResourceImpl

        abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, asLiteral, asResource, begin, commit, getId, getLocalName, getModel, getModelCom, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, mustHaveModel, removeAll, removeProperties, visitWith
      • Methods inherited from class org.apache.jena.enhanced.EnhNode

        as, asNode, canAs, canSupport, convertTo, equals, getGraph, getPersonality, hashCode, isAnon, isLiteral, isResource, isStmtResource, isURIResource, isValid, viewAs
      • Methods inherited from class org.apache.jena.enhanced.Polymorphic

        addView, alreadyHasView, asInternal, supports
      • 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
    • Constructor Detail

      • SHPropertyShapeImpl

        public SHPropertyShapeImpl​(org.apache.jena.graph.Node node,
                                   org.apache.jena.enhanced.EnhGraph graph)
    • Method Detail

      • getClassOrDatatype

        public org.apache.jena.rdf.model.Resource getClassOrDatatype()
        Description copied from interface: SHPropertyShape
        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.
        Specified by:
        getClassOrDatatype in interface SHPropertyShape
        Returns:
        the value type or data type
      • getContext

        public org.apache.jena.rdf.model.Resource getContext()
        Description copied from interface: SHShape
        Returns either sh:NodeShape or sh:PropertyShape.
        Specified by:
        getContext in interface SHShape
        Returns:
        the context
      • getPredicate

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

        public String getVarName()
        Description copied from interface: SHPropertyShape
        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.
        Specified by:
        getVarName in interface SHPropertyShape
        Returns:
        the variable name
      • toString

        public String toString()
        Specified by:
        toString in interface org.apache.jena.rdf.model.RDFNode
        Specified by:
        toString in interface org.apache.jena.rdf.model.Resource
        Overrides:
        toString in class org.apache.jena.rdf.model.impl.ResourceImpl