edu.unika.aifb.kaon
Class EntityFactory

Direct Known Subclasses:
EntityFactoryImpl, EntityFactoryImpl

public abstract class EntityFactory


Method Summary
 abstract ConceptcreateConcept(String lang, String label)
           
 abstract ConceptcreateConcept(String uri)
          Creates a new concept with the given uri
 abstract ConceptcreateConcept()
          Creates a new anonymous concept
 abstract ConceptcreateConcept(String lang, String s_identifier, String label)
           
 abstract InstancecreateInstance(Concept c)
          TO DO - JavaDoc
 abstract InstancecreateInstance(Concept c, String uri)
          TO DO - JavaDoc
 static OntologycreateOntology(VocabularyAdaptor vocabulary, Model model)
          TO DO - JavaDoc
 abstract RelationcreateRelation(String lang, String label)
           
 abstract RelationcreateRelation()
          TO DO - JavaDoc
 abstract OntologygetOntology()
          TO DO - JavaDoc
 static OntologyloadOntology(Model model)
          Loads an ontology from the given model.
 abstract voidsetOntology(Ontology o)
          TO DO - JavaDoc

Method Detail

createConcept

public abstract Concept createConcept(String lang, String label)
throws edu.unika.aifb.sitris.exception.NotSupportedException

createConcept

public abstract Concept createConcept(String uri)
throws edu.unika.aifb.sitris.exception.NotSupportedException
Creates a new concept with the given uri
Returns: edu.unika.aifb.kaon.Concept
Throws:
edu.unika.aifb.sitris.exception.NotSupportedException - The exception description.

createConcept

public abstract Concept createConcept()
throws edu.unika.aifb.sitris.exception.NotSupportedException
Creates a new anonymous concept
Returns: edu.unika.aifb.kaon.Concept
Throws:
edu.unika.aifb.sitris.exception.NotSupportedException - The exception description.

createConcept

public abstract Concept createConcept(String lang, String s_identifier, String label)
throws edu.unika.aifb.sitris.exception.NotSupportedException

createInstance

public abstract Instance createInstance(Concept c)
throws edu.unika.aifb.sitris.exception.NotSupportedException
TO DO - JavaDoc
Parameters:
c - edu.unika.aifb.kaon.Concept
Returns: edu.unika.aifb.kaon.Instance
Throws:
edu.unika.aifb.sitris.exception.NotSupportedException - The exception description.

createInstance

public abstract Instance createInstance(Concept c, String uri)
throws edu.unika.aifb.sitris.exception.NotSupportedException
TO DO - JavaDoc
Parameters:
c - edu.unika.aifb.kaon.Concept
Returns: edu.unika.aifb.kaon.Instance
Throws:
edu.unika.aifb.sitris.exception.NotSupportedException - The exception description.

createOntology

public static Ontology createOntology(VocabularyAdaptor vocabulary, Model model)
TO DO - JavaDoc
Returns: edu.unika.aifb.kaon.Ontology

createRelation

public abstract Relation createRelation(String lang, String label)
throws edu.unika.aifb.sitris.exception.NotSupportedException

createRelation

public abstract Relation createRelation()
throws edu.unika.aifb.sitris.exception.NotSupportedException
TO DO - JavaDoc
Returns: edu.unika.aifb.kaon.Relation
Throws:
edu.unika.aifb.sitris.exception.NotSupportedException - The exception description.

getOntology

public abstract Ontology getOntology()
TO DO - JavaDoc
Returns: edu.unika.aifb.kaon.Ontology

loadOntology

public static Ontology loadOntology(Model model)
Loads an ontology from the given model. Automatically resolves the correct vocabulary adaptor.
Returns: edu.unika.aifb.kaon.Ontology

setOntology

public abstract void setOntology(Ontology o)
TO DO - JavaDoc
Parameters:
o - edu.unika.aifb.kaon.Ontology