Package org.topbraid.shacl.engine
Class Shape
java.lang.Object
org.topbraid.shacl.engine.Shape
Represents a shape as input to an engine (e.g. validation or rule).
A Shape is mainly a collection of Constraints.
- Author:
- Holger Knublauch
-
Constructor Summary
ConstructorsConstructorDescriptionShape(ShapesGraph shapesGraph, SHShape shape) Constructs a new Shape in a given ShapesGraph. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.rdf.model.Propertyorg.apache.jena.sparql.path.PathCollection<org.apache.jena.rdf.model.RDFNode>getOrder()org.apache.jena.rdf.model.ResourcegetPath()org.apache.jena.rdf.model.Propertyorg.apache.jena.rdf.model.ResourceSet<org.apache.jena.rdf.model.RDFNode>getTargetNodes(org.apache.jena.query.Dataset dataset) booleanbooleantoString()
-
Constructor Details
-
Shape
Constructs a new Shape in a given ShapesGraph.- Parameters:
shapesGraph- the owning ShapesGraphshape- the Jena resource of the shape
-
-
Method Details
-
getConstraints
-
getInversePredicate
public org.apache.jena.rdf.model.Property getInversePredicate() -
getJenaPath
public org.apache.jena.sparql.path.Path getJenaPath() -
getMessages
-
getOrder
-
getPath
public org.apache.jena.rdf.model.Resource getPath() -
getPredicate
public org.apache.jena.rdf.model.Property getPredicate() -
getSeverity
public org.apache.jena.rdf.model.Resource getSeverity() -
getShapeResource
-
getShapesGraph
-
getTargetNodes
-
getTargets
-
isDeactivated
public boolean isDeactivated() -
isNodeShape
public boolean isNodeShape() -
toString
-