Class ShexSchema

java.lang.Object
org.apache.jena.shex.ShexSchema

public class ShexSchema extends Object
Shex Schema - a collection of shapes.
  • Method Details

    • shapes

      public static ShexSchema shapes(String source, String baseURI, org.apache.jena.riot.system.PrefixMap prefixes, ShexShape startShape, List<ShexShape> shapes, List<String> imports, List<SemAct> semActs, Map<org.apache.jena.graph.Node,TripleExpression> tripleRefs)
    • getStart

      public ShexShape getStart()
    • getShapes

      public List<ShexShape> getShapes()
      Get all the shapes. This includes the start shape, which has label SysShex.startNode.
    • getTripleExpression

      public TripleExpression getTripleExpression(org.apache.jena.graph.Node label)
      Get all the shapes. This includes the start shape, which has label SysShex.startNode.
    • hasImports

      public boolean hasImports()
    • getImports

      public List<String> getImports()
    • getSource

      public String getSource()
    • getBase

      public String getBase()
    • importsClosure

      public ShexSchema importsClosure()
      Import form of this ShexShape collection. This involves removing the START reference.
    • get

      public ShexShape get(org.apache.jena.graph.Node n)
    • hasShape

      public boolean hasShape(org.apache.jena.graph.Node n)
    • getPrefixMap

      public org.apache.jena.riot.system.PrefixMap getPrefixMap()
    • sameAs

      public boolean sameAs(Object obj)
      Equivalence: same shapes (.equals), same imports, same label to shapes map.
    • getSemActs

      public List<SemAct> getSemActs()