Class OntologyCreator
- java.lang.Object
-
- fi.tut.mei.capabilityQueryLib.ontology.OntologyCreator
-
public class OntologyCreator extends Object
A class for creating a resource instances ontology.- Author:
- hylli
-
-
Constructor Summary
Constructors Constructor Description OntologyCreator(String uri)Construct a OntoloyCreator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBlueprint(Blueprint blueprint)Add information of the given blueprint to the ontology.org.apache.jena.ontology.OntModelgetOntology()Return the ontology model of the creator.voidwriteOntology(OutputStream out)Write the current ontology to the given output stream in the RDF/XML format.voidwriteOntology(OutputStream out, String format)Write the current ontology to the given output stream in
-
-
-
Constructor Detail
-
OntologyCreator
public OntologyCreator(String uri)
Construct a OntoloyCreator.- Parameters:
uri- URI for the ontology that will be created with this.
-
-
Method Detail
-
addBlueprint
public void addBlueprint(Blueprint blueprint)
Add information of the given blueprint to the ontology. .- Parameters:
blueprint- blueprint whose information will be added.
-
getOntology
public org.apache.jena.ontology.OntModel getOntology()
Return the ontology model of the creator.- Returns:
- creator's ontology model
-
writeOntology
public void writeOntology(OutputStream out)
Write the current ontology to the given output stream in the RDF/XML format.- Parameters:
out- where the ontology will be written
-
writeOntology
public void writeOntology(OutputStream out, String format) throws org.apache.jena.riot.RiotException
Write the current ontology to the given output stream in- Parameters:
out- where the ontology will be writtenformat- output format. Possible values: "RDF/XML", "RDF/XML-ABBREV", "N-TRIPLE", "TURTLE", (and "TTL") and "N3".- Throws:
org.apache.jena.riot.RiotException- unrecognized format
-
-