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 java.lang.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,
java.lang.String label,
long line,
long col)
|
com.hp.hpl.jena.graph.Node |
createLangLiteral(java.lang.String lexical,
java.lang.String langTag,
long line,
long col)
|
com.hp.hpl.jena.graph.Node |
createPlainLiteral(java.lang.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(java.lang.String lexical,
com.hp.hpl.jena.datatypes.RDFDatatype dt,
long line,
long col)
|
com.hp.hpl.jena.graph.Node |
createURI(java.lang.String uriStr,
long line,
long col)
|
ErrorHandler |
getHandler()
|
LabelToNode |
getLabelToNode()
|
Prologue |
getPrologue()
|
com.hp.hpl.jena.iri.IRI |
makeIRI(java.lang.String uriStr,
long line,
long col)
|
java.lang.String |
resolveIRI(java.lang.String uriStr,
long line,
long col)
|
void |
setHandler(ErrorHandler handler)
|
void |
setLabelToNode(LabelToNode mapper)
|
void |
setPrologue(Prologue p)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 java.lang.String resolveIRI(java.lang.String uriStr,
long line,
long col)
- Specified by:
resolveIRI in interface ParserProfile
makeIRI
public com.hp.hpl.jena.iri.IRI makeIRI(java.lang.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(java.lang.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,
java.lang.String label,
long line,
long col)
- Specified by:
createBlankNode in interface ParserProfile
createTypedLiteral
public com.hp.hpl.jena.graph.Node createTypedLiteral(java.lang.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(java.lang.String lexical,
java.lang.String langTag,
long line,
long col)
- Specified by:
createLangLiteral in interface ParserProfile
createPlainLiteral
public com.hp.hpl.jena.graph.Node createPlainLiteral(java.lang.String lexical,
long line,
long col)
- Specified by:
createPlainLiteral 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
Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.