public abstract class SHShapeImpl extends SHParameterizableInstanceImpl implements SHShape
| Constructor and Description |
|---|
SHShapeImpl(org.apache.jena.graph.Node node,
org.apache.jena.enhanced.EnhGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addBindings, getParameterizable, getParameterMapByVarNamesabort, 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, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, mustHaveModel, removeAll, removeProperties, toString, visitWithas, asNode, canAs, canSupport, convertTo, equals, getGraph, getPersonality, hashCode, isAnon, isLiteral, isResource, isURIResource, isValid, viewAsaddView, alreadyHasView, asInternal, supportsclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitgetContextabort, 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, toStringpublic SHShapeImpl(org.apache.jena.graph.Node node,
org.apache.jena.enhanced.EnhGraph graph)
public org.apache.jena.rdf.model.Resource getPath()
SHShapepublic List<SHPropertyShape> getPropertyShapes()
SHShapegetPropertyShapes in interface SHShapepublic List<SHPropertyShape> getPropertyShapes(org.apache.jena.rdf.model.RDFNode predicate)
SHShapegetPropertyShapes in interface SHShapepredicate - the predicatepublic Iterable<SHRule> getRules()
SHShapepublic org.apache.jena.rdf.model.Resource getSeverity()
SHShapegetSeverity in interface SHShapepublic boolean hasTargetNode(org.apache.jena.rdf.model.RDFNode node)
SHShapehasTargetNode in interface SHShapenode - the node to testpublic boolean isDeactivated()
SHShapeisDeactivated in interface SHShapepublic boolean isPropertyShape()
SHShapeisPropertyShape in interface SHShapeCopyright © 2019 TopQuadrant, Inc.. All rights reserved.