Package javatapas.jena
Class WriteOwlOntologyModelToFileUsingJena
java.lang.Object
javatapas.jena.WriteOwlOntologyModelToFileUsingJena
public class WriteOwlOntologyModelToFileUsingJena extends Object
Write OWL Ontology Model to File using Apache Jena.
Published at https://www.javatapas.com/jena/Java-Write-Owl-Ontology-Model-To-File-Using-Jena.html
Javadoc at https://www.javatapas.com/docs/javatapas/jena/WriteOwlOntologyModelToFileUsingJena.html
Published at https://www.javatapas.com/jena/Java-Write-Owl-Ontology-Model-To-File-Using-Jena.html
Javadoc at https://www.javatapas.com/docs/javatapas/jena/WriteOwlOntologyModelToFileUsingJena.html
- Version:
- 2021-05-29
- Author:
- Kodiak Brown
- See Also:
- https://jena.apache.org
-
Constructor Summary
Constructors Constructor Description WriteOwlOntologyModelToFileUsingJena()
-
Method Summary
Modifier and Type Method Description static void
writeModel(org.apache.jena.ontology.OntModel ontModel, String directory, String fileName)
private static void
writeOwlOntologyModelToFileUsingJena(org.apache.jena.ontology.OntModel ontModel, OutputStream outputStream)
-
Constructor Details
-
WriteOwlOntologyModelToFileUsingJena
public WriteOwlOntologyModelToFileUsingJena()
-
-
Method Details
-
writeOwlOntologyModelToFileUsingJena
private static void writeOwlOntologyModelToFileUsingJena(org.apache.jena.ontology.OntModel ontModel, OutputStream outputStream) throws IOException- Parameters:
ontModel
- The OWL Model to write to the output stream.outputStream
- The output stream to write to.- Throws:
IOException
-
writeModel
public static void writeModel(org.apache.jena.ontology.OntModel ontModel, String directory, String fileName) throws IOException- Parameters:
ontModel
- The OWL Model to write to the output stream.directory
- The name of the output directory where the output file will be created. The directory will be created if it does not exist.fileName
- The name of the output file.- Throws:
IOException
-