Class ParserProfileWrapper

java.lang.Object
org.apache.jena.riot.system.ParserProfileWrapper
All Implemented Interfaces:
ParserProfile

public class ParserProfileWrapper extends Object implements ParserProfile
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.jena.graph.Node
    create(org.apache.jena.graph.Node currentGraph, Token token)
    Make any node from a token as appropriate
    org.apache.jena.graph.Node
    createBlankNode(org.apache.jena.graph.Node scope, long line, long col)
    Create a fresh blank node
    org.apache.jena.graph.Node
    createBlankNode(org.apache.jena.graph.Node scope, String label, long line, long col)
    Create a fresh blank node based on scope and label
    org.apache.jena.graph.Node
    createGraphNode(org.apache.jena.graph.Graph graph, long line, long col)
    Create a graph node.
    org.apache.jena.graph.Node
    createLangLiteral(String lexical, String langTag, long line, long col)
    Create a literal for a string+language
    org.apache.jena.graph.Node
    createNodeFromToken(org.apache.jena.graph.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"
    createQuad(org.apache.jena.graph.Node graph, org.apache.jena.graph.Node subject, org.apache.jena.graph.Node predicate, org.apache.jena.graph.Node object, long line, long col)
    Create a quad
    org.apache.jena.graph.Node
    createStringLiteral(String lexical, long line, long col)
    Create a literal for a string
    org.apache.jena.graph.Triple
    createTriple(org.apache.jena.graph.Node subject, org.apache.jena.graph.Node predicate, org.apache.jena.graph.Node object, long line, long col)
    Create a triple
    org.apache.jena.graph.Node
    createTripleNode(org.apache.jena.graph.Node subject, org.apache.jena.graph.Node predicate, org.apache.jena.graph.Node object, long line, long col)
    Create a triple node (RDF-star)
    org.apache.jena.graph.Node
    createTripleNode(org.apache.jena.graph.Triple triple, long line, long col)
    Create a triple node (RDF-star)
    org.apache.jena.graph.Node
    createTypedLiteral(String lexical, org.apache.jena.datatypes.RDFDatatype datatype, long line, long col)
    Create a literal for a string+datatype
    org.apache.jena.graph.Node
    createURI(String uriStr, long line, long col)
    Create a URI Node, where 'uriStr' could also be a blank node.
    org.apache.jena.graph.Node
    createURI(org.apache.jena.irix.IRIx iriX, long line, long col)
    Create a URI Node
     
    Get the error handler used by this ParserProfile.
    Get the factory for RDF terms, triples and quads.
     
    boolean
    Is this in strict mode?
    resolveIRI(String uriStr, long line, long col)
    Resolve a URI, returning a string
    void
    setBaseIRI(String baseIRI)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ParserProfileWrapper

      public ParserProfileWrapper(ParserProfile other)
  • Method Details

    • isStrictMode

      public boolean isStrictMode()
      Description copied from interface: ParserProfile
      Is this in strict mode?
      Specified by:
      isStrictMode in interface ParserProfile
    • resolveIRI

      public String resolveIRI(String uriStr, long line, long col)
      Description copied from interface: ParserProfile
      Resolve a URI, returning a string
      Specified by:
      resolveIRI in interface ParserProfile
    • setBaseIRI

      public void setBaseIRI(String baseIRI)
      Specified by:
      setBaseIRI in interface ParserProfile
    • createTriple

      public org.apache.jena.graph.Triple createTriple(org.apache.jena.graph.Node subject, org.apache.jena.graph.Node predicate, org.apache.jena.graph.Node object, long line, long col)
      Description copied from interface: ParserProfile
      Create a triple
      Specified by:
      createTriple in interface ParserProfile
    • createQuad

      public Quad createQuad(org.apache.jena.graph.Node graph, org.apache.jena.graph.Node subject, org.apache.jena.graph.Node predicate, org.apache.jena.graph.Node object, long line, long col)
      Description copied from interface: ParserProfile
      Create a quad
      Specified by:
      createQuad in interface ParserProfile
    • createURI

      public org.apache.jena.graph.Node createURI(String uriStr, long line, long col)
      Description copied from interface: ParserProfile
      Create a URI Node, where 'uriStr' could also be a blank node.
      Specified by:
      createURI in interface ParserProfile
    • createURI

      public org.apache.jena.graph.Node createURI(org.apache.jena.irix.IRIx iriX, long line, long col)
      Description copied from interface: ParserProfile
      Create a URI Node
      Specified by:
      createURI in interface ParserProfile
    • createTypedLiteral

      public org.apache.jena.graph.Node createTypedLiteral(String lexical, org.apache.jena.datatypes.RDFDatatype datatype, long line, long col)
      Description copied from interface: ParserProfile
      Create a literal for a string+datatype
      Specified by:
      createTypedLiteral in interface ParserProfile
    • createLangLiteral

      public org.apache.jena.graph.Node createLangLiteral(String lexical, String langTag, long line, long col)
      Description copied from interface: ParserProfile
      Create a literal for a string+language
      Specified by:
      createLangLiteral in interface ParserProfile
    • createStringLiteral

      public org.apache.jena.graph.Node createStringLiteral(String lexical, long line, long col)
      Description copied from interface: ParserProfile
      Create a literal for a string
      Specified by:
      createStringLiteral in interface ParserProfile
    • createBlankNode

      public org.apache.jena.graph.Node createBlankNode(org.apache.jena.graph.Node scope, String label, long line, long col)
      Description copied from interface: ParserProfile
      Create a fresh blank node based on scope and label
      Specified by:
      createBlankNode in interface ParserProfile
    • createBlankNode

      public org.apache.jena.graph.Node createBlankNode(org.apache.jena.graph.Node scope, long line, long col)
      Description copied from interface: ParserProfile
      Create a fresh blank node
      Specified by:
      createBlankNode in interface ParserProfile
    • createTripleNode

      public org.apache.jena.graph.Node createTripleNode(org.apache.jena.graph.Node subject, org.apache.jena.graph.Node predicate, org.apache.jena.graph.Node object, long line, long col)
      Description copied from interface: ParserProfile
      Create a triple node (RDF-star)
      Specified by:
      createTripleNode in interface ParserProfile
    • createTripleNode

      public org.apache.jena.graph.Node createTripleNode(org.apache.jena.graph.Triple triple, long line, long col)
      Description copied from interface: ParserProfile
      Create a triple node (RDF-star)
      Specified by:
      createTripleNode in interface ParserProfile
    • createGraphNode

      public org.apache.jena.graph.Node createGraphNode(org.apache.jena.graph.Graph graph, long line, long col)
      Description copied from interface: ParserProfile
      Create a graph node. This is an N3-formula and not named graphs
      Specified by:
      createGraphNode in interface ParserProfile
    • createNodeFromToken

      public org.apache.jena.graph.Node createNodeFromToken(org.apache.jena.graph.Node scope, Token token, long line, long col)
      Description copied from interface: ParserProfile
      Make 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:
      createNodeFromToken in interface ParserProfile
    • create

      public org.apache.jena.graph.Node create(org.apache.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
    • getBaseURI

      public String getBaseURI()
      Specified by:
      getBaseURI in interface ParserProfile
    • getPrefixMap

      public PrefixMap getPrefixMap()
      Specified by:
      getPrefixMap in interface ParserProfile
    • getErrorHandler

      public ErrorHandler getErrorHandler()
      Description copied from interface: ParserProfile
      Get the error handler used by this ParserProfile.
      Specified by:
      getErrorHandler in interface ParserProfile
    • getFactorRDF

      public FactoryRDF getFactorRDF()
      Description copied from interface: ParserProfile
      Get the factory for RDF terms, triples and quads.
      Specified by:
      getFactorRDF in interface ParserProfile