public class ShExJParser extends Object implements Parser
ShexSchema
from its jsonld representation.
This implementation does not support: external definitions, semantic actions and anonymous "start" shapes.Constructor and Description |
---|
ShExJParser() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getImports()
Return the list of import declarations found during the last parsing.
|
Map<String,String> |
getPrefixes()
Return the list of import declarations found during the last parsing.
|
Map<Label,ShapeExpr> |
getRules(InputStream is)
Return the set of rules contains in the inputstream.
|
Map<Label,ShapeExpr> |
getRules(Path path)
Return the set of rules contains in the file.
|
Map<Label,ShapeExpr> |
getRules(org.apache.commons.rdf.api.RDF rdfFactory,
InputStream is)
Return the set of rules contains in the inputstream.
|
Map<Label,ShapeExpr> |
getRules(org.apache.commons.rdf.api.RDF rdfFactory,
Path path)
Return the set of rules contains in the file.
|
ShapeExpr |
getStart()
Return the start ShapeExpr found during the last parsing.
|
protected TripleExpr |
parseEachOf(Map map) |
protected ValueConstraint |
parseIRIStem(Map m) |
protected ValueConstraint |
parseIRIStemRange(Map m) |
protected ValueConstraint |
parseLanguage(Map m) |
protected ValueConstraint |
parseLanguageStem(Map m) |
protected ValueConstraint |
parseLanguageStemRange(Map m) |
protected List<org.apache.commons.rdf.api.IRI> |
parseListOfIri(List list) |
protected List<ShapeExpr> |
parseListOfShapeExprs(List expressionsList) |
protected ValueConstraint |
parseLiteralStem(Map m) |
protected ValueConstraint |
parseLiteralStemRange(Map m) |
protected NodeConstraint |
parseNodeConstraint(Map map) |
protected TripleExpr |
parseOneOf(Map map) |
protected ShapeExpr |
parseShape(Map map) |
protected ShapeExpr |
parseShapeAnd(Map map) |
protected ShapeExpr |
parseShapeExpression(Object exprObj) |
protected ShapeExpr |
parseShapeNot(Map map) |
protected ShapeExpr |
parseShapeOr(Map map) |
protected TripleExpr |
parseTripleConstraint(Map map) |
protected TripleExpr |
parseTripleExpression(Object obj) |
public Map<Label,ShapeExpr> getRules(Path path) throws Exception
Parser
public Map<Label,ShapeExpr> getRules(org.apache.commons.rdf.api.RDF rdfFactory, Path path) throws Exception
Parser
public Map<Label,ShapeExpr> getRules(InputStream is) throws Exception
Parser
public Map<Label,ShapeExpr> getRules(org.apache.commons.rdf.api.RDF rdfFactory, InputStream is) throws Exception
Parser
public List<String> getImports()
Parser
getImports
in interface Parser
public Map<String,String> getPrefixes()
Parser
getPrefixes
in interface Parser
public ShapeExpr getStart()
Parser
protected NodeConstraint parseNodeConstraint(Map map)
protected ValueConstraint parseIRIStem(Map m)
protected ValueConstraint parseIRIStemRange(Map m)
protected ValueConstraint parseLiteralStem(Map m)
protected ValueConstraint parseLiteralStemRange(Map m)
protected ValueConstraint parseLanguage(Map m)
protected ValueConstraint parseLanguageStem(Map m)
protected ValueConstraint parseLanguageStemRange(Map m)
protected TripleExpr parseTripleExpression(Object obj)
protected TripleExpr parseEachOf(Map map)
protected TripleExpr parseOneOf(Map map)
protected TripleExpr parseTripleConstraint(Map map)
Copyright © 2019. All rights reserved.