Static Public Member Functions
edu.tum.cs.ias.knowrob.owl.utils.OWLFileUtils Class Reference

List of all members.

Static Public Member Functions

static OWLOntology loadOntologyFromFile (String filename) throws OWLOntologyCreationException
static boolean saveOntologyToFile (OWLOntology ontology, OWLOntologyFormat format, String file)
static boolean saveOntologyToFile (OWLOntology ontology, String file, OWLOntologyFormat format)
static boolean saveOntologyToStream (OWLOntology ontology, OutputStream stream, OWLOntologyFormat format)
static String saveOntologytoString (OWLOntology ontology, OWLOntologyFormat format)

Detailed Description

Utilities for reading and writing OWL files

Author:
Moritz Tenorth, tenorth@cs.tum.edu
Lars Kunze, kunzel@cs.tum.edu

Definition at line 19 of file OWLFileUtils.java.


Member Function Documentation

static OWLOntology edu.tum.cs.ias.knowrob.owl.utils.OWLFileUtils.loadOntologyFromFile ( String  filename) throws OWLOntologyCreationException [inline, static]

Loads an ontology from an OWL file

Parameters:
filenameFile that is to be loaded
Returns:
OWL ontology loaded from filename
Exceptions:
OWLOntologyCreationException

Definition at line 28 of file OWLFileUtils.java.

static boolean edu.tum.cs.ias.knowrob.owl.utils.OWLFileUtils.saveOntologyToFile ( OWLOntology  ontology,
OWLOntologyFormat  format,
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 118 of file OWLFileUtils.java.

static boolean edu.tum.cs.ias.knowrob.owl.utils.OWLFileUtils.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 141 of file OWLFileUtils.java.

static boolean edu.tum.cs.ias.knowrob.owl.utils.OWLFileUtils.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 42 of file OWLFileUtils.java.

static String edu.tum.cs.ias.knowrob.owl.utils.OWLFileUtils.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 92 of file OWLFileUtils.java.


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


knowrob_common
Author(s): Moritz Tenorth
autogenerated on Sat Dec 28 2013 17:09:28