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
public interface SHPropertyShape extends SHShape
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.jena.rdf.model.ResourcegetClassOrDatatype()Gets the declared sh:class or sh:datatype (if any).StringgetCountDisplayString()StringgetDescription()Gets the sh:description, if it exists.IntegergetMaxCount()IntegergetMinCount()StringgetName()Gets the sh:name, if it exists.IntegergetOrder()Gets the sh:order of thisorg.apache.jena.rdf.model.PropertygetPredicate()Gets the property represented by the sh:path, assuming it's a IRI.StringgetVarName()Gets the variable name associated with this.-
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
-
Methods inherited from interface org.topbraid.shacl.model.SHShape
getContext, getPath, getPropertyShapes, getPropertyShapes, getRules, getSeverity, hasTargetNode, isDeactivated, isPropertyShape
-
-
-
-
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
-
-