swBackend
Interface IAbstractionLayer

All Known Implementing Classes:
SWBackendKaon

public interface IAbstractionLayer

Author:
Manuel Stritt

Method Summary
 java.util.List beginTransaction()
          Call to begin a transaction.
 void close()
          Closes the connection.
 void endTransaction(java.util.List changes)
          Applys all changes as transaction.
 SWQueryResult executeQuery(java.lang.String query)
          Executes a query and returns a SWQueryResult that contains a list of Concepts, Instances, Properties and Objects, all represented as (the last part of ) the URI of the entities.
 java.util.Vector getAllInstances(java.lang.String concept)
          Lists all instances (recursive) of a given concept.
 java.util.Vector getAllPropertiesFromConcept(java.lang.String concept)
          Lists all properties (recursive) starting from this concept.
 java.util.Vector getAllPropertiesToConcept(java.lang.String concept)
          Lists all properties (recursive) pointing to this concept.
 java.util.Vector getAllPropertyDomainConcepts(java.lang.String property)
          Returns the set of range concepts of this property.
 java.util.Vector getAllPropertyRangeConcepts(java.lang.String property)
          Returns the set of range concepts of this property.
 java.util.Vector getAllSubconcepts(java.lang.String concept)
          Lists all subconcepts (recursive) of a given concept.
 java.util.Vector getAllSubproperties(java.lang.String property)
          Lists subproperties (recursive) of a given property.
 java.util.Vector getAllSuperconcepts(java.lang.String concept)
          Lists all superconcepts (recursive) of a given concept.
 java.util.Vector getAllSuperproperties(java.lang.String property)
          Lists superproperties (recursive) of a given property.
 java.util.Vector getConcepts()
          Lists all concepts of the model.
 java.util.Vector getEntitySitelist(java.lang.String entity)
           
 java.util.Vector getInstanceAllParentConcepts(java.lang.String instance)
          Lists parent concepts (recursive) of a given instance.
 java.util.Vector getInstanceParentConcepts(java.lang.String instance)
          Lists (direct) parent concepts of a given instance.
 java.util.Vector getInstanceProperties(java.lang.String instance)
          Lists all properties (recursive) with domain of the concept (and all superconcepts) of the given instance.
 java.util.Vector getInstances()
          Lists all instances of the model.
 java.util.Vector getInstances(java.lang.String concept)
          Lists all (direct) instances of a given concept.
 java.lang.String getInverseProperties(java.lang.String property)
          Returns the name of the inverse property of a given property.
 java.lang.String getOWLXML()
           
 java.util.Vector getProperties()
          Lists all properties of the model.
 java.util.Vector getPropertiesFromConcept(java.lang.String concept)
          Lists all (direct) properties starting from this concept.
 java.util.Vector getPropertiesToConcept(java.lang.String concept)
          Lists all (direct) properties pointing to this concept.
 java.util.Vector getPropertyDomainConcepts(java.lang.String property)
          Returns the set of range concepts of this property.
 java.util.Vector getPropertyInstances(java.lang.String property)
          Lists propertyinstances of a given property.
 java.util.Vector getPropertyInstanceValues(java.lang.String instance, java.lang.String property)
          Lists values of a given property of an instance.
 java.util.Vector getPropertyRangeConcepts(java.lang.String property)
          Returns the set of range concepts of this property.
 int getPVCount()
           
 java.util.Vector getSubconcepts(java.lang.String concept)
          Lists (direct) subconcepts of a given concept.
 java.util.Vector getSubproperties(java.lang.String property)
          Lists (direct) subproperties of a given property.
 java.lang.String getSuperConcept()
           
 java.util.Vector getSuperconcepts(java.lang.String concept)
          Lists all (direct) superconcepts of a given concept.
 java.util.Vector getSuperproperties(java.lang.String property)
          Lists (direct) superproperties of a given property.
 java.lang.String getSuperProperty()
           
 java.lang.String getVersion()
          Returns the current versionnumber of the model (+1 ?)
 java.lang.String getWikibase()
           
 boolean isConceptInModel(java.lang.String concept)
          Returns if concept is in the model or not.
 boolean isInstanceInModel(java.lang.String instance)
          Returns if instance is in the model or not.
 boolean isPropertyAttribute(java.lang.String property)
          Returns if property is attribute or not.
 boolean isPropertyFunctional(java.lang.String property)
          Returns if property is functional or not.
 boolean isPropertyInModel(java.lang.String property)
          Returns if property is in the model or not.
 boolean isPropertySymmetric(java.lang.String property)
          Returns if property is symmetric or not.
 boolean isPropertyTransitive(java.lang.String property)
          Returns if property is transitive or not.
 java.lang.String listTransaction(java.util.List changes)
          Lists an explanation what the changes list will do.
 java.lang.String listVersionChanges(int version)
          Lists all changes from a version to the current version.
 void newConcept(java.lang.String name, java.lang.String parent)
          Creates a new concept and appends it to a superclass.
 void newInstance(java.lang.String name, java.lang.String concept)
           
 void newProperty(java.lang.String name, java.lang.String parent)
           
 void newPropertyInstance(java.lang.String property, java.lang.String instance, java.lang.Object val)
          Adds an instance of a property to a concept given a value.
 void newSuperConcept(java.lang.String name)
          Creates a new superconcept.
 void newSuperProperty(java.lang.String name)
          Creates a new superproperty.
 void removeConcept(java.lang.String concept)
          Removes a concept.
 void removeInstance(java.lang.String instance)
          Removes an instance.
 void removeProperty(java.lang.String property)
          Removes a property.
 void saveAsFileKAON(java.lang.String modelFilename)
           
 void saveAsFileKAON(java.lang.String modelFilename, java.lang.String evolutionLogFilename)
           
 void saveAsFileOWLXML(java.lang.String modelFilename)
           
 void saveAsFileOWLXML(java.lang.String modelFilename, java.lang.String evolutionLogFilename)
           
 void setConceptParents(java.lang.String name, java.util.Vector parents)
          Sets the parents of a concepts.
 java.util.List setConceptParentsTrans(java.lang.String name, java.util.Vector _parents, java.util.List transactionList)
          Sets the parents of a concepts as transaction.
 void setEntitySitelist(java.lang.String entity, java.util.Vector sitelist)
          Sets the sitelist of an entity (a list of URLs where the entity appears).
 java.util.List setEntitySitelistTrans(java.lang.String entity, java.util.Vector sitelist, java.util.List transactionList)
          Sets the sitelist of an entity (a list of URLs where the entity appears).
 void setInstanceOfConcepts(java.lang.String name, java.util.Vector parents)
          Sets the concepts of a instance from that the instance is an instance of as transaction.
 java.util.List setInstanceOfConceptsTrans(java.lang.String name, java.util.Vector _parents, java.util.List transactionList)
          Sets the concepts of a instance from that the instance is an instance of as transaction.
 void setPropertyDomainAndRange(java.lang.String property, java.util.Vector domain, java.util.Vector ranges, boolean AIsTransitive, boolean AIsSymmetric, java.lang.String AInverse)
          Sets the domain and ranges of a property.
 java.util.List setPropertyDomainAndRangeTrans(java.lang.String property, java.util.Vector domain, java.util.Vector range, boolean AIsTransitive, boolean AIsSymmetric, java.lang.String AInverse, java.util.List transactionList)
          Sets the domain and ranges of a property as transaction.
 void setPropertyDomainConcepts(java.lang.String name, java.util.Vector domains)
          Sets the domains of a property.
 java.util.List setPropertyDomainConceptsTrans(java.lang.String name, java.util.Vector domainConcepts, java.util.List transactionList)
          Sets the domains of a property as transaction.
 void setPropertyFunctional(java.lang.String property, boolean isItSo)
          Sets if property is functional or not.
 java.util.List setPropertyFunctionalTrans(java.lang.String property, boolean isItSo, java.util.List transactionList)
          Sets if property is functional or not as transaction.
 void setPropertyInstanceValues(java.lang.String property, java.lang.String instance, java.util.Vector values)
           
 java.util.List setPropertyInstanceValuesTrans(java.lang.String property, java.lang.String instance, java.util.Vector values, java.util.List transactionList)
          Sets the values of a given property of an instance.
 void setPropertyInverse(java.lang.String property1, java.lang.String property2)
          Establishes the inverse connection between two properties.
 java.util.List setPropertyInverseTrans(java.lang.String property1, java.lang.String property2, java.util.List transactionList)
          Establishes the inverse connection between two properties as transaction.
 void setPropertyIsAttribute(java.lang.String property, boolean isItSo)
          Sets or unsets property as attributet.
 java.util.List setPropertyIsAttributeTrans(java.lang.String property, boolean isItSo, java.util.List transactionList)
          Sets or unsets property as attribute as transaction.
 void setPropertyIsSymmetric(java.lang.String property, boolean isItSo)
          Sets property symmetric or not.
 java.util.List setPropertyIsSymmetricTrans(java.lang.String property, boolean isItSo, java.util.List transactionList)
          Sets property symmetric or not as transaction.
 void setPropertyIsTransitive(java.lang.String property, boolean isItSo)
          Sets property transitive or not.
 java.util.List setPropertyIsTransitiveTrans(java.lang.String property, boolean isItSo, java.util.List transactionList)
          Sets property transitive or not as transaction.
 void setPropertyParents(java.lang.String name, java.util.Vector parents)
          Sets the parents of a property.
 java.util.List setPropertyParentsTrans(java.lang.String name, java.util.Vector _parents, java.util.List transactionList)
          Sets the parents of a property as transaction.
 void setPropertyRangeConcepts(java.lang.String name, java.util.Vector ranges)
          Sets the ranges of a property.
 java.util.List setPropertyRangeConceptsTrans(java.lang.String name, java.util.Vector rangesConcepts, java.util.List transactionList)
          Sets the ranges of a property as transaction.
 void setVersion(int version)
          Restores an older version of the model and creates a new version.
 

