uk.ac.soton.itinnovation.registry.icomponent.model
Interface RegistryDomainModel

All Known Implementing Classes:
RegistryDomainModelJenaImpl, RegistryDomainModelSupport

public interface RegistryDomainModel


Method Summary
 void addBidirectionalRelationship(String fromConcept, String fromToToRelationship, String toToFromRelationship, String toConcept)
          Add a bidirectional relationship between two concepts.
 void addConcept(String concept)
          Add a concept to the domain model.
 void addRelationship(String fromConcept, String relationship, String toConcept)
          Add a relationship between two concepts.
 boolean addSubConcept(String concept, String subconcept)
          Add a concept as a subconcept to another concept.
 boolean containsConcept(String concept)
          Checks if a concept exists in the domain model.
 boolean containsRelationship(String fromConcept, String relationship, String toConcept)
           
 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)
           
 String getInverseRelationship(String relationship)
          Get the inverse relationship of a relationship (owl:inverseOf).
 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 hasInverseRelationship(String relationship)
           
 boolean isSubConceptOf(String subconcept, String superconcept)
           
 boolean relationshipExists(String relationship)
           
 void setInverseRelationhip(String relationship, String inverseOf)
           
 

Method Detail

addConcept

void addConcept(String concept)
Add a concept to the domain model.

Parameters:
concept -

containsConcept

boolean containsConcept(String concept)
Checks if a concept exists in the domain model.

Parameters:
concept -

getConcepts

Set<String> getConcepts()
Get all concepts of the domain model.


getHierarchyRootConcepts

Set<String> getHierarchyRootConcepts()
Get all root concepts that represent the uppermost nodes of the concept hierarchy.


getSuperConcepts

List<String> getSuperConcepts(String concept,
                              boolean direct)
Get the (direct) super concepts (is-a) of a concept.

Parameters:
concept -
direct - if true, only the direct super concepts
Returns:
super concepts

getSubConcepts

List<String> getSubConcepts(String concept,
                            boolean direct)
Get the (direct) sub concepts (is-a) of a concept.

Parameters:
direct - if true, only the direct sub concepts
Returns:
sub concepts

addSubConcept

boolean addSubConcept(String concept,
                      String subconcept)
Add a concept as a subconcept to another concept.

Parameters:
concept - parent
subconcept - child

isSubConceptOf

boolean isSubConceptOf(String subconcept,
                       String superconcept)

addRelationship

void addRelationship(String fromConcept,
                     String relationship,
                     String toConcept)
Add a relationship between two concepts.

Parameters:
fromConcept -
relationship -
toConcept -

addBidirectionalRelationship

void addBidirectionalRelationship(String fromConcept,
                                  String fromToToRelationship,
                                  String toToFromRelationship,
                                  String toConcept)
Add a bidirectional relationship between two concepts.

Parameters:
fromConcept -
fromToToRelationship -
toToFromRelationship -
toConcept -

getInverseRelationship

String getInverseRelationship(String relationship)
Get the inverse relationship of a relationship (owl:inverseOf).

Parameters:
relationship -

hasInverseRelationship

boolean hasInverseRelationship(String relationship)

setInverseRelationhip

void setInverseRelationhip(String relationship,
                           String inverseOf)

containsRelationship

boolean containsRelationship(String fromConcept,
                             String relationship,
                             String toConcept)

getRelationships

Set<String> getRelationships(String fromConcept,
                             String toConcept)

getOutgoingRelationships

Set<Relationship> getOutgoingRelationships(String concept)

getIncomingRelationships

Set<Relationship> getIncomingRelationships(String concept)

relationshipExists

boolean relationshipExists(String relationship)

getRelationships

List<Relationship> getRelationships()
Get all relationships defined between uppermost concepts.


getXmlRepresentation

String getXmlRepresentation()
Get a xml string representation of the registry domain model.

Returns:
xml representation


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