org.openjena.riot.out
Interface NodeFormatter

All Known Implementing Classes:
NodeFormatterBase, NodeFormatterNT, NodeFormatterTTL

public interface NodeFormatter


Method Summary
 void format(Writer w, com.hp.hpl.jena.graph.Node n)
           
 void formatBNode(Writer w, com.hp.hpl.jena.graph.Node n)
          Node is guaranteed to be a blank node
 void formatBNode(Writer w, String label)
           
 void formatLitDT(Writer w, String lex, String datatypeURI)
          Literal with datatype, not a simple literal, not an xsd:string (RDF 1.1), no language tag.
 void formatLiteral(Writer w, com.hp.hpl.jena.graph.Node n)
          Node is guaranteed to be a literal
 void formatLitLang(Writer w, String lex, String langTag)
          String with language tag
 void formatLitString(Writer w, String lex)
          Plain string / xsd:string (RDF 1.1)
 void formatURI(Writer w, com.hp.hpl.jena.graph.Node n)
          Node is guaranteed to be a URI node
 void formatURI(Writer w, String uriStr)
           
 void formatVar(Writer w, com.hp.hpl.jena.graph.Node n)
           
 void formatVar(Writer w, String name)
           
 

Method Detail

format

void format(Writer w,
            com.hp.hpl.jena.graph.Node n)

formatURI

void formatURI(Writer w,
               com.hp.hpl.jena.graph.Node n)
Node is guaranteed to be a URI node


formatURI

void formatURI(Writer w,
               String uriStr)

formatVar

void formatVar(Writer w,
               com.hp.hpl.jena.graph.Node n)

formatVar

void formatVar(Writer w,
               String name)

formatBNode

void formatBNode(Writer w,
                 com.hp.hpl.jena.graph.Node n)
Node is guaranteed to be a blank node


formatBNode

void formatBNode(Writer w,
                 String label)

formatLiteral

void formatLiteral(Writer w,
                   com.hp.hpl.jena.graph.Node n)
Node is guaranteed to be a literal


formatLitString

void formatLitString(Writer w,
                     String lex)
Plain string / xsd:string (RDF 1.1)


formatLitLang

void formatLitLang(Writer w,
                   String lex,
                   String langTag)
String with language tag


formatLitDT

void formatLitDT(Writer w,
                 String lex,
                 String datatypeURI)
Literal with datatype, not a simple literal, not an xsd:string (RDF 1.1), no language tag.



Licenced under the Apache License, Version 2.0