Method Detail

close

public void close()
           throws SWException
Closes the connection. Should be used before program termination.

Throws:
SWException

getSuperConcept

public java.lang.String getSuperConcept()

getSuperProperty

public java.lang.String getSuperProperty()

getWikibase

public java.lang.String getWikibase()

endTransaction

public void endTransaction(java.util.List changes)
                    throws SWException
Applys all changes as transaction.

Parameters:
changes - The changes to make
Throws:
SWException

listTransaction

public java.lang.String listTransaction(java.util.List changes)
                                 throws SWException
Lists an explanation what the changes list will do.

Parameters:
changes - The changes list.
Returns:
String a String containing an explanation what the changes-list does.
Throws:
SWException

beginTransaction

public java.util.List beginTransaction()
Call to begin a transaction. An empty list of changes will be returned. Use this as inputlist for *trans methods and apply the whole transaction by calling endTransaction.

Returns:
List An empty change list

newProperty

public void newProperty(java.lang.String name,
                        java.lang.String parent)
                 throws SWException
SWException

newPropertyInstance

public void newPropertyInstance(java.lang.String property,
                                java.lang.String instance,
                                java.lang.Object val)
                         throws SWException
Adds an instance of a property to a concept given a value.

Parameters:
property - Property has to exist already!
instance - Instance has to exist alreasy!
val - The value of the instance. If property.isAttribute the object will be used, otherwise the instance named by (string)val will be used.
Throws:
SWException

