org.openjena.riot.system
Class ParserProfileBase
java.lang.Object
org.openjena.riot.system.ParserProfileBase
- All Implemented Interfaces:
- ParserProfile
- Direct Known Subclasses:
- ParserProfileChecker
public class ParserProfileBase
- extends Object
- implements ParserProfile
Basic profile of things, with key operations based on a simple
use of the parse elements into Nodes (e.g. no URI resolution).
Method Summary |
com.hp.hpl.jena.graph.Node |
create(com.hp.hpl.jena.graph.Node currentGraph,
Token token)
Make any node from a token as appropriate |
com.hp.hpl.jena.graph.Node |
createBlankNode(com.hp.hpl.jena.graph.Node scope,
String label,
long line,
long col)
|
com.hp.hpl.jena.graph.Node |
createLangLiteral(String lexical,
String langTag,
long line,
long col)
|
com.hp.hpl.jena.graph.Node |
createNodeFromToken(com.hp.hpl.jena.graph.Node scope,
Token token,
long line,
long col)
Special token forms |
com.hp.hpl.jena.graph.Node |
createPlainLiteral(String lexical,
long line,
long col)
|
Quad |
createQuad(com.hp.hpl.jena.graph.Node g,
com.hp.hpl.jena.graph.Node s,
com.hp.hpl.jena.graph.Node p,
com.hp.hpl.jena.graph.Node o,
long line,
long col)
|
com.hp.hpl.jena.graph.Triple |
createTriple(com.hp.hpl.jena.graph.Node s,
com.hp.hpl.jena.graph.Node p,
com.hp.hpl.jena.graph.Node o,
long line,
long col)
|
com.hp.hpl.jena.graph.Node |
createTypedLiteral(String lexical,
com.hp.hpl.jena.datatypes.RDFDatatype dt,
long line,
long col)
|
com.hp.hpl.jena.graph.Node |
createURI(String uriStr,
long line,
long col)
|
ErrorHandler |
getHandler()
|
LabelToNode |
getLabelToNode()
|
Prologue |
getPrologue()
|
com.hp.hpl.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)
|
ParserProfileBase
public ParserProfileBase(Prologue prologue,
ErrorHandler errorHandler)
ParserProfileBase
public ParserProfileBase(Prologue prologue,
ErrorHandler errorHandler,
LabelToNode labelMapping)
getHandler
public ErrorHandler getHandler()
- Specified by:
getHandler
in interface ParserProfile
setHandler
public void setHandler(ErrorHandler handler)
- Specified by:
setHandler
in interface ParserProfile
getPrologue
public Prologue getPrologue()
- Specified by:
getPrologue
in interface ParserProfile
setPrologue
public void setPrologue(Prologue p)
- Specified by:
setPrologue
in interface ParserProfile
getLabelToNode
public LabelToNode getLabelToNode()
- Specified by:
getLabelToNode
in interface ParserProfile
setLabelToNode
public void setLabelToNode(LabelToNode mapper)
- Specified by:
setLabelToNode
in interface ParserProfile
resolveIRI
public String resolveIRI(String uriStr,
long line,
long col)
- Specified by:
resolveIRI
in interface ParserProfile
makeIRI
public com.hp.hpl.jena.iri.IRI makeIRI(String uriStr,
long line,
long col)
- Specified by:
makeIRI
in interface ParserProfile
createQuad
public Quad createQuad(com.hp.hpl.jena.graph.Node g,
com.hp.hpl.jena.graph.Node s,
com.hp.hpl.jena.graph.Node p,
com.hp.hpl.jena.graph.Node o,
long line,
long col)
- Specified by:
createQuad
in interface ParserProfile
createTriple
public com.hp.hpl.jena.graph.Triple createTriple(com.hp.hpl.jena.graph.Node s,
com.hp.hpl.jena.graph.Node p,
com.hp.hpl.jena.graph.Node o,
long line,
long col)
- Specified by:
createTriple
in interface ParserProfile
createURI
public com.hp.hpl.jena.graph.Node createURI(String uriStr,
long line,
long col)
- Specified by:
createURI
in interface ParserProfile
createBlankNode
public com.hp.hpl.jena.graph.Node createBlankNode(com.hp.hpl.jena.graph.Node scope,
String label,
long line,
long col)
- Specified by:
createBlankNode
in interface ParserProfile
createTypedLiteral
public com.hp.hpl.jena.graph.Node createTypedLiteral(String lexical,
com.hp.hpl.jena.datatypes.RDFDatatype dt,
long line,
long col)
- Specified by:
createTypedLiteral
in interface ParserProfile
createLangLiteral
public com.hp.hpl.jena.graph.Node createLangLiteral(String lexical,
String langTag,
long line,
long col)
- Specified by:
createLangLiteral
in interface ParserProfile
createPlainLiteral
public com.hp.hpl.jena.graph.Node createPlainLiteral(String lexical,
long line,
long col)
- Specified by:
createPlainLiteral
in interface ParserProfile
createNodeFromToken
public com.hp.hpl.jena.graph.Node createNodeFromToken(com.hp.hpl.jena.graph.Node scope,
Token token,
long line,
long col)
- Special token forms
- Specified by:
createNodeFromToken
in interface ParserProfile
create
public com.hp.hpl.jena.graph.Node create(com.hp.hpl.jena.graph.Node currentGraph,
Token token)
- Description copied from interface:
ParserProfile
- Make any node from a token as appropriate
- Specified by:
create
in interface ParserProfile
Licenced under the Apache License, Version 2.0