Package org.apache.jena.riot.system
Class ParserProfileWrapper
- java.lang.Object
-
- org.apache.jena.riot.system.ParserProfileWrapper
-
- All Implemented Interfaces:
ParserProfile
public class ParserProfileWrapper extends java.lang.Object implements ParserProfile
-
-
Constructor Summary
Constructors Constructor Description ParserProfileWrapper(ParserProfile other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Nodecreate(Node currentGraph, Token token)Make any node from a token as appropriateNodecreateBlankNode(Node scope, long line, long col)Create a fresh blank nodeNodecreateBlankNode(Node scope, java.lang.String label, long line, long col)Create a fresh blank node based on scope and labelNodecreateGraphNode(Graph graph, long line, long col)Create a graph node.NodecreateLangLiteral(java.lang.String lexical, java.lang.String langTag, long line, long col)Create a literal for a string+languageNodecreateNodeFromToken(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"QuadcreateQuad(Node graph, Node subject, Node predicate, Node object, long line, long col)Create a quadNodecreateStringLiteral(java.lang.String lexical, long line, long col)Create a literal for a stringTriplecreateTriple(Node subject, Node predicate, Node object, long line, long col)Create a tripleNodecreateTripleNode(Node subject, Node predicate, Node object, long line, long col)Create a triple node (RDF-star)NodecreateTripleNode(Triple triple, long line, long col)Create a triple node (RDF-star)NodecreateTypedLiteral(java.lang.String lexical, RDFDatatype datatype, long line, long col)Create a literal for a string+datatypeNodecreateURI(java.lang.String uriStr, long line, long col)Create a URI NodeErrorHandlergetErrorHandler()Get theerror handlerused by thisParserProfileFactoryRDFgetFactorRDF()PrefixMapgetPrefixMap()booleanisStrictMode()Is this in strict mode?java.lang.StringresolveIRI(java.lang.String uriStr, long line, long col)Resolve a URI, returning a stringvoidsetBaseIRI(java.lang.String baseIRI)
-
-
-
Constructor Detail
-
ParserProfileWrapper
public ParserProfileWrapper(ParserProfile other)
-
-
Method Detail
-
getFactorRDF
public FactoryRDF getFactorRDF()
Description copied from interface:ParserProfile- Specified by:
getFactorRDFin interfaceParserProfile
-
getErrorHandler
public ErrorHandler getErrorHandler()
Description copied from interface:ParserProfileGet theerror handlerused by thisParserProfile- Specified by:
getErrorHandlerin interfaceParserProfile
-
isStrictMode
public boolean isStrictMode()
Description copied from interface:ParserProfileIs this in strict mode?- Specified by:
isStrictModein interfaceParserProfile
-
resolveIRI
public java.lang.String resolveIRI(java.lang.String uriStr, long line, long col)Description copied from interface:ParserProfileResolve a URI, returning a string- Specified by:
resolveIRIin interfaceParserProfile
-
setBaseIRI
public void setBaseIRI(java.lang.String baseIRI)
- Specified by:
setBaseIRIin interfaceParserProfile
-
createTriple
public Triple createTriple(Node subject, Node predicate, Node object, long line, long col)
Description copied from interface:ParserProfileCreate a triple- Specified by:
createTriplein interfaceParserProfile
-
createQuad
public Quad createQuad(Node graph, Node subject, Node predicate, Node object, long line, long col)
Description copied from interface:ParserProfileCreate a quad- Specified by:
createQuadin interfaceParserProfile
-
createURI
public Node createURI(java.lang.String uriStr, long line, long col)
Description copied from interface:ParserProfileCreate a URI Node- Specified by:
createURIin interfaceParserProfile
-
createTypedLiteral
public Node createTypedLiteral(java.lang.String lexical, RDFDatatype datatype, long line, long col)
Description copied from interface:ParserProfileCreate a literal for a string+datatype- Specified by:
createTypedLiteralin interfaceParserProfile
-
createLangLiteral
public Node createLangLiteral(java.lang.String lexical, java.lang.String langTag, long line, long col)
Description copied from interface:ParserProfileCreate a literal for a string+language- Specified by:
createLangLiteralin interfaceParserProfile
-
createStringLiteral
public Node createStringLiteral(java.lang.String lexical, long line, long col)
Description copied from interface:ParserProfileCreate a literal for a string- Specified by:
createStringLiteralin interfaceParserProfile
-
createBlankNode
public Node createBlankNode(Node scope, java.lang.String label, long line, long col)
Description copied from interface:ParserProfileCreate a fresh blank node based on scope and label- Specified by:
createBlankNodein interfaceParserProfile
-
createBlankNode
public Node createBlankNode(Node scope, long line, long col)
Description copied from interface:ParserProfileCreate a fresh blank node- Specified by:
createBlankNodein interfaceParserProfile
-
createTripleNode
public Node createTripleNode(Node subject, Node predicate, Node object, long line, long col)
Description copied from interface:ParserProfileCreate a triple node (RDF-star)- Specified by:
createTripleNodein interfaceParserProfile
-
createTripleNode
public Node createTripleNode(Triple triple, long line, long col)
Description copied from interface:ParserProfileCreate a triple node (RDF-star)- Specified by:
createTripleNodein interfaceParserProfile
-
createGraphNode
public Node createGraphNode(Graph graph, long line, long col)
Description copied from interface:ParserProfileCreate a graph node. This is an N3-formula and not named graphs- Specified by:
createGraphNodein interfaceParserProfile
-
createNodeFromToken
public Node createNodeFromToken(Node scope, Token token, long line, long col)
Description copied from interface:ParserProfileMake a node from a token - called after all else has been tried to handle special cases Return null for "no special node recognized"- Specified by:
createNodeFromTokenin interfaceParserProfile
-
create
public Node create(Node currentGraph, Token token)
Description copied from interface:ParserProfileMake any node from a token as appropriate- Specified by:
createin interfaceParserProfile
-
getPrefixMap
public PrefixMap getPrefixMap()
- Specified by:
getPrefixMapin interfaceParserProfile
-
-