java.lang.Object
org.apache.jena.shex.Shex
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.apache.jena.graph.NodeNode used for FOCUS in a shape map. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprintSchema(OutputStream outStream, ShexSchema shexSchema) Print shapes - the format details the internal structurestatic voidprintSchema(org.apache.jena.atlas.io.IndentedWriter iOut, ShexSchema shexSchema) Print shapes - the format details the internal structurestatic voidprintSchema(ShexSchema shexSchema) Print shapes - the format details the internal structurestatic ShexSchemareadSchema(String filenameOrURL) Read the file to produce a ShEx schema.static ShexSchemareadSchema(String filenameOrURL, String base) Read the file to produce a ShEx schema.static ShapeMapreadShapeMap(InputStream input, String baseURI) Parse theInputStreamto get a ShEx shape map.static ShapeMapreadShapeMap(String filename) Parse the file to get a ShEx shape map.static ShapeMapreadShapeMap(String filename, String baseURI) Parse the file to get a ShEx shape map.static ShapeMapreadShapeMapJson(InputStream input) Parse theInputStreamto get a ShEx shape map from JSON syntax.static ShapeMapreadShapeMapJson(String filenameOrURL) Read aShapeMapfrom a file or URL.static ShexSchemaschemaFromString(String inputStr) Parse the string in ShExC syntax to produce a ShEx schema.static ShexSchemaschemaFromString(String inputStr, String baseURI) Parse the string in ShExC syntax to produce a ShEx schema.static ShapeMapshapeMapFromString(String inputStr, String baseURI) Parse a shape map from aStringReader.
-
Field Details
-
FOCUS
public static org.apache.jena.graph.Node FOCUSNode used for FOCUS in a shape map.
-
-
Constructor Details
-
Shex
public Shex()
-
-
Method Details
-
schemaFromString
Parse the string in ShExC syntax to produce a ShEx schema.- Parameters:
inputStr-- Returns:
- ShexSchema
-
schemaFromString
Parse the string in ShExC syntax to produce a ShEx schema.- Parameters:
inputStr-baseURI-- Returns:
- ShexSchema
-
readSchema
Read the file to produce a ShEx schema.- Parameters:
filenameOrURL-- Returns:
- ShexSchema
-
readSchema
Read the file to produce a ShEx schema.- Parameters:
filenameOrURL-base-- Returns:
- ShexSchema
-
printSchema
Print shapes - the format details the internal structure -
printSchema
Print shapes - the format details the internal structure -
printSchema
Print shapes - the format details the internal structure -
readShapeMap
Parse the file to get a ShEx shape map.- Parameters:
filename-- Returns:
- ShexShapeMap
-
readShapeMap
Parse the file to get a ShEx shape map.- Parameters:
filename-baseURI-- Returns:
- ShexShapeMap
-
readShapeMap
Parse theInputStreamto get a ShEx shape map.- Parameters:
input-baseURI-- Returns:
- ShexShapeMap
-
shapeMapFromString
Parse a shape map from aStringReader.- Parameters:
inputStr-baseURI-- Returns:
- ShexShapeMap
-
readShapeMapJson
Read aShapeMapfrom a file or URL. -
readShapeMapJson
Parse theInputStreamto get a ShEx shape map from JSON syntax.- Parameters:
input-- Returns:
- ShexShapeMap
-