java.lang.Object
org.apache.jena.shex.Shex
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.apache.jena.graph.Node
Node used for FOCUS in a shape map. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
printSchema
(OutputStream outStream, ShexSchema shexSchema) Print shapes - the format details the internal structurestatic void
printSchema
(org.apache.jena.atlas.io.IndentedWriter iOut, ShexSchema shexSchema) Print shapes - the format details the internal structurestatic void
printSchema
(ShexSchema shexSchema) Print shapes - the format details the internal structurestatic ShexSchema
readSchema
(String filenameOrURL) Read the file to produce a ShEx schema.static ShexSchema
readSchema
(String filenameOrURL, String base) Read the file to produce a ShEx schema.static ShapeMap
readShapeMap
(InputStream input, String baseURI) Parse theInputStream
to get a ShEx shape map.static ShapeMap
readShapeMap
(String filename) Parse the file to get a ShEx shape map.static ShapeMap
readShapeMap
(String filename, String baseURI) Parse the file to get a ShEx shape map.static ShapeMap
readShapeMapJson
(InputStream input) Parse theInputStream
to get a ShEx shape map from JSON syntax.static ShapeMap
readShapeMapJson
(String filenameOrURL) Read aShapeMap
from a file or URL.static ShexSchema
schemaFromString
(String inputStr) Parse the string in ShExC syntax to produce a ShEx schema.static ShexSchema
schemaFromString
(String inputStr, String baseURI) Parse the string in ShExC syntax to produce a ShEx schema.static ShapeMap
shapeMapFromString
(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 theInputStream
to get a ShEx shape map.- Parameters:
input
-baseURI
-- Returns:
- ShexShapeMap
-
shapeMapFromString
Parse a shape map from aStringReader
.- Parameters:
inputStr
-baseURI
-- Returns:
- ShexShapeMap
-
readShapeMapJson
Read aShapeMap
from a file or URL. -
readShapeMapJson
Parse theInputStream
to get a ShEx shape map from JSON syntax.- Parameters:
input
-- Returns:
- ShexShapeMap
-