- All Known Implementing Classes:
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 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) 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(Node graph, Node subject, Node predicate, Node object, long line, long col) Create a quadcreateStringLiteral(String lexical, long line, long col) Create a literal for a stringcreateTriple(Node subject, Node predicate, Node object, long line, long col) Create a triplecreateTripleNode(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 handlerused by thisParserProfilebooleanIs this in strict mode?resolveIRI(String uriStr, long line, long col) Resolve a URI, returning a stringvoidsetBaseIRI(String baseIRI)
-
Method Details
-
resolveIRI
Resolve a URI, returning a string -
setBaseIRI
-
createTriple
Create a triple -
createQuad
Create a quad -
createURI
Create a URI Node -
createTypedLiteral
Create a literal for a string+datatype -
createLangLiteral
Create a literal for a string+language -
createStringLiteral
Create a literal for a string -
createBlankNode
Create a fresh blank node based on scope and label -
createBlankNode
Create a fresh blank node -
createTripleNode
Create a triple node (RDF-star) -
createTripleNode
Create a triple node (RDF-star) -
createGraphNode
Create a graph node. This is an N3-formula and not named graphs -
createNodeFromToken
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? -
getPrefixMap
PrefixMap getPrefixMap() -
getErrorHandler
ErrorHandler getErrorHandler()Get theerror handlerused by thisParserProfile -
getFactorRDF
FactoryRDF getFactorRDF()
-