Interface ParserProfile

All Known Implementing Classes:
CDTAwareParserProfile, ParserProfileStd, ParserProfileWrapper

public interface ParserProfile
ParserProfile is specific to parsing, providing the operations needed by a parser to create IRIs/Nodes/Triples/Quads at the point in the parsing process when the line and column are available to put in error messages.

ParserProfile uses a FactoryRDF to create items in the parsing process. A ParserProfile adds handling the position in the parsing stream, and URI processing (prefix mapping and base URI).

See Also:
  • 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)
     
  • Method Details

    • resolveIRI

      String resolveIRI(String uriStr, long line, long col)
      Resolve a URI, returning a string
    • setBaseIRI

      void setBaseIRI(String baseIRI)
    • createTriple

      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
    • createQuad

      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)
      Create a quad
    • createURI

      org.apache.jena.graph.Node createURI(String uriStr, long line, long col)
      Create a URI Node, where 'uriStr' could also be a blank node.
    • createURI

      org.apache.jena.graph.Node createURI(org.apache.jena.irix.IRIx iriX, long line, long col)
      Create a URI Node
    • createTypedLiteral

      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
    • createLangLiteral

      org.apache.jena.graph.Node createLangLiteral(String lexical, String langTag, long line, long col)
      Create a literal for a string+language
    • createStringLiteral

      org.apache.jena.graph.Node createStringLiteral(String lexical, long line, long col)
      Create a literal for a string
    • createBlankNode

      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
    • createBlankNode

      org.apache.jena.graph.Node createBlankNode(org.apache.jena.graph.Node scope, long line, long col)
      Create a fresh blank node
    • createTripleNode

      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)
    • createTripleNode

      org.apache.jena.graph.Node createTripleNode(org.apache.jena.graph.Triple triple, long line, long col)
      Create a triple node (RDF-star)
    • createGraphNode

      org.apache.jena.graph.Node createGraphNode(org.apache.jena.graph.Graph graph, long line, long col)
      Create a graph node. This is an N3-formula and not named graphs
    • createNodeFromToken

      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"
    • create

      org.apache.jena.graph.Node create(org.apache.jena.graph.Node currentGraph, Token token)
      Make any node from a token as appropriate
    • isStrictMode

      boolean isStrictMode()
      Is this in strict mode?
    • getBaseURI

      String getBaseURI()
    • getPrefixMap

      PrefixMap getPrefixMap()
    • getErrorHandler

      ErrorHandler getErrorHandler()
      Get the error handler used by this ParserProfile.
    • getFactorRDF

      FactoryRDF getFactorRDF()
      Get the factory for RDF terms, triples and quads.