Interface NodeFormatter

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

public interface NodeFormatter
Processor for output of RDF terms.
  • 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)
    Node is guaranteed to be a blank node
    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.
    void
    formatLiteral(org.apache.jena.atlas.io.AWriter w, org.apache.jena.graph.Node n)
    Node is guaranteed to be a literal
    void
    formatLitLang(org.apache.jena.atlas.io.AWriter w, String lex, String langTag)
    String with language tag
    void
    formatLitString(org.apache.jena.atlas.io.AWriter w, String lex)
    Plain string / xsd:string (RDF 1.1)
    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)
    Node is guaranteed to be a URI node
    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)
      Node is guaranteed to be a URI node
    • 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)
      Node is guaranteed to be a blank node
    • 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)
      Node is guaranteed to be a literal
    • 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
    • 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.