public class OwlWriter extends WebFormatWriter<OwlThing>
| Constructor and Description |
|---|
OwlWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the OWL file, writing the contents to the specified output stream.
|
void |
writeData(java.util.Collection<OwlThing> things)
Write a collection of OwlThings.
|
void |
writeOntology(OwlOntology ont)
Write the classes, properties and objects of a particular ontology
|
void |
writeOntology(OwlOntology ont,
java.io.File ontFile)
Write the classes, properties and objects of a particular ontology.
|
getContentType, getDestination, getWriter, setDestination, setWriterpublic void close()
public void writeData(java.util.Collection<OwlThing> things) throws java.io.IOException
things is null, it is ignored.things - the collection of OwlThings to write.java.io.IOException - if there is a problem writing the datapublic void writeOntology(OwlOntology ont)
ont - the ontology to writepublic void writeOntology(OwlOntology ont, java.io.File ontFile) throws java.io.IOException
ont - the ontology to writeontFile - the ontology filejava.io.IOException - if there is a problem writing the ontology