Static Public Member Functions | Static Public Attributes
roboearth.wp5.owl.OWLIO Class Reference

List of all members.

Static Public Member Functions

static OWLOntology loadOntologyFromFile (String file)
static OWLOntology loadOntologyFromStream (InputStream stream)
static OWLOntology loadOntologyFromString (String s)
static OWLOntology loadOntologyFromWeb (String url)
static boolean saveOntologyToFile (OWLOntology ontology, String file)
static boolean saveOntologyToFile (OWLOntology ontology, String file, OWLOntologyFormat format)
static boolean saveOntologyToStream (OWLOntology ontology, OutputStream stream)
static boolean saveOntologyToStream (OWLOntology ontology, OutputStream stream, OWLOntologyFormat format)
static String saveOntologyToString (OWLOntology ontology)
static String saveOntologyToString (OWLOntology ontology, OWLOntologyFormat format)

Static Public Attributes

static final OWLOntologyFormat ONTOLOGY_FORMAT_RDFXML = new RDFXMLOntologyFormat()

Detailed Description

A utility class providing methods to load, save and convert OWL ontologies in various ways.

Author:
Alexander Perzylo, perzylo@cs.tum.edu

Definition at line 84 of file OWLIO.java.


Member Function Documentation

static OWLOntology roboearth.wp5.owl.OWLIO.loadOntologyFromFile ( String  file) [inline, static]

Loads an OWL ontology from a given file.

Parameters:
filename of file
Returns:
OWLOntology object containing the parsed ontology

Definition at line 152 of file OWLIO.java.

static OWLOntology roboearth.wp5.owl.OWLIO.loadOntologyFromStream ( InputStream  stream) [inline, static]

Loads an OWL ontology from a given input stream.

Parameters:
streaminput stream
Returns:
OWLOntology object containing the parsed ontology

Definition at line 209 of file OWLIO.java.

static OWLOntology roboearth.wp5.owl.OWLIO.loadOntologyFromString ( String  s) [inline, static]

Parses an OWL ontology from a given string.

Parameters:
sString containing an OWL document
Returns:
OWLOntology object containing the parsed ontology

Definition at line 264 of file OWLIO.java.

static OWLOntology roboearth.wp5.owl.OWLIO.loadOntologyFromWeb ( String  url) [inline, static]

Loads an OWL ontology from a given URL.

Parameters:
urlURL specifing the location of an OWL ontology
Returns:
OWLOntology object containing the parsed ontology

Definition at line 98 of file OWLIO.java.

static boolean roboearth.wp5.owl.OWLIO.saveOntologyToFile ( OWLOntology  ontology,
String  file 
) [inline, static]

Saves an OWL ontology to a file.

Parameters:
ontologyontology to be saved
filename of target file
Returns:
true - if saving was successfully completed
false - otherwise

Definition at line 281 of file OWLIO.java.

static boolean roboearth.wp5.owl.OWLIO.saveOntologyToFile ( OWLOntology  ontology,
String  file,
OWLOntologyFormat  format 
) [inline, static]

Saves an OWL ontology to a file in a given ontology format.

Parameters:
ontologyontology to be saved
filename of target file
formatdesired ontology format (
See also:
OWLOntologyFormat)
Returns:
true - if saving was successfully completed
false - otherwise

Definition at line 305 of file OWLIO.java.

static boolean roboearth.wp5.owl.OWLIO.saveOntologyToStream ( OWLOntology  ontology,
OutputStream  stream 
) [inline, static]

Saves an OWL ontology to a given output stream.

Parameters:
ontologyontology to be saved
streamoutput stream
Returns:
true - if saving was successfully completed
false - otherwise

Definition at line 358 of file OWLIO.java.

static boolean roboearth.wp5.owl.OWLIO.saveOntologyToStream ( OWLOntology  ontology,
OutputStream  stream,
OWLOntologyFormat  format 
) [inline, static]

Saves an OWL ontology to an output stream in a given ontology format.

Parameters:
ontologyontology to be saved
streamoutput stream
formatdesired ontology format (
See also:
OWLOntologyFormat)
Returns:
true - if saving was successfully completed
false - otherwise

Definition at line 382 of file OWLIO.java.

static String roboearth.wp5.owl.OWLIO.saveOntologyToString ( OWLOntology  ontology) [inline, static]

Saves an OWL ontology to a String object using its current ontology format.

Parameters:
ontologyontology to be saved
Returns:
String object containing the string representation of the ontology

Definition at line 431 of file OWLIO.java.

static String roboearth.wp5.owl.OWLIO.saveOntologyToString ( OWLOntology  ontology,
OWLOntologyFormat  format 
) [inline, static]

Saves an OWL ontology to a String object.

Parameters:
ontologyontology to be saved
formatdesired ontology format (
See also:
OWLOntologyFormat)
Returns:
String object containing the string representation of the ontology

Definition at line 444 of file OWLIO.java.


Member Data Documentation

final OWLOntologyFormat roboearth.wp5.owl.OWLIO.ONTOLOGY_FORMAT_RDFXML = new RDFXMLOntologyFormat() [static]

Ontology format object defining the RDF/XML format

Definition at line 90 of file OWLIO.java.


The documentation for this class was generated from the following file:


re_comm_core
Author(s): Alexander Perzylo
autogenerated on Sun Jan 5 2014 11:29:34