org.openrdf.rio.owl
Class OntologyWriter
java.lang.Object
org.openrdf.rio.helpers.OrganizedRDFWriter
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
| 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 |
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)
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.