uk.ac.manchester.gong.bong.owl
Class OWLDealer

java.lang.Object
  extended by uk.ac.manchester.gong.bong.owl.OWLDealer

public class OWLDealer
extends java.lang.Object

This is a little wrapper for the most basic operations in the OWL API.


Constructor Summary
OWLDealer(java.lang.String curl, java.lang.String cfile, java.util.HashMap files)
           
 
Method Summary
 java.util.HashMap generateLabel2Name(java.lang.String ontouri)
           
 java.lang.String getAnnotation(java.lang.String annotProp, org.semanticweb.owl.model.OWLClass clazz, org.semanticweb.owl.model.OWLOntology ontology)
           
 org.semanticweb.owl.model.OWLClass getClass(java.lang.String classURI)
           
 org.semanticweb.owl.model.OWLClass getClass(java.net.URI classURI)
           
 org.semanticweb.owl.model.OWLDataFactory getFactory()
           
 org.semanticweb.owl.model.OWLOntologyManager getManager()
           
 org.semanticweb.owl.model.OWLOntology getOntology()
           
 org.semanticweb.owl.model.OWLOntology getOntology(java.lang.String uri)
           
 void writeOntology(java.lang.String fileName, java.lang.String ontologyURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLDealer

public OWLDealer(java.lang.String curl,
                 java.lang.String cfile,
                 java.util.HashMap files)
          throws org.semanticweb.owl.model.OWLException
Throws:
org.semanticweb.owl.model.OWLException
Method Detail

getOntology

public org.semanticweb.owl.model.OWLOntology getOntology()

getOntology

public org.semanticweb.owl.model.OWLOntology getOntology(java.lang.String uri)
                                                  throws org.semanticweb.owl.model.OWLException
Throws:
org.semanticweb.owl.model.OWLException

getFactory

public org.semanticweb.owl.model.OWLDataFactory getFactory()

getManager

public org.semanticweb.owl.model.OWLOntologyManager getManager()

writeOntology

public void writeOntology(java.lang.String fileName,
                          java.lang.String ontologyURI)
                   throws java.io.IOException,
                          org.semanticweb.owl.model.OWLException
Throws:
java.io.IOException
org.semanticweb.owl.model.OWLException

getClass

public org.semanticweb.owl.model.OWLClass getClass(java.lang.String classURI)
                                            throws org.semanticweb.owl.model.OWLException
Throws:
org.semanticweb.owl.model.OWLException

getClass

public org.semanticweb.owl.model.OWLClass getClass(java.net.URI classURI)
                                            throws org.semanticweb.owl.model.OWLException
Throws:
org.semanticweb.owl.model.OWLException

generateLabel2Name

public java.util.HashMap generateLabel2Name(java.lang.String ontouri)
                                     throws org.semanticweb.owl.model.OWLException
Throws:
org.semanticweb.owl.model.OWLException

getAnnotation

public java.lang.String getAnnotation(java.lang.String annotProp,
                                      org.semanticweb.owl.model.OWLClass clazz,
                                      org.semanticweb.owl.model.OWLOntology ontology)