setPropertyIsAttribute

public void setPropertyIsAttribute(java.lang.String property,
                                   boolean isItSo)
                            throws SWException
Sets or unsets property as attributet. If property is no attribute it is an instance.
Attention: property and domain have to exist already!

Parameters:
property - The property that domain will be set.
isItSo - true if property is attribute, false if is no attribute (use to unset)
Throws:
SWException

setPropertyIsAttributeTrans

public java.util.List setPropertyIsAttributeTrans(java.lang.String property,
                                                  boolean isItSo,
                                                  java.util.List transactionList)
                                           throws SWException
Sets or unsets property as attribute as transaction. If property is no attribute it is an instance.
Attention: property and domain have to exist already!

Parameters:
property - The property that domain will be set.
isItSo - true if property is attribute, false if is no attribute (use to unset)
Throws:
SWException

setPropertyIsSymmetric

public void setPropertyIsSymmetric(java.lang.String property,
                                   boolean isItSo)
                            throws SWException
Sets property symmetric or not.
Attention: property and domain have to exist already!

Parameters:
property - The property that domain will be set.
isItSo - true if property is symmetric, false if is not symmetric (use to unset)
Throws:
SWException

setPropertyIsSymmetricTrans

public java.util.List setPropertyIsSymmetricTrans(java.lang.String property,
                                                  boolean isItSo,
                                                  java.util.List transactionList)
                                           throws SWException
Sets property symmetric or not as transaction.
Attention: property and domain have to exist already!

Parameters:
property - The property that domain will be set.
isItSo - true if property is symmetric, false if is not symmetric (use to unset)
Throws:
SWException

setPropertyIsTransitive

public void setPropertyIsTransitive(java.lang.String property,
                                    boolean isItSo)
                             throws SWException
