uk.ac.soton.itinnovation.grid.client.registry.ui.wizard.rdm
Class RegistryDomainModelJenaImpl

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.client.registry.ui.wizard.rdm.RegistryDomainModelSupport
      extended by uk.ac.soton.itinnovation.grid.client.registry.ui.wizard.rdm.RegistryDomainModelJenaImpl
All Implemented Interfaces:
RegistryDomainModel

public final class RegistryDomainModelJenaImpl
extends RegistryDomainModelSupport
implements RegistryDomainModel


Field Summary
 
Fields inherited from class uk.ac.soton.itinnovation.grid.client.registry.ui.wizard.rdm.RegistryDomainModelSupport
logger
 
Constructor Summary
RegistryDomainModelJenaImpl()
           
 
Method Summary
 boolean containsConcept(String concept)
          Checks if a concept exists in the domain model.
 boolean containsRelationship(String fromConcept, String relationship, String toConcept)
           
 void createInternalModel()
          This method creates the internal used registry domain model based on an OWL Ontology.
 Set<String> getConcepts()
          Get all concepts of the domain model.
 Set<String> getHierarchyRootConcepts()
          Get all root concepts that represent the uppermost nodes of the concept hierarchy.
 Set<Relationship> getIncomingRelationships(String concept)
           
 com.hp.hpl.jena.ontology.OntModel getOntModel()
           
 Set<Relationship> getOutgoingRelationships(String concept)
           
 List<Relationship> getRelationships()
          Get all relationships defined between uppermost concepts.
 Set<String> getRelationships(String fromConcept, String toConcept)
           
 List<String> getSubConcepts(String concept, boolean direct)
          Get the (direct) sub concepts (is-a) of a concept.
 List<String> getSuperConcepts(String concept, boolean direct)
          Get the (direct) super concepts (is-a) of a concept.
 String getXmlRepresentation()
          Get a xml string representation of the registry domain model.
 boolean isSubConceptOf(String subConcept, String superConcept)
           
 boolean relationshipExists(String relationship)
           
 void setOntModel(com.hp.hpl.jena.ontology.OntModel ontModel)
           
 void setOntModel(String xmlRepresentation, String registryDomainModelNS)
          Set up the ontology model based on a XML representation (OWL).
 
Methods inherited from class uk.ac.soton.itinnovation.grid.client.registry.ui.wizard.rdm.RegistryDomainModelSupport
addRelationship, getInverseRelationship, hasInverseRelationship, setInverseRelationhip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.client.registry.ui.wizard.rdm.RegistryDomainModel
getInverseRelationship, hasInverseRelationship
 

Constructor Detail

RegistryDomainModelJenaImpl

public RegistryDomainModelJenaImpl()
Method Detail

getOntModel

public final com.hp.hpl.jena.ontology.OntModel getOntModel()

setOntModel

public final void setOntModel(com.hp.hpl.jena.ontology.OntModel ontModel)

setOntModel

public final void setOntModel(String xmlRepresentation,
                              String registryDomainModelNS)
                       throws Exception
Set up the ontology model based on a XML representation (OWL).

Parameters:
xmlRepresentation -
Throws:
ParsingException
Exception

containsConcept

public boolean containsConcept(String concept)
Description copied from interface: RegistryDomainModel
Checks if a concept exists in the domain model.

Specified by:
containsConcept in interface RegistryDomainModel
Specified by:
containsConcept in class RegistryDomainModelSupport

getConcepts

public Set<String> getConcepts()
Description copied from interface: RegistryDomainModel
Get all concepts of the domain model.

Specified by:
getConcepts in interface RegistryDomainModel
Specified by:
getConcepts in class RegistryDomainModelSupport

getHierarchyRootConcepts

public Set<String> getHierarchyRootConcepts()
Description copied from interface: RegistryDomainModel
Get all root concepts that represent the uppermost nodes of the concept hierarchy.

Specified by:
getHierarchyRootConcepts in interface RegistryDomainModel

getOutgoingRelationships

public Set<Relationship> getOutgoingRelationships(String concept)
Specified by:
getOutgoingRelationships in interface RegistryDomainModel

getIncomingRelationships

public Set<Relationship> getIncomingRelationships(String concept)
Specified by:
getIncomingRelationships in interface RegistryDomainModel

getSuperConcepts

public List<String> getSuperConcepts(String concept,
                                     boolean direct)
Description copied from interface: RegistryDomainModel
Get the (direct) super concepts (is-a) of a concept.

Specified by:
getSuperConcepts in interface RegistryDomainModel
direct - if true, only the direct super concepts
Returns:
super concepts

getSubConcepts

public List<String> getSubConcepts(String concept,
                                   boolean direct)
Description copied from interface: RegistryDomainModel
Get the (direct) sub concepts (is-a) of a concept.

Specified by:
getSubConcepts in interface RegistryDomainModel
direct - if true, only the direct sub concepts
Returns:
sub concepts

isSubConceptOf

public boolean isSubConceptOf(String subConcept,
                              String superConcept)
Specified by:
isSubConceptOf in interface RegistryDomainModel

containsRelationship

public boolean containsRelationship(String fromConcept,
                                    String relationship,
                                    String toConcept)
Specified by:
containsRelationship in interface RegistryDomainModel
Overrides:
containsRelationship in class RegistryDomainModelSupport

getRelationships

public Set<String> getRelationships(String fromConcept,
                                    String toConcept)
Specified by:
getRelationships in interface RegistryDomainModel
Overrides:
getRelationships in class RegistryDomainModelSupport

relationshipExists

public boolean relationshipExists(String relationship)
Overrides:
relationshipExists in class RegistryDomainModelSupport

createInternalModel

public void createInternalModel()
This method creates the internal used registry domain model based on an OWL Ontology.


getXmlRepresentation

public String getXmlRepresentation()
Description copied from interface: RegistryDomainModel
Get a xml string representation of the registry domain model.

Specified by:
getXmlRepresentation in interface RegistryDomainModel
Returns:
xml representation

getRelationships

public List<Relationship> getRelationships()
Description copied from interface: RegistryDomainModel
Get all relationships defined between uppermost concepts.

Specified by:
getRelationships in interface RegistryDomainModel


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.