org.weblab_project.core.util
Class OntologyUtil

java.lang.Object
  extended by org.weblab_project.core.util.OntologyUtil

Deprecated. Use PoKUtil instead

public class OntologyUtil
extends java.lang.Object

Author:
EADS WebLab Team
See Also:
PoKUtil

Method Summary
static java.lang.String getOntologyData(org.weblab_project.core.model.ontology.Ontology ontology)
          Deprecated. Use PoKUtil.getPoKData(annotation) instead
static void setOntologyData(org.weblab_project.core.model.ontology.Ontology ontology, java.lang.String annotationStr)
          Deprecated. Use PoKUtil.setPoKData() instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOntologyData

@Deprecated
public static java.lang.String getOntologyData(org.weblab_project.core.model.ontology.Ontology ontology)
Deprecated. Use PoKUtil.getPoKData(annotation) instead

Returns a String containing the RDF statements of the Ontology.

Parameters:
ontology - Ontology you want to get the String content
Returns:
The String content of the Annotation
See Also:
org.weblab_project.core.uti.PoKUtil#getPoKData(PieceOfKnowledge pok)

setOntologyData

@Deprecated
public static void setOntologyData(org.weblab_project.core.model.ontology.Ontology ontology,
                                              java.lang.String annotationStr)
                            throws WebLabCheckedException
Deprecated. Use PoKUtil.setPoKData() instead

Set the Ontology data using a String, the parameter have to be a valid XML String. If the parameter don't start with '
Parameters:
ontology - the Ontology you want to modify.
annotationStr - contains the RDF/XML String.
Throws:
WebLabCheckedException - the String parameter is not XML valid.
See Also:
org.weblab_project.core.uti.PoKUtil#setPoKData()


Copyright © 2004-2009. All Rights Reserved.