Package org.apache.jena.shex
Class Shex
- java.lang.Object
-
- org.apache.jena.shex.Shex
-
public class Shex extends java.lang.Object- See Also:
ShexValidator
-
-
Constructor Summary
Constructors Constructor Description Shex()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidprintSchema(ShexSchema shapes)Print shapes - the format details the internal structurestatic ShexSchemareadSchema(java.lang.String filenameOrURL)Read the file to produce a ShEx schema.static ShexSchemareadSchema(java.lang.String filenameOrURL, java.lang.String base)Read the file to produce a ShEx schema.static ShexMapreadShapeMap(java.io.InputStream input, java.lang.String baseURI)Parse theInputStreamto get a ShEx shape map.static ShexMapreadShapeMap(java.lang.String filename)Parse the file to get a ShEx shape map.static ShexMapreadShapeMap(java.lang.String filename, java.lang.String baseURI)Parse the file to get a ShEx shape map.static ShexMapreadShapeMapJson(java.io.InputStream input)Parse theInputStreamto get a ShEx shape map from JSON syntax.static ShexMapreadShapeMapJson(java.lang.String filenameOrURL)Read aShexMapfrom a file or URL.static ShexSchemaschemaFromString(java.lang.String inputStr)Parse the string in ShExC syntax to produce a ShEx schema.static ShexSchemaschemaFromString(java.lang.String inputStr, java.lang.String baseURI)Parse the string in ShExC syntax to produce a ShEx schema.static ShexMapshapeMapFromString(java.lang.String inputStr, java.lang.String baseURI)Parse a shape map from aStringReader.
-
-
-
Field Detail
-
FOCUS
public static Node FOCUS
Node used for FOCUS in a shape map.
-
-
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 theInputStreamto 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 aStringReader.- Parameters:
inputStr-baseURI-- Returns:
- ShexShapeMap
-
readShapeMapJson
public static ShexMap readShapeMapJson(java.lang.String filenameOrURL)
Read aShexMapfrom a file or URL.
-
readShapeMapJson
public static ShexMap readShapeMapJson(java.io.InputStream input)
Parse theInputStreamto get a ShEx shape map from JSON syntax.- Parameters:
input-- Returns:
- ShexShapeMap
-
-