Class Shex

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Node FOCUS
      Node used for FOCUS in a shape map.
    • Constructor Summary

      Constructors 
      Constructor Description
      Shex()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void printSchema​(ShexSchema shapes)
      Print shapes - the format details the internal structure
      static ShexSchema readSchema​(java.lang.String filenameOrURL)
      Read the file to produce a ShEx schema.
      static ShexSchema readSchema​(java.lang.String filenameOrURL, java.lang.String base)
      Read the file to produce a ShEx schema.
      static ShexMap readShapeMap​(java.io.InputStream input, java.lang.String baseURI)
      Parse the InputStream to get a ShEx shape map.
      static ShexMap readShapeMap​(java.lang.String filename)
      Parse the file to get a ShEx shape map.
      static ShexMap readShapeMap​(java.lang.String filename, java.lang.String baseURI)
      Parse the file to get a ShEx shape map.
      static ShexMap readShapeMapJson​(java.io.InputStream input)
      Parse the InputStream to get a ShEx shape map from JSON syntax.
      static ShexMap readShapeMapJson​(java.lang.String filenameOrURL)
      Read a ShexMap from a file or URL.
      static ShexSchema schemaFromString​(java.lang.String inputStr)
      Parse the string in ShExC syntax to produce a ShEx schema.
      static ShexSchema schemaFromString​(java.lang.String inputStr, java.lang.String baseURI)
      Parse the string in ShExC syntax to produce a ShEx schema.
      static ShexMap shapeMapFromString​(java.lang.String inputStr, java.lang.String baseURI)
      Parse a shape map from a StringReader.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FOCUS

        public static Node FOCUS
        Node used for FOCUS in a shape map.
    • Constructor Detail

      • Shex

        public Shex()
    • Method Detail

      • schemaFromString

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

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

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

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

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

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

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

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

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

        public static ShexMap readShapeMapJson​(java.lang.String filenameOrURL)
        Read a ShexMap from a file or URL.
      • readShapeMapJson

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