org.openrdf.rio.owl
Class OntologyWriter

java.lang.Object
  extended by org.openrdf.rio.helpers.OrganizedRDFWriter
      extended by org.openrdf.rio.owl.OntologyWriter
All Implemented Interfaces:
RDFHandler, RDFWriter

public class OntologyWriter
extends OrganizedRDFWriter

Prints RDF ontology data is an grouped by subject and type.

Author:
James Leigh

Constructor Summary
OntologyWriter(File file)
           
OntologyWriter(File file, String enc)
           
OntologyWriter(OutputStream writer)
           
OntologyWriter(RDFFormat format, OutputStream out)
           
OntologyWriter(RDFFormat format, Writer writer)
           
OntologyWriter(String filename)
           
OntologyWriter(String filename, String enc)
           
OntologyWriter(Writer writer)
           
 
Method Summary
 void print()
           
 void printOntology(Resource ontology)
           
 void startRDF()
           
 
Methods inherited from class org.openrdf.rio.helpers.OrganizedRDFWriter
close, endRDF, getRDFFormat, handleComment, handleNamespace, handleStatement, print, print, print, print, printReferenced, setConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OntologyWriter

public OntologyWriter(File file,
                      String enc)
               throws FileNotFoundException,
                      UnsupportedEncodingException
Throws:
FileNotFoundException
UnsupportedEncodingException

OntologyWriter

public OntologyWriter(File file)
               throws FileNotFoundException
Throws:
FileNotFoundException

OntologyWriter

public OntologyWriter(String filename,
                      String enc)
               throws FileNotFoundException,
                      UnsupportedEncodingException
Throws:
FileNotFoundException
UnsupportedEncodingException

OntologyWriter

public OntologyWriter(String filename)
               throws FileNotFoundException
Throws:
FileNotFoundException

OntologyWriter

public OntologyWriter(OutputStream writer)

OntologyWriter

public OntologyWriter(Writer writer)

OntologyWriter

public OntologyWriter(RDFFormat format,
                      OutputStream out)

OntologyWriter

public OntologyWriter(RDFFormat format,
                      Writer writer)
Method Detail

startRDF

public void startRDF()
              throws RDFHandlerException
Specified by:
startRDF in interface RDFHandler
Overrides:
startRDF in class OrganizedRDFWriter
Throws:
RDFHandlerException

printOntology

public void printOntology(Resource ontology)
                   throws RepositoryException,
                          RDFHandlerException
Throws:
RepositoryException
RDFHandlerException

print

public void print()
           throws RDFHandlerException
Overrides:
print in class OrganizedRDFWriter
Throws:
RDFHandlerException


Copyright © 2004-2008 Aduna. All Rights Reserved.