Class Shex

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

public class Shex extends Object
See Also:
  • Field Details

    • FOCUS

      public static org.apache.jena.graph.Node FOCUS
      Node used for FOCUS in a shape map.
  • Constructor Details

    • Shex

      public Shex()
  • Method Details

    • schemaFromString

      public static ShexSchema schemaFromString(String inputStr)
      Parse the string in ShExC syntax to produce a ShEx schema.
      Parameters:
      inputStr -
      Returns:
      ShexSchema
    • schemaFromString

      public static ShexSchema schemaFromString(String inputStr, String baseURI)
      Parse the string in ShExC syntax to produce a ShEx schema.
      Parameters:
      inputStr -
      baseURI -
      Returns:
      ShexSchema
    • readSchema

      public static ShexSchema readSchema(String filenameOrURL)
      Read the file to produce a ShEx schema.
      Parameters:
      filenameOrURL -
      Returns:
      ShexSchema
    • readSchema

      public static ShexSchema readSchema(String filenameOrURL, String base)
      Read the file to produce a ShEx schema.
      Parameters:
      filenameOrURL -
      base -
      Returns:
      ShexSchema
    • printSchema

      public static void printSchema(ShexSchema shexSchema)
      Print shapes - the format details the internal structure
    • printSchema

      public static void printSchema(OutputStream outStream, ShexSchema shexSchema)
      Print shapes - the format details the internal structure
    • printSchema

      public static void printSchema(org.apache.jena.atlas.io.IndentedWriter iOut, ShexSchema shexSchema)
      Print shapes - the format details the internal structure
    • readShapeMap

      public static ShapeMap readShapeMap(String filename)
      Parse the file to get a ShEx shape map.
      Parameters:
      filename -
      Returns:
      ShexShapeMap
    • readShapeMap

      public static ShapeMap readShapeMap(String filename, String baseURI)
      Parse the file to get a ShEx shape map.
      Parameters:
      filename -
      baseURI -
      Returns:
      ShexShapeMap
    • readShapeMap

      public static ShapeMap readShapeMap(InputStream input, String baseURI)
      Parse the InputStream to get a ShEx shape map.
      Parameters:
      input -
      baseURI -
      Returns:
      ShexShapeMap
    • shapeMapFromString

      public static ShapeMap shapeMapFromString(String inputStr, String baseURI)
      Parse a shape map from a StringReader.
      Parameters:
      inputStr -
      baseURI -
      Returns:
      ShexShapeMap
    • readShapeMapJson

      public static ShapeMap readShapeMapJson(String filenameOrURL)
      Read a ShapeMap from a file or URL.
    • readShapeMapJson

      public static ShapeMap readShapeMapJson(InputStream input)
      Parse the InputStream to get a ShEx shape map from JSON syntax.
      Parameters:
      input -
      Returns:
      ShexShapeMap