java.lang.Object
org.apache.jena.riot.system.ParserProfileStd
- All Implemented Interfaces:
ParserProfile
- Direct Known Subclasses:
CDTAwareParserProfile
ParserProfileStd
uses a FactoryRDF
to create items in the parsing
process.-
Constructor Summary
ConstructorDescriptionParserProfileStd
(FactoryRDF factory, ErrorHandler errorHandler, org.apache.jena.irix.IRIxResolver resolver, PrefixMap prefixMap, Context context, boolean checking, boolean strictMode) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.graph.Node
Make any node from a token as appropriateorg.apache.jena.graph.Node
createBlankNode
(org.apache.jena.graph.Node scope, long line, long col) Create a fresh blank nodeorg.apache.jena.graph.Node
createBlankNode
(org.apache.jena.graph.Node scope, String label, long line, long col) Create a fresh blank node based on scope and labelorg.apache.jena.graph.Node
createGraphNode
(org.apache.jena.graph.Graph graph, long line, long col) Create a graph node.org.apache.jena.graph.Node
createLangLiteral
(String lexical, String langTag, long line, long col) Create a literal for a string+languageorg.apache.jena.graph.Node
createNodeFromToken
(org.apache.jena.graph.Node scope, Token token, long line, long col) Special token formscreateQuad
(org.apache.jena.graph.Node graph, org.apache.jena.graph.Node subject, org.apache.jena.graph.Node predicate, org.apache.jena.graph.Node object, long line, long col) Create a quad - this operation callcheckTriple(org.apache.jena.graph.Node, org.apache.jena.graph.Node, org.apache.jena.graph.Node, long, long)
if checking is enabled.org.apache.jena.graph.Node
createStringLiteral
(String lexical, long line, long col) Create a literal for a stringorg.apache.jena.graph.Triple
createTriple
(org.apache.jena.graph.Node subject, org.apache.jena.graph.Node predicate, org.apache.jena.graph.Node object, long line, long col) Create a triple - this operation callcheckTriple(org.apache.jena.graph.Node, org.apache.jena.graph.Node, org.apache.jena.graph.Node, long, long)
if checking is enabled.org.apache.jena.graph.Node
createTripleNode
(org.apache.jena.graph.Node subject, org.apache.jena.graph.Node predicate, org.apache.jena.graph.Node object, long line, long col) Create a triple node (RDF-star)org.apache.jena.graph.Node
createTripleNode
(org.apache.jena.graph.Triple triple, long line, long col) Create a triple node (RDF-star)org.apache.jena.graph.Node
createTypedLiteral
(String lexical, org.apache.jena.datatypes.RDFDatatype datatype, long line, long col) Create a literal for a string+datatypeorg.apache.jena.graph.Node
Create a URI Node, where 'uriStr' could also be a blank node.org.apache.jena.graph.Node
createURI
(org.apache.jena.irix.IRIx iriX, long line, long col) Create a URI NodeGet theerror handler
used by thisParserProfile
.Get thefactory
for RDF terms, triples and quads.boolean
Is this in strict mode?resolveIRI
(String uriStr, long line, long col) Resolve a URI, returning a stringvoid
setBaseIRI
(String baseIRIstr)
-
Constructor Details
-
ParserProfileStd
public ParserProfileStd(FactoryRDF factory, ErrorHandler errorHandler, org.apache.jena.irix.IRIxResolver resolver, PrefixMap prefixMap, Context context, boolean checking, boolean strictMode)
-
-
Method Details
-
getFactorRDF
Description copied from interface:ParserProfile
Get thefactory
for RDF terms, triples and quads.- Specified by:
getFactorRDF
in interfaceParserProfile
-
getErrorHandler
Description copied from interface:ParserProfile
Get theerror handler
used by thisParserProfile
.- Specified by:
getErrorHandler
in interfaceParserProfile
-
isStrictMode
public boolean isStrictMode()Description copied from interface:ParserProfile
Is this in strict mode?- Specified by:
isStrictMode
in interfaceParserProfile
-
resolveIRI
Description copied from interface:ParserProfile
Resolve a URI, returning a string- Specified by:
resolveIRI
in interfaceParserProfile
-
setBaseIRI
- Specified by:
setBaseIRI
in interfaceParserProfile
-
createTriple
public org.apache.jena.graph.Triple createTriple(org.apache.jena.graph.Node subject, org.apache.jena.graph.Node predicate, org.apache.jena.graph.Node object, long line, long col) Create a triple - this operation callcheckTriple(org.apache.jena.graph.Node, org.apache.jena.graph.Node, org.apache.jena.graph.Node, long, long)
if checking is enabled.- Specified by:
createTriple
in interfaceParserProfile
-
createQuad
public Quad createQuad(org.apache.jena.graph.Node graph, org.apache.jena.graph.Node subject, org.apache.jena.graph.Node predicate, org.apache.jena.graph.Node object, long line, long col) Create a quad - this operation callcheckTriple(org.apache.jena.graph.Node, org.apache.jena.graph.Node, org.apache.jena.graph.Node, long, long)
if checking is enabled.- Specified by:
createQuad
in interfaceParserProfile
-
createURI
Description copied from interface:ParserProfile
Create a URI Node, where 'uriStr' could also be a blank node.- Specified by:
createURI
in interfaceParserProfile
-
createURI
public org.apache.jena.graph.Node createURI(org.apache.jena.irix.IRIx iriX, long line, long col) Description copied from interface:ParserProfile
Create a URI Node- Specified by:
createURI
in interfaceParserProfile
-
createTypedLiteral
public org.apache.jena.graph.Node createTypedLiteral(String lexical, org.apache.jena.datatypes.RDFDatatype datatype, long line, long col) Description copied from interface:ParserProfile
Create a literal for a string+datatype- Specified by:
createTypedLiteral
in interfaceParserProfile
-
createLangLiteral
public org.apache.jena.graph.Node createLangLiteral(String lexical, String langTag, long line, long col) Description copied from interface:ParserProfile
Create a literal for a string+language- Specified by:
createLangLiteral
in interfaceParserProfile
-
createStringLiteral
Description copied from interface:ParserProfile
Create a literal for a string- Specified by:
createStringLiteral
in interfaceParserProfile
-
createBlankNode
public org.apache.jena.graph.Node createBlankNode(org.apache.jena.graph.Node scope, String label, long line, long col) Description copied from interface:ParserProfile
Create a fresh blank node based on scope and label- Specified by:
createBlankNode
in interfaceParserProfile
-
createBlankNode
public org.apache.jena.graph.Node createBlankNode(org.apache.jena.graph.Node scope, long line, long col) Description copied from interface:ParserProfile
Create a fresh blank node- Specified by:
createBlankNode
in interfaceParserProfile
-
createTripleNode
public org.apache.jena.graph.Node createTripleNode(org.apache.jena.graph.Node subject, org.apache.jena.graph.Node predicate, org.apache.jena.graph.Node object, long line, long col) Description copied from interface:ParserProfile
Create a triple node (RDF-star)- Specified by:
createTripleNode
in interfaceParserProfile
-
createTripleNode
public org.apache.jena.graph.Node createTripleNode(org.apache.jena.graph.Triple triple, long line, long col) Description copied from interface:ParserProfile
Create a triple node (RDF-star)- Specified by:
createTripleNode
in interfaceParserProfile
-
createGraphNode
public org.apache.jena.graph.Node createGraphNode(org.apache.jena.graph.Graph graph, long line, long col) Description copied from interface:ParserProfile
Create a graph node. This is an N3-formula and not named graphs- Specified by:
createGraphNode
in interfaceParserProfile
-
createNodeFromToken
public org.apache.jena.graph.Node createNodeFromToken(org.apache.jena.graph.Node scope, Token token, long line, long col) Special token forms- Specified by:
createNodeFromToken
in interfaceParserProfile
-
create
Description copied from interface:ParserProfile
Make any node from a token as appropriate- Specified by:
create
in interfaceParserProfile
-
getBaseURI
- Specified by:
getBaseURI
in interfaceParserProfile
-
getPrefixMap
- Specified by:
getPrefixMap
in interfaceParserProfile
-