public class ParserProfileBase extends Object implements ParserProfile
Constructor and Description |
---|
ParserProfileBase(Prologue prologue,
ErrorHandler errorHandler) |
ParserProfileBase(Prologue prologue,
ErrorHandler errorHandler,
LabelToNode labelMapping) |
Modifier and Type | Method and Description |
---|---|
Node |
create(Node currentGraph,
Token token)
Make any node from a token as appropriate
|
Node |
createBlankNode(Node scope,
String label,
long line,
long col) |
Node |
createLangLiteral(String lexical,
String langTag,
long line,
long col) |
Node |
createNodeFromToken(Node scope,
Token token,
long line,
long col)
Special token forms
|
Node |
createPlainLiteral(String lexical,
long line,
long col) |
Quad |
createQuad(Node g,
Node s,
Node p,
Node o,
long line,
long col) |
Triple |
createTriple(Node s,
Node p,
Node o,
long line,
long col) |
Node |
createTypedLiteral(String lexical,
RDFDatatype dt,
long line,
long col) |
Node |
createURI(String uriStr,
long line,
long col) |
ErrorHandler |
getHandler() |
LabelToNode |
getLabelToNode() |
Prologue |
getPrologue() |
boolean |
isStrictMode() |
org.apache.jena.iri.IRI |
makeIRI(String uriStr,
long line,
long col) |
String |
resolveIRI(String uriStr,
long line,
long col) |
void |
setHandler(ErrorHandler handler) |
void |
setLabelToNode(LabelToNode mapper) |
void |
setPrologue(Prologue p) |
void |
setStrictMode(boolean mode) |
public ParserProfileBase(Prologue prologue, ErrorHandler errorHandler)
public ParserProfileBase(Prologue prologue, ErrorHandler errorHandler, LabelToNode labelMapping)
public ErrorHandler getHandler()
getHandler
in interface ParserProfile
public void setHandler(ErrorHandler handler)
setHandler
in interface ParserProfile
public Prologue getPrologue()
getPrologue
in interface ParserProfile
public void setPrologue(Prologue p)
setPrologue
in interface ParserProfile
public LabelToNode getLabelToNode()
getLabelToNode
in interface ParserProfile
public void setLabelToNode(LabelToNode mapper)
setLabelToNode
in interface ParserProfile
public String resolveIRI(String uriStr, long line, long col)
resolveIRI
in interface ParserProfile
public org.apache.jena.iri.IRI makeIRI(String uriStr, long line, long col)
makeIRI
in interface ParserProfile
public Quad createQuad(Node g, Node s, Node p, Node o, long line, long col)
createQuad
in interface ParserProfile
public Triple createTriple(Node s, Node p, Node o, long line, long col)
createTriple
in interface ParserProfile
public Node createURI(String uriStr, long line, long col)
createURI
in interface ParserProfile
public Node createBlankNode(Node scope, String label, long line, long col)
createBlankNode
in interface ParserProfile
public Node createTypedLiteral(String lexical, RDFDatatype dt, long line, long col)
createTypedLiteral
in interface ParserProfile
public Node createLangLiteral(String lexical, String langTag, long line, long col)
createLangLiteral
in interface ParserProfile
public Node createPlainLiteral(String lexical, long line, long col)
createPlainLiteral
in interface ParserProfile
public Node createNodeFromToken(Node scope, Token token, long line, long col)
createNodeFromToken
in interface ParserProfile
public Node create(Node currentGraph, Token token)
ParserProfile
create
in interface ParserProfile
public boolean isStrictMode()
isStrictMode
in interface ParserProfile
public void setStrictMode(boolean mode)
setStrictMode
in interface ParserProfile
Licenced under the Apache License, Version 2.0