- All Known Implementing Classes:
CDTAwareParserProfile
,ParserProfileStd
,ParserProfileWrapper
public interface ParserProfile
ParserProfile
is specific to parsing, providing the operations needed by a parser to
create IRIs/Nodes/Triples/Quads at the point in the parsing process when the line and
column are available to put in error messages.
ParserProfile
uses a FactoryRDF
to create items in the parsing
process. A ParserProfile
adds handling the position in the parsing stream,
and URI processing (prefix mapping and base URI).
- See Also:
-
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) Make a node from a token - called after all else has been tried to handle special cases Return null for "no special node recognized"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 quadorg.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 tripleorg.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 baseIRI)
-
Method Details
-
resolveIRI
Resolve a URI, returning a string -
setBaseIRI
-
createTriple
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 -
createQuad
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 -
createURI
Create a URI Node, where 'uriStr' could also be a blank node. -
createURI
org.apache.jena.graph.Node createURI(org.apache.jena.irix.IRIx iriX, long line, long col) Create a URI Node -
createTypedLiteral
org.apache.jena.graph.Node createTypedLiteral(String lexical, org.apache.jena.datatypes.RDFDatatype datatype, long line, long col) Create a literal for a string+datatype -
createLangLiteral
Create a literal for a string+language -
createStringLiteral
Create a literal for a string -
createBlankNode
org.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 label -
createBlankNode
org.apache.jena.graph.Node createBlankNode(org.apache.jena.graph.Node scope, long line, long col) Create a fresh blank node -
createTripleNode
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) -
createTripleNode
org.apache.jena.graph.Node createTripleNode(org.apache.jena.graph.Triple triple, long line, long col) Create a triple node (RDF-star) -
createGraphNode
org.apache.jena.graph.Node createGraphNode(org.apache.jena.graph.Graph graph, long line, long col) Create a graph node. This is an N3-formula and not named graphs -
createNodeFromToken
org.apache.jena.graph.Node createNodeFromToken(org.apache.jena.graph.Node scope, Token token, long line, long col) Make a node from a token - called after all else has been tried to handle special cases Return null for "no special node recognized" -
create
Make any node from a token as appropriate -
isStrictMode
boolean isStrictMode()Is this in strict mode? -
getBaseURI
String getBaseURI() -
getPrefixMap
PrefixMap getPrefixMap() -
getErrorHandler
ErrorHandler getErrorHandler()Get theerror handler
used by thisParserProfile
. -
getFactorRDF
FactoryRDF getFactorRDF()Get thefactory
for RDF terms, triples and quads.
-