Package org.topbraid.shacl.model.impl
Class SHParameterizableImpl
java.lang.Object
org.apache.jena.enhanced.Polymorphic<org.apache.jena.rdf.model.RDFNode>
org.apache.jena.enhanced.EnhNode
org.apache.jena.rdf.model.impl.ResourceImpl
org.topbraid.shacl.model.impl.SHResourceImpl
org.topbraid.shacl.model.impl.SHParameterizableImpl
- All Implemented Interfaces:
org.apache.jena.graph.FrontsNode,org.apache.jena.rdf.model.RDFNode,org.apache.jena.rdf.model.Resource,SHParameterizable,SHResource
- Direct Known Subclasses:
SHConstraintComponentImpl,SHJSFunctionImpl,SHSPARQLFunctionImpl
-
Field Summary
Fields inherited from class org.apache.jena.rdf.model.impl.ResourceImpl
factory, rdfNodeFactoryFields inherited from class org.apache.jena.enhanced.EnhNode
enhGraph, node -
Constructor Summary
ConstructorsConstructorDescriptionSHParameterizableImpl(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph graph) -
Method Summary
Modifier and TypeMethodDescriptionGets the sh:labelTemplate if that exists.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.Gets an unordered List of all declared Parameters.Gets a Map of variable names to Parameters.booleanisOptionalParameter(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, visitWithMethods inherited from class org.apache.jena.enhanced.EnhNode
as, asNode, canAs, canSupport, convertTo, equals, getGraph, getPersonality, hashCode, isAnon, isLiteral, isResource, isStmtResource, isURIResource, isValid, viewAsMethods inherited from class org.apache.jena.enhanced.Polymorphic
addView, alreadyHasView, asInternal, supportsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jena.graph.FrontsNode
asNodeMethods inherited from interface org.apache.jena.rdf.model.RDFNode
as, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isStmtResource, isURIResource, visitWithMethods 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 Details
-
SHParameterizableImpl
public SHParameterizableImpl(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph graph)
-
-
Method Details
-
getParameters
Description copied from interface:SHParameterizableGets an unordered List of all declared Parameters.- Specified by:
getParametersin interfaceSHParameterizable- Returns:
- the (possibly empty) List of Parameters
-
getParametersMap
Description copied from interface:SHParameterizableGets a Map of variable names to Parameters.- Specified by:
getParametersMapin interfaceSHParameterizable- Returns:
- a Map of variable names to Parameters
-
getLabelTemplate
Description copied from interface:SHParameterizableGets the sh:labelTemplate if that exists.- Specified by:
getLabelTemplatein interfaceSHParameterizable- Returns:
- the label template string or null
-
getOrderedParameters
Description copied from interface:SHParameterizableGets 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:
getOrderedParametersin interfaceSHParameterizable- Returns:
- the (possibly empty) List of SHParameters
-
isOptionalParameter
public boolean isOptionalParameter(org.apache.jena.rdf.model.Property predicate) Description copied from interface:SHParameterizableChecks if one of the sh:parameters declaring a given predicate is also marked as sh:optional true.- Specified by:
isOptionalParameterin interfaceSHParameterizable- Parameters:
predicate- the predicate to check- Returns:
- true if there is an optional declaration for the given predicate
-