Package org.topbraid.shacl.engine
Class Shape
- java.lang.Object
-
- org.topbraid.shacl.engine.Shape
-
public class Shape extends Object
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
Constructors Constructor Description Shape(ShapesGraph shapesGraph, SHShape shape)Constructs a new Shape in a given ShapesGraph.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<Constraint>getConstraints()org.apache.jena.rdf.model.PropertygetInversePredicate()org.apache.jena.sparql.path.PathgetJenaPath()Collection<org.apache.jena.rdf.model.RDFNode>getMessages()DoublegetOrder()org.apache.jena.rdf.model.ResourcegetPath()org.apache.jena.rdf.model.PropertygetPredicate()org.apache.jena.rdf.model.ResourcegetSeverity()SHShapegetShapeResource()ShapesGraphgetShapesGraph()Set<org.apache.jena.rdf.model.RDFNode>getTargetNodes(org.apache.jena.query.Dataset dataset)List<Target>getTargets()booleanisDeactivated()booleanisNodeShape()StringtoString()
-
-
-
Constructor Detail
-
Shape
public Shape(ShapesGraph shapesGraph, SHShape shape)
Constructs a new Shape in a given ShapesGraph.- Parameters:
shapesGraph- the owning ShapesGraphshape- the Jena resource of the shape
-
-
Method Detail
-
getConstraints
public Iterable<Constraint> getConstraints()
-
getInversePredicate
public org.apache.jena.rdf.model.Property getInversePredicate()
-
getJenaPath
public org.apache.jena.sparql.path.Path getJenaPath()
-
getMessages
public Collection<org.apache.jena.rdf.model.RDFNode> getMessages()
-
getOrder
public Double 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
public SHShape getShapeResource()
-
getShapesGraph
public ShapesGraph getShapesGraph()
-
getTargetNodes
public Set<org.apache.jena.rdf.model.RDFNode> getTargetNodes(org.apache.jena.query.Dataset dataset)
-
isDeactivated
public boolean isDeactivated()
-
isNodeShape
public boolean isNodeShape()
-
-