Class SHParameterizableImpl

    • 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
      SHParameterizableImpl​(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
      String getLabelTemplate()
      Gets the sh:labelTemplate if that exists.
      List<SHParameter> getOrderedParameters()
      Gets an ordered List of all declared SHParameters, based on sh:order values (if one of them exists), then the local names of the path predicates.
      List<SHParameter> getParameters()
      Gets an unordered List of all declared Parameters.
      Map<String,​SHParameter> getParametersMap()
      Gets a Map of variable names to Parameters.
      boolean isOptionalParameter​(org.apache.jena.rdf.model.Property predicate)
      Checks if one of the sh:parameters declaring a given predicate is also marked as sh:optional true.
      • 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, toString, 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, toString
    • Constructor Detail

      • SHParameterizableImpl

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

      • getOrderedParameters

        public List<SHParameter> getOrderedParameters()
        Description copied from interface: SHParameterizable
        Gets an ordered List of all declared SHParameters, based on sh:order values (if one of them exists), then the local names of the path predicates.
        Specified by:
        getOrderedParameters in interface SHParameterizable
        Returns:
        the (possibly empty) List of SHParameters
      • isOptionalParameter

        public boolean isOptionalParameter​(org.apache.jena.rdf.model.Property predicate)
        Description copied from interface: SHParameterizable
        Checks if one of the sh:parameters declaring a given predicate is also marked as sh:optional true.
        Specified by:
        isOptionalParameter in interface SHParameterizable
        Parameters:
        predicate - the predicate to check
        Returns:
        true if there is an optional declaration for the given predicate