de.fuberlin.wiwiss.ng4j.trig
Class N3JenaWriterPP

java.lang.Object
  extended by de.fuberlin.wiwiss.ng4j.trig.N3JenaWriterCommon
      extended by de.fuberlin.wiwiss.ng4j.trig.N3JenaWriterPP
All Implemented Interfaces:
RDFWriter

public class N3JenaWriterPP
extends N3JenaWriterCommon

An N3 pretty printer. Tries to make N3 data look readable - works better on regular data.

Version:
$Id: N3JenaWriterPP.java,v 1.1 2004/12/13 22:56:28 cyganiak Exp $
Author:
Andy Seaborne

Field Summary
 
Fields inherited from interface com.hp.hpl.jena.rdf.model.RDFWriter
NSPREFIXPROPBASE
 
Constructor Summary
N3JenaWriterPP()
           
 
Method Summary
protected  void allocateDatastructures()
           
protected  void clearDatastructures()
           
protected  void finishWriting()
           
protected  void prepare(Model model)
           
protected  ClosableIterator preparePropertiesForSubject(Resource r)
           
protected  boolean skipThisSubject(Resource subj)
           
protected  void startWriting()
           
protected  void writeObject(RDFNode node)
           
protected  void writeObjectList(Resource resource, Property property)
           
 
Methods inherited from class de.fuberlin.wiwiss.ng4j.trig.N3JenaWriterCommon
absolutePropName, calcPropertyPadding, countArcsTo, countArcsTo, countProperties, countProperties, formatLiteral, formatNode, formatProperty, formatResource, formatURI, getBooleanValue, getIntValue, getPropValue, getStringValue, localPropName, pad, processModel, rdfListIterator, setErrorHandler, setProperty, string, write, write, writeHeader, writeLiteral, writeModel, writeOneGraphNode, writePrefixes, writePropertiesForSubject, writeSubject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

N3JenaWriterPP

public N3JenaWriterPP()
Method Detail

prepare

protected void prepare(Model model)
Overrides:
prepare in class N3JenaWriterCommon

preparePropertiesForSubject

protected ClosableIterator preparePropertiesForSubject(Resource r)
Overrides:
preparePropertiesForSubject in class N3JenaWriterCommon

skipThisSubject

protected boolean skipThisSubject(Resource subj)
Overrides:
skipThisSubject in class N3JenaWriterCommon

startWriting

protected void startWriting()
Overrides:
startWriting in class N3JenaWriterCommon

finishWriting

protected void finishWriting()
Overrides:
finishWriting in class N3JenaWriterCommon

writeObjectList

protected void writeObjectList(Resource resource,
                               Property property)
Overrides:
writeObjectList in class N3JenaWriterCommon

writeObject

protected void writeObject(RDFNode node)
Overrides:
writeObject in class N3JenaWriterCommon

allocateDatastructures

protected void allocateDatastructures()

clearDatastructures

protected void clearDatastructures()