Interface NodeFormatter

All Known Implementing Classes:
NodeFormatter_C14N, NodeFormatterBase, NodeFormatterNT, NodeFormatterTTL, NodeFormatterTTL_MultiLine

public interface NodeFormatter
Processor for output of RDF terms. The operation format(AWriter, Node) formats a node and output on the AWriter.

All other operations assume their Node argument is the correct kind of RDFterm for the operation.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    format(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n)
     
    void
    formatBNode(org.apache.jena.atlas.io.AWriter w, String label)
     
    void
    formatBNode(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n)
     
    void
    formatLitDT(org.apache.jena.atlas.io.AWriter w, String lex, String datatypeURI)
    Literal with datatype, not a simple literal, not an xsd:string (RDF 1.1), no language tag or and base direction.
    void
    formatLiteral(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n)
     
    void
    formatLitLang(org.apache.jena.atlas.io.AWriter w, String lex, String langTag)
    String with language tag
    void
    formatLitLangDir(org.apache.jena.atlas.io.AWriter w, String lex, String langTag, String direction)
    String with language tag and base direction (RDF 1.2)
    void
    formatLitString(org.apache.jena.atlas.io.AWriter w, String lex)
    Plain string / xsd:string (RDF 1.1)
    void
    formatTripleTerm(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n)
     
    void
    formatTripleTerm(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node subject, org.apache.jena.graph.Node proedicate, org.apache.jena.graph.Node object)
     
    void
    formatURI(org.apache.jena.atlas.io.AWriter w, String uriStr)
     
    void
    formatURI(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n)
     
    void
    formatVar(org.apache.jena.atlas.io.AWriter w, String name)
     
    void
    formatVar(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n)
     
  • Method Details

    • format

      void format(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n)
    • formatURI

      void formatURI(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n)
    • formatURI

      void formatURI(org.apache.jena.atlas.io.AWriter w, String uriStr)
    • formatVar

      void formatVar(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n)
    • formatVar

      void formatVar(org.apache.jena.atlas.io.AWriter w, String name)
    • formatBNode

      void formatBNode(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n)
    • formatBNode

      void formatBNode(org.apache.jena.atlas.io.AWriter w, String label)
    • formatLiteral

      void formatLiteral(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n)
    • formatLitString

      void formatLitString(org.apache.jena.atlas.io.AWriter w, String lex)
      Plain string / xsd:string (RDF 1.1)
    • formatLitLang

      void formatLitLang(org.apache.jena.atlas.io.AWriter w, String lex, String langTag)
      String with language tag
    • formatLitLangDir

      void formatLitLangDir(org.apache.jena.atlas.io.AWriter w, String lex, String langTag, String direction)
      String with language tag and base direction (RDF 1.2)
    • formatLitDT

      void formatLitDT(org.apache.jena.atlas.io.AWriter w, String lex, String datatypeURI)
      Literal with datatype, not a simple literal, not an xsd:string (RDF 1.1), no language tag or and base direction.
    • formatTripleTerm

      void formatTripleTerm(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n)
    • formatTripleTerm

      void formatTripleTerm(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node subject, org.apache.jena.graph.Node proedicate, org.apache.jena.graph.Node object)