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 Details

    • Shape

      public Shape(ShapesGraph shapesGraph, SHShape shape)
      Constructs a new Shape in a given ShapesGraph.
      Parameters:
      shapesGraph - the owning ShapesGraph
      shape - the Jena resource of the shape
  • Method Details

    • 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)
    • getTargets

      public List<Target> getTargets()
    • isDeactivated

      public boolean isDeactivated()
    • isNodeShape

      public boolean isNodeShape()
    • toString

      public String toString()
      Overrides:
      toString in class Object