kaos.ontology.util
Class DAMLModelUtils

java.lang.Object
  extended by kaos.ontology.util.DAMLModelUtils

public class DAMLModelUtils
extends java.lang.Object

$Revision: 1.21 $


Constructor Summary
DAMLModelUtils()
           
 
Method Summary
static SerializableOntModelImpl constructDAMLModel(java.lang.String deconstructedModel)
          converts a String to a SerializableOntModelImpl.
static java.lang.String deconstructDAMLModel(OntModel model)
          converts a DAMLModel to a String.
static java.lang.String trimDAMLModel(java.lang.String input, java.util.Set allLoadedOntologies)
          Removes the ontologies already loaded into jtp, from the given String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAMLModelUtils

public DAMLModelUtils()
Method Detail

deconstructDAMLModel

public static java.lang.String deconstructDAMLModel(OntModel model)
                                             throws RDFException
converts a DAMLModel to a String.

Parameters:
model - the model to be converted.
Returns:
the converted String.
Throws:
RDFException

constructDAMLModel

public static SerializableOntModelImpl constructDAMLModel(java.lang.String deconstructedModel)
                                                   throws RDFException
converts a String to a SerializableOntModelImpl.

Parameters:
deconstructedModel - the String to be converted.
Returns:
the generated SerializableDAMLModel.
Throws:
RDFException

trimDAMLModel

public static java.lang.String trimDAMLModel(java.lang.String input,
                                             java.util.Set allLoadedOntologies)
Removes the ontologies already loaded into jtp, from the given String.

Parameters:
input - the String from which to remove ontologies.
_allLoadedOntologies - the Set of Strings representing names of loaded ontologies
Returns:
the modified String, without redundant ontologies