Sets property transitive or not.
Attention: property and domain have to exist already!

Parameters:
property - The property that domain will be set.
isItSo - true if property is transitive, false if is not transitive (use to unset)
Throws:
SWException

setPropertyIsTransitiveTrans

public java.util.List setPropertyIsTransitiveTrans(java.lang.String property,
                                                   boolean isItSo,
                                                   java.util.List transactionList)
                                            throws SWException
Sets property transitive or not as transaction.
Attention: property and domain have to exist already!

Parameters:
property - The property that domain will be set.
isItSo - true if property is transitive, false if is not transitive (use to unset)
Throws:
SWException

setPropertyInverse

public void setPropertyInverse(java.lang.String property1,
                               java.lang.String property2)
                        throws SWException
Establishes the inverse connection between two properties.
ToDo: Check if domains and domainranges are really set correct !!!
Attention: property and domain have to exist already!

Throws:
SWException

setPropertyInverseTrans

public java.util.List setPropertyInverseTrans(java.lang.String property1,
                                              java.lang.String property2,
                                              java.util.List transactionList)
                                       throws SWException
Establishes the inverse connection between two properties as transaction.
ToDo: Check if domains and domainranges are really set correct !!!
Attention: property and domain have to exist already!

Throws:
SWException

getProperties

public java.util.Vector getProperties()
                               throws SWException
Lists all properties of the model.

Returns:
Returns a Vector containing a list of all properties of the model.
Throws:
SWException

newSuperProperty

public void newSuperProperty(java.lang.String name)
                      throws SWException
Creates a new superproperty.

Parameters:
name - The name of the superproperty.
Throws:
SWException

newSuperConcept

public void newSuperConcept(java.lang.String name)
                     throws SWException
Creates a new superconcept.

Parameters:
name - The name of the superconcept.
Throws:
SWException

newConcept

public void newConcept(java.lang.String name,
                       java.lang.String parent)
                throws SWException
Creates a new concept and appends it to a superclass.
Attention: parent has to exist already!

Parameters:
name - The name of the concept.
parent - The superclass of the concept.
Throws:
SWException

setConceptParents

public void setConceptParents(java.lang.String name,
                              java.util.Vector parents)
                       throws SWException
Sets the parents of a concepts.
Attention: concept and parents have to exist already! Attention: existing parents not contained in parents-list will be removed!

Parameters:
name - The name of the concept.
parents - Vector of Strings of the names of the parents of the concept.
Throws:
SWException

setConceptParentsTrans

public java.util.List setConceptParentsTrans(java.lang.String name,
                                             java.util.Vector _parents,
                                             java.util.List transactionList)
                                      throws SWException
Sets the parents of a concepts as transaction.
Attention: concept and parents have to exist already! Attention: existing parents not contained in parents-list will be removed!

Parameters:
name - The name of the concept.
Returns:
List The list of changes
Throws:
SWException

setInstanceOfConcepts

public void setInstanceOfConcepts(java.lang.String name,
                                  java.util.Vector parents)
                           throws SWException
Sets the concepts of a instance from that the instance is an instance of as transaction.
Attention: concept and parents have to exist already! Attention: existing parents not contained in parents-list will be removed!

Parameters:
name - The name of the instance.
parents - Vector of Strings of the names of the concepts-of.
Throws:
SWException

setInstanceOfConceptsTrans

public java.util.List setInstanceOfConceptsTrans(java.lang.String name,
                                                 java.util.Vector _parents,
                                                 java.util.List transactionList)
                                          throws SWException
Sets the concepts of a instance from that the instance is an instance of as transaction.
Attention: concept and parents have to exist already! Attention: existing parents not contained in parents-list will be removed!

Parameters:
name - The name of the instance.
Returns:
List The list of changes
Throws:
SWException

setPropertyParents

public void setPropertyParents(java.lang.String name,
                               java.util.Vector parents)
                        throws SWException
Sets the parents of a property.
Attention: property and parents have to exist already! Attention: existing parents not contained in parents-list will be removed!

Parameters:
name - The name of the property.
parents - Vector of Strings of the names of the parents of the property.
Throws:
SWException

setPropertyParentsTrans

public java.util.List setPropertyParentsTrans(java.lang.String name,
                                              java.util.Vector _parents,
                                              java.util.List transactionList)
                                       throws SWException
