public class ParserProfileStd extends Object implements ParserProfile
ParserProfileStd uses a FactoryRDF to
create items in the parsing process.| Constructor and Description |
|---|
ParserProfileStd(FactoryRDF factory,
ErrorHandler errorHandler,
IRIResolver resolver,
PrefixMap prefixMap,
Context context,
boolean checking,
boolean strictMode) |
| Modifier and Type | Method and Description |
|---|---|
Node |
create(Node currentGraph,
Token token)
Make any node from a token as appropriate
|
Node |
createBlankNode(Node scope,
long line,
long col)
Create a fresh blank node
|
Node |
createBlankNode(Node scope,
String label,
long line,
long col)
Create a fresh blank node based on scope and label
|
Node |
createLangLiteral(String lexical,
String langTag,
long line,
long col)
Create a literal for a string+language
|
Node |
createNodeFromToken(Node scope,
Token token,
long line,
long col)
Special token forms
|
Quad |
createQuad(Node graph,
Node subject,
Node predicate,
Node object,
long line,
long col)
Create a quad - this operation call
checkTriple(org.apache.jena.graph.Node, org.apache.jena.graph.Node, org.apache.jena.graph.Node, long, long) if checking is enabled. |
Node |
createStringLiteral(String lexical,
long line,
long col)
Create a literal for a string
|
Triple |
createTriple(Node subject,
Node predicate,
Node object,
long line,
long col)
Create a triple - this operation call
checkTriple(org.apache.jena.graph.Node, org.apache.jena.graph.Node, org.apache.jena.graph.Node, long, long) if checking is enabled. |
Node |
createTypedLiteral(String lexical,
RDFDatatype datatype,
long line,
long col)
Create a literal for a string+datatype
|
Node |
createURI(String x,
long line,
long col)
Create a URI Node
|
ErrorHandler |
getErrorHandler()
Get the
error handler used by this ParserProfile |
FactoryRDF |
getFactorRDF()
|
PrefixMap |
getPrefixMap() |
boolean |
isStrictMode()
Is this in strict mode?
|
org.apache.jena.iri.IRI |
makeIRI(String uriStr,
long line,
long col)
Create an IRI
|
String |
resolveIRI(String uriStr,
long line,
long col)
Resolve a URI, returning a string
|
void |
setIRIResolver(IRIResolver resolver) |
public ParserProfileStd(FactoryRDF factory, ErrorHandler errorHandler, IRIResolver resolver, PrefixMap prefixMap, Context context, boolean checking, boolean strictMode)
public FactoryRDF getFactorRDF()
ParserProfilegetFactorRDF in interface ParserProfilepublic ErrorHandler getErrorHandler()
ParserProfileerror handler used by this ParserProfilegetErrorHandler in interface ParserProfilepublic boolean isStrictMode()
ParserProfileisStrictMode in interface ParserProfilepublic String resolveIRI(String uriStr, long line, long col)
ParserProfileresolveIRI in interface ParserProfilepublic void setIRIResolver(IRIResolver resolver)
setIRIResolver in interface ParserProfilepublic org.apache.jena.iri.IRI makeIRI(String uriStr, long line, long col)
ParserProfilemakeIRI in interface ParserProfilepublic Triple createTriple(Node subject, Node predicate, Node object, long line, long col)
checkTriple(org.apache.jena.graph.Node, org.apache.jena.graph.Node, org.apache.jena.graph.Node, long, long) if checking is enabled.createTriple in interface ParserProfilepublic Quad createQuad(Node graph, Node subject, Node predicate, Node object, long line, long col)
checkTriple(org.apache.jena.graph.Node, org.apache.jena.graph.Node, org.apache.jena.graph.Node, long, long) if checking is enabled.createQuad in interface ParserProfilepublic Node createURI(String x, long line, long col)
ParserProfilecreateURI in interface ParserProfilepublic Node createTypedLiteral(String lexical, RDFDatatype datatype, long line, long col)
ParserProfilecreateTypedLiteral in interface ParserProfilepublic Node createLangLiteral(String lexical, String langTag, long line, long col)
ParserProfilecreateLangLiteral in interface ParserProfilepublic Node createStringLiteral(String lexical, long line, long col)
ParserProfilecreateStringLiteral in interface ParserProfilepublic Node createNodeFromToken(Node scope, Token token, long line, long col)
createNodeFromToken in interface ParserProfilepublic Node createBlankNode(Node scope, String label, long line, long col)
ParserProfilecreateBlankNode in interface ParserProfilepublic Node createBlankNode(Node scope, long line, long col)
ParserProfilecreateBlankNode in interface ParserProfilepublic Node create(Node currentGraph, Token token)
ParserProfilecreate in interface ParserProfilepublic PrefixMap getPrefixMap()
getPrefixMap in interface ParserProfileLicenced under the Apache License, Version 2.0