public interface SHShape extends SHResource
| Modifier and Type | Method and Description |
|---|---|
org.apache.jena.rdf.model.Resource |
getContext()
Returns either sh:NodeShape or sh:PropertyShape.
|
org.apache.jena.rdf.model.Resource |
getPath()
Gets the value resource of sh:path or null (for node shapes).
|
List<SHPropertyShape> |
getPropertyShapes()
Gets all property shapes declared for this shape using either sh:parameter or sh:property.
|
List<SHPropertyShape> |
getPropertyShapes(org.apache.jena.rdf.model.RDFNode predicate)
Gets all property shapes declared for this shape using either sh:parameter or sh:property
that are about a given predicate.
|
Iterable<SHRule> |
getRules()
Gets the rules attached to this shape via sh:rule.
|
org.apache.jena.rdf.model.Resource |
getSeverity()
Returns the sh:severity of this shape, defaulting to sh:Violation.
|
boolean |
hasTargetNode(org.apache.jena.rdf.model.RDFNode node)
Checks if a given node is in the target of this shape.
|
boolean |
isDeactivated()
Checks if this shape has been deactivated.
|
boolean |
isPropertyShape()
Checks if this is a property shape, based on the presence or absence of sh:path.
|
abort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties, toStringorg.apache.jena.rdf.model.Resource getContext()
org.apache.jena.rdf.model.Resource getPath()
List<SHPropertyShape> getPropertyShapes()
List<SHPropertyShape> getPropertyShapes(org.apache.jena.rdf.model.RDFNode predicate)
predicate - the predicateIterable<SHRule> getRules()
org.apache.jena.rdf.model.Resource getSeverity()
boolean hasTargetNode(org.apache.jena.rdf.model.RDFNode node)
node - the node to testboolean isDeactivated()
boolean isPropertyShape()
Copyright © 2019 TopQuadrant, Inc.. All rights reserved.