java.lang.Object
org.apache.jena.riot.system.ParserProfileStd
- All Implemented Interfaces:
ParserProfile
ParserProfileStd
uses a FactoryRDF
to create items in the parsing
process.-
Constructor Summary
ConstructorsConstructorDescriptionParserProfileStd
(FactoryRDF factory, ErrorHandler errorHandler, IRIxResolver resolver, PrefixMap prefixMap, Context context, boolean checking, boolean strictMode) -
Method Summary
Modifier and TypeMethodDescriptionMake any node from a token as appropriatecreateBlankNode
(Node scope, long line, long col) Create a fresh blank nodecreateBlankNode
(Node scope, String label, long line, long col) Create a fresh blank node based on scope and labelcreateGraphNode
(Graph graph, long line, long col) Create a graph node.createLangLiteral
(String lexical, String langTag, long line, long col) Create a literal for a string+languagecreateNodeFromToken
(Node scope, Token token, long line, long col) Special token formscreateQuad
(Node graph, Node subject, Node predicate, 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.createStringLiteral
(String lexical, long line, long col) Create a literal for a stringcreateTriple
(Node subject, Node predicate, 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.createTripleNode
(Node subject, Node predicate, Node object, long line, long col) Create a triple node (RDF-star)createTripleNode
(Triple triple, long line, long col) Create a triple node (RDF-star)createTypedLiteral
(String lexical, RDFDatatype datatype, long line, long col) Create a literal for a string+datatypeCreate a URI NodeGet theerror handler
used by thisParserProfile
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, IRIxResolver resolver, PrefixMap prefixMap, Context context, boolean checking, boolean strictMode)
-
-
Method Details
-
getFactorRDF
Description copied from interface:ParserProfile
- 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
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
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- Specified by:
createURI
in interfaceParserProfile
-
createTypedLiteral
Description copied from interface:ParserProfile
Create a literal for a string+datatype- Specified by:
createTypedLiteral
in interfaceParserProfile
-
createLangLiteral
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
Description copied from interface:ParserProfile
Create a fresh blank node based on scope and label- Specified by:
createBlankNode
in interfaceParserProfile
-
createBlankNode
Description copied from interface:ParserProfile
Create a fresh blank node- Specified by:
createBlankNode
in interfaceParserProfile
-
createTripleNode
Description copied from interface:ParserProfile
Create a triple node (RDF-star)- Specified by:
createTripleNode
in interfaceParserProfile
-
createTripleNode
Description copied from interface:ParserProfile
Create a triple node (RDF-star)- Specified by:
createTripleNode
in interfaceParserProfile
-
createGraphNode
Description copied from interface:ParserProfile
Create a graph node. This is an N3-formula and not named graphs- Specified by:
createGraphNode
in interfaceParserProfile
-
createNodeFromToken
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
-
getPrefixMap
- Specified by:
getPrefixMap
in interfaceParserProfile
-