Class 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 Detail

      • 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 Detail

      • 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()
      • getTargetNodes

        public Set<org.apache.jena.rdf.model.RDFNode> getTargetNodes​(org.apache.jena.query.Dataset dataset)
      • isDeactivated

        public boolean isDeactivated()
      • isNodeShape

        public boolean isNodeShape()