Package org.topbraid.shacl.model
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
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.rdf.model.ResourceGets the declared sh:class or sh:datatype (if any).Gets the sh:description, if it exists.getName()Gets the sh:name, if it exists.getOrder()Gets the sh:order of thisorg.apache.jena.rdf.model.PropertyGets 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
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, toStringMethods inherited from interface org.topbraid.shacl.model.SHShape
getContext, getPath, getPropertyShapes, getPropertyShapes, getRules, getSeverity, hasTargetNode, isDeactivated, isPropertyShape
-
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
-