Sets the parents of a property as transaction.
Attention: property and parents have to exist already! Attention: existing parents not contained in parents-list will be removed!

Parameters:
name - The name of the property.
Throws:
SWException

setPropertyInstanceValues

public void setPropertyInstanceValues(java.lang.String property,
                                      java.lang.String instance,
                                      java.util.Vector values)
                               throws SWException
SWException

setPropertyInstanceValuesTrans

public java.util.List setPropertyInstanceValuesTrans(java.lang.String property,
                                                     java.lang.String instance,
                                                     java.util.Vector values,
                                                     java.util.List transactionList)
                                              throws SWException
Sets the values of a given property of an instance.

Parameters:
property - Property has to exist already!
instance - Instance has to exist alreasy!
values - The values of the instance. If property.isAttribute the object as String will be used, otherwise the instance named by the objects as Strings will be used.
Throws:
SWException

setPropertyDomainConcepts

public void setPropertyDomainConcepts(java.lang.String name,
                                      java.util.Vector domains)
                               throws SWException
Sets the domains of a property.
Attention: property and domains have to exist already! Attention: existing domains not contained in domains-list will be removed!

Parameters:
name - The name of the property.
Throws:
SWException

setPropertyDomainConceptsTrans

public java.util.List setPropertyDomainConceptsTrans(java.lang.String name,
                                                     java.util.Vector domainConcepts,
                                                     java.util.List transactionList)
                                              throws SWException
Sets the domains of a property as transaction.
Attention: property and domains have to exist already! Attention: existing domains not contained in domains-list will be removed!

Parameters:
name - The name of the property.
Throws:
SWException

setPropertyRangeConcepts

public void setPropertyRangeConcepts(java.lang.String name,
                                     java.util.Vector ranges)
                              throws SWException
Sets the ranges of a property.
Attention: property and ranges have to exist already! Attention: existing ranges not contained in ranges-list will be removed!

Parameters:
name - The name of the property.
Throws:
SWException

setPropertyRangeConceptsTrans

public java.util.List setPropertyRangeConceptsTrans(java.lang.String name,
                                                    java.util.Vector rangesConcepts,
                                                    java.util.List transactionList)
                                             throws SWException
Sets the ranges of a property as transaction.
Attention: property and ranges have to exist already! Attention: existing ranges not contained in ranges-list will be removed!

Parameters:
name - The name of the property.
Throws:
SWException

setPropertyDomainAndRange

public void setPropertyDomainAndRange(java.lang.String property,
                                      java.util.Vector domain,
                                      java.util.Vector ranges,
                                      boolean AIsTransitive,
                                      boolean AIsSymmetric,
                                      java.lang.String AInverse)
                               throws SWException
Sets the domain and ranges of a property.
Attention: property and ranges have to exist already! Attention: existing domains or ranges not contained in domain/ranges-list will be removed!

Parameters:
domain - Vector of Strings of the names of the domain of the property.
ranges - Vector of Strings of the names of the ranges of the property.
Throws:
SWException

setPropertyDomainAndRangeTrans

public java.util.List setPropertyDomainAndRangeTrans(java.lang.String property,
                                                     java.util.Vector domain,
                                                     java.util.Vector range,
                                                     boolean AIsTransitive,
                                                     boolean AIsSymmetric,
                                                     java.lang.String AInverse,
                                                     java.util.List transactionList)
                                              throws SWException
Sets the domain and ranges of a property as transaction.
Attention: property and ranges have to exist already! Attention: existing domains or ranges not contained in domain/ranges-list will be removed!

Parameters:
domain - Vector of Strings of the names of the domain of the property.
transactionList - List of the (old) changes to be looped through.
Throws:
SWException

getConcepts

public java.util.Vector getConcepts()
                             throws SWException
Lists all concepts of the model.

Returns:
Returns a Vector containing a list of all concepts of the model.
Throws:
SWException

getAllSubconcepts

public java.util.Vector getAllSubconcepts(java.lang.String concept)
                                   throws SWException
Lists all subconcepts (recursive) of a given concept.

Parameters:
concept - The concepts from that the subconcepts will be returned.
Returns:
A Vector containing a list of strings representing the names of the subconcepts.
Throws:
SWException

getAllSuperconcepts

public java.util.Vector getAllSuperconcepts(java.lang.String concept)
                                     throws SWException
Lists all superconcepts (recursive) of a given concept.

Parameters:
concept - The concepts from that the superconcepts will be returned.
Returns:
A Vector containing a list of strings representing the names of the superconcepts.
Throws:
SWException

getSuperconcepts

public java.util.Vector getSuperconcepts(java.lang.String concept)
                                  throws SWException
Lists all (direct) superconcepts of a given concept.

Parameters:
concept - The concepts from that the superconcepts will be returned.
Returns:
A Vector containing a list of strings representing the names of the superconcepts.
Throws:
SWException

getSubconcepts

public java.util.Vector getSubconcepts(java.lang.String concept)
                                throws SWException
Lists (direct) subconcepts of a given concept.

Parameters:
concept - The concepts from that the subconcepts will be returned.
Returns:
A Vector containing a list of strings representing the names of the subconcepts.
Throws:
SWException

getAllInstances

public java.util.Vector getAllInstances(java.lang.String concept)
                                 throws SWException
Lists all instances (recursive) of a given concept.

Parameters:
concept - The concepts from that the instances will be returned.
Returns:
A Vector containing a list of strings representing the names of the instances.
Throws:
SWException

getInstances

public java.util.Vector getInstances(java.lang.String concept)
                              throws SWException
Lists all (direct) instances of a given concept.

Parameters:
concept - The concepts from that the instances will be returned.
Returns:
A Vector containing a list of strings representing the names of the instances.
Throws:
SWException

getInstanceProperties

public java.util.Vector getInstanceProperties(java.lang.String instance)
                                       throws SWException
Lists all properties (recursive) with domain of the concept (and all superconcepts) of the given instance.

Parameters:
instance - The name of the instance
Returns:
A Vector containing a list of strings representing the names of the properties.
Throws:
SWException

getPVCount

public int getPVCount()
               throws SWException
SWException

getAllPropertiesFromConcept

public java.util.Vector getAllPropertiesFromConcept(java.lang.String concept)
                                             throws SWException
Lists all properties (recursive) starting from this concept.

Parameters:
concept - The concepts from that the properties will be returned.
Returns:
A Vector containing a list of strings representing the names of the properties.
Throws:
SWException

getPropertiesFromConcept

public java.util.Vector getPropertiesFromConcept(java.lang.String concept)
                                          throws SWException
Lists all (direct) properties starting from this concept.

Parameters:
concept - The concepts from that the properties will be returned.
Returns:
A Vector containing a list of strings representing the names of the properties.
Throws:
SWException

getAllPropertiesToConcept

public java.util.Vector getAllPropertiesToConcept(java.lang.String concept)
                                           throws SWException
Lists all properties (recursive) pointing to this concept.

Parameters:
concept - The concepts from that the properties will be returned.
Returns:
A Vector containing a list of strings representing the names of the properties.
Throws:
SWException

getPropertiesToConcept

public java.util.Vector getPropertiesToConcept(java.lang.String concept)
                                        throws SWException
Lists all (direct) properties pointing to this concept.

Parameters:
concept - The concepts from that the properties will be returned.
Returns:
A Vector containing a list of strings representing the names of the properties.
Throws:
SWException

getSubproperties

public java.util.Vector getSubproperties(java.lang.String property)
                                  throws SWException
Lists (direct) subproperties of a given property.

Parameters:
property - The property from that the subproperties will be returned.
Returns:
A Vector containing a list of strings representing the names of the subproperties.
Throws:
SWException

getAllSubproperties

public java.util.Vector getAllSubproperties(java.lang.String property)
                                     throws SWException
Lists subproperties (recursive) of a given property.

Parameters:
property - The property from that the subproperties will be returned.
Returns:
A Vector containing a list of strings representing the names of the subproperties.
Throws:
SWException

getSuperproperties

public java.util.Vector getSuperproperties(java.lang.String property)
                                    throws SWException
Lists (direct) superproperties of a given property.

Parameters:
property - The property from that the superproperties will be returned.
Returns:
A Vector containing a list of strings representing the names of the superproperties.
Throws:
SWException

getAllSuperproperties

public java.util.Vector getAllSuperproperties(java.lang.String property)
                                       throws SWException
Lists superproperties (recursive) of a given property.

Parameters:
property - The property from that the superproperties will be returned.
Returns:
A Vector containing a list of strings representing the names of the superproperties.
Throws:
SWException

getInverseProperties

public java.lang.String getInverseProperties(java.lang.String property)
                                      throws SWException
Returns the name of the inverse property of a given property.

Parameters:
property - The property from that the inverse property will be returned.
Returns:
String The name of the inverse property.
Throws:
SWException

getPropertyInstances

public java.util.Vector getPropertyInstances(java.lang.String property)
                                      throws SWException
Lists propertyinstances of a given property. The returning Strings can represent a String or the name of an propertyinstance.

Parameters:
property - The property from that the instances will be returned.
Returns:
A Vector containing a list of strings representing the values (Strings) of the properties.
Throws:
SWException

getPropertyInstanceValues

public java.util.Vector getPropertyInstanceValues(java.lang.String instance,
                                                  java.lang.String property)
                                           throws SWException
Lists values of a given property of an instance. The returning Strings can represent a String or the name of an instance.

Parameters:
instance - The instance from that the values will be returned.
property - The property from that the values will be returned.
Returns:
A Vector containing a list of strings representing the values (Strings) of the propertie. Can be Strings or Strings representing names of an instance.
Throws:
SWException

getPropertyDomainConcepts

public java.util.Vector getPropertyDomainConcepts(java.lang.String property)
                                           throws SWException
Returns the set of range concepts of this property. If a property is an attribute, empty set is returned.

Parameters:
property - The property from that the instances will be returned.
Returns:
A Vector containing a list of strings representing the range-concepts.
Throws:
SWException

getAllPropertyDomainConcepts

public java.util.Vector getAllPropertyDomainConcepts(java.lang.String property)
                                              throws SWException
Returns the set of range concepts of this property. If a property is an attribute, empty set is returned.

Parameters:
property - The property from that the instances will be returned.
Returns:
A Vector containing a list of strings representing the range-concepts.
Throws:
SWException

getPropertyRangeConcepts

public java.util.Vector getPropertyRangeConcepts(java.lang.String property)
                                          throws SWException
Returns the set of range concepts of this property. If a property is an attribute, empty set is returned.

Parameters:
property - The property from that the instances will be returned.
Returns:
A Vector containing a list of strings representing the range-concepts.
Throws:
SWException

getAllPropertyRangeConcepts

public java.util.Vector getAllPropertyRangeConcepts(java.lang.String property)
                                             throws SWException
Returns the set of range concepts of this property. If a property is an attribute, empty set is returned.

Parameters:
property - The property from that the instances will be returned.
Returns:
A Vector containing a list of strings representing the range-concepts.
Throws:
SWException

isPropertyAttribute

public boolean isPropertyAttribute(java.lang.String property)
                            throws SWException
Returns if property is attribute or not.

Parameters:
property - The name of the property.
Returns:
True if property is attribute else false.
Throws:
SWException

isPropertySymmetric

public boolean isPropertySymmetric(java.lang.String property)
                            throws SWException
Returns if property is symmetric or not.

Parameters:
property - The name of the property.
Returns:
True if property is symmetric else false.
Throws:
SWException

isPropertyTransitive

public boolean isPropertyTransitive(java.lang.String property)
                             throws SWException
Returns if property is transitive or not.

Parameters:
property - The name of the property.
Returns:
True if property is transitive else false.
Throws:
SWException

isPropertyInModel

public boolean isPropertyInModel(java.lang.String property)
                          throws SWException
Returns if property is in the model or not.

Parameters:
property - The name of the property.
Returns:
True if property is in the model else false.
Throws:
SWException

isConceptInModel

public boolean isConceptInModel(java.lang.String concept)
                         throws SWException
Returns if concept is in the model or not.

Parameters:
concept - The name of the concept.
Returns:
True if concept is in the model else false.
Throws:
SWException

isInstanceInModel

public boolean isInstanceInModel(java.lang.String instance)
                          throws SWException
Returns if instance is in the model or not.

Parameters:
instance - The name of the instance.
Returns:
True if instance is in the model else false.
Throws:
SWException

isPropertyFunctional

public boolean isPropertyFunctional(java.lang.String property)
                             throws SWException
Returns if property is functional or not.

Parameters:
property - The name of the property.
Returns:
True if property is functional else false.
Throws:
SWException

setPropertyFunctional

public void setPropertyFunctional(java.lang.String property,
                                  boolean isItSo)
                           throws SWException
Sets if property is functional or not. If it is functional it has cardinality [0,1], otherwise it has cardinality [0,Integer.MAX_VALUE].
Since cardinality is local, the cardinality of the property of the superconcept will be set.

Parameters:
property - The name of the property.
isItSo - Set true if property is functional, else false
Throws:
SWException

setPropertyFunctionalTrans

public java.util.List setPropertyFunctionalTrans(java.lang.String property,
                                                 boolean isItSo,
                                                 java.util.List transactionList)
                                          throws SWException
Sets if property is functional or not as transaction.

Parameters:
property - The name of the property.
isItSo - Set true if property is functional, else false
Throws:
SWException

setEntitySitelist

public void setEntitySitelist(java.lang.String entity,
                              java.util.Vector sitelist)
                       throws SWException
Sets the sitelist of an entity (a list of URLs where the entity appears).

Parameters:
entity - The name of the entity.
sitelist - The sitelist to set.
Throws:
SWException

setEntitySitelistTrans

public java.util.List setEntitySitelistTrans(java.lang.String entity,
                                             java.util.Vector sitelist,
                                             java.util.List transactionList)
                                      throws SWException
Sets the sitelist of an entity (a list of URLs where the entity appears).

Parameters:
entity - The name of the entity.
sitelist - The sitelist to set.
Throws:
SWException

getEntitySitelist

public java.util.Vector getEntitySitelist(java.lang.String entity)
                                   throws SWException
Parameters:
entity -
Returns:
Throws:
SWException

getInstanceParentConcepts

public java.util.Vector getInstanceParentConcepts(java.lang.String instance)
                                           throws SWException
Lists (direct) parent concepts of a given instance.

Returns:
A Vector containing a list of strings representing the names of the concepts that are parents of the instance.
Throws:
SWException

getInstanceAllParentConcepts

public java.util.Vector getInstanceAllParentConcepts(java.lang.String instance)
                                              throws SWException
Lists parent concepts (recursive) of a given instance.

Returns:
A Vector containing a list of strings representing the names of the concepts that are parents of the instance.
Throws:
SWException

newInstance

public void newInstance(java.lang.String name,
                        java.lang.String concept)
                 throws SWException
SWException

getInstances

public java.util.Vector getInstances()
                              throws SWException
Lists all instances of the model.

Returns:
Returns a Vector containing a list of all instances of the model.
Throws:
SWException

removeConcept

public void removeConcept(java.lang.String concept)
                   throws SWException
Removes a concept. Dependent of the evolutionstratigy subconcepts will be removed too, or will be moved to another parant.

Parameters:
concept - The name of the concept to remove.
Throws:
SWException

removeInstance

public void removeInstance(java.lang.String instance)
                    throws SWException
Removes an instance.

Parameters:
instance - The name of the instance to remove.
Throws:
SWException

removeProperty

public void removeProperty(java.lang.String property)
                    throws SWException
Removes a property. Dependent of the evolutionstratigy subproperties will be removed too, or will be moved to another parant.

Parameters:
property - The name of the property to remove.
Throws:
SWException

setVersion

public void setVersion(int version)
                throws SWException
Restores an older version of the model and creates a new version.

Parameters:
version - the version that should be restored.
Throws:
SWException

listVersionChanges

public java.lang.String listVersionChanges(int version)
                                    throws SWException
Lists all changes from a version to the current version.

Parameters:
version - the version from that the changes should be listed.
Throws:
SWException

getVersion

public java.lang.String getVersion()
                            throws SWException
Returns the current versionnumber of the model (+1 ?)

Returns:
the version number of the model.
Throws:
SWException

saveAsFileKAON

public void saveAsFileKAON(java.lang.String modelFilename)
                    throws SWException
SWException

saveAsFileKAON

public void saveAsFileKAON(java.lang.String modelFilename,
                           java.lang.String evolutionLogFilename)
                    throws SWException
SWException

saveAsFileOWLXML

public void saveAsFileOWLXML(java.lang.String modelFilename)
                      throws SWException
SWException

getOWLXML

public java.lang.String getOWLXML()
                           throws SWException
SWException

saveAsFileOWLXML

public void saveAsFileOWLXML(java.lang.String modelFilename,
                             java.lang.String evolutionLogFilename)
                      throws SWException
SWException

executeQuery

public SWQueryResult executeQuery(java.lang.String query)
                           throws SWException
Executes a query and returns a SWQueryResult that contains a list of Concepts, Instances, Properties and Objects, all represented as (the last part of ) the URI of the entities. The objects are all strings since kaon only supports strings.

Parameters:
query -
Returns:
SWQueryResult. The result of the query. Depending of the type of query the objects are stored in the concept, instance, property or object list.
Throws:
SWException