public class OntologyCreator extends Object
Constructor and Description |
---|
OntologyCreator(String uri)
Construct a OntoloyCreator.
|
Modifier and Type | Method and Description |
---|---|
void |
addBlueprint(Blueprint blueprint)
Add information of the given blueprint to the ontology.
|
org.apache.jena.ontology.OntModel |
getOntology()
Return the ontology model of the creator.
|
void |
writeOntology(OutputStream out)
Write the current ontology to the given output stream in the RDF/XML format.
|
void |
writeOntology(OutputStream out,
String format)
Write the current ontology to the given output stream in
|
public OntologyCreator(String uri)
uri
- URI for the ontology that will be created with this.public void addBlueprint(Blueprint blueprint)
blueprint
- blueprint whose information will be added.public org.apache.jena.ontology.OntModel getOntology()
public void writeOntology(OutputStream out)
out
- where the ontology will be writtenpublic void writeOntology(OutputStream out, String format) throws org.apache.jena.riot.RiotException
out
- where the ontology will be writtenformat
- output format. Possible values: "RDF/XML", "RDF/XML-ABBREV", "N-TRIPLE", "TURTLE", (and "TTL") and "N3".org.apache.jena.riot.RiotException
- unrecognized formatCopyright © 2017 Tampere University of Technology (TUT) / Laboratory of Mechanical Engineering and Industrial Systems (MEI). All rights reserved.