|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| 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 |
public void close()
throws SWException
SWExceptionpublic java.lang.String getSuperConcept()
public java.lang.String getSuperProperty()
public java.lang.String getWikibase()
public void endTransaction(java.util.List changes)
throws SWException
changes - The changes to make
SWException
public java.lang.String listTransaction(java.util.List changes)
throws SWException
changes - The changes list.
SWExceptionpublic java.util.List beginTransaction()
public void newProperty(java.lang.String name,
java.lang.String parent)
throws SWException
SWException
public void newPropertyInstance(java.lang.String property,
java.lang.String instance,
java.lang.Object val)
throws SWException
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.
SWException
public void setPropertyIsAttribute(java.lang.String property,
boolean isItSo)
throws SWException
property - The property that domain will be set.isItSo - true if property is attribute, false if is no attribute (use to unset)
SWException
public java.util.List setPropertyIsAttributeTrans(java.lang.String property,
boolean isItSo,
java.util.List transactionList)
throws SWException
property - The property that domain will be set.isItSo - true if property is attribute, false if is no attribute (use to unset)
SWException
public void setPropertyIsSymmetric(java.lang.String property,
boolean isItSo)
throws SWException
property - The property that domain will be set.isItSo - true if property is symmetric, false if is not symmetric (use to unset)
SWException
public java.util.List setPropertyIsSymmetricTrans(java.lang.String property,
boolean isItSo,
java.util.List transactionList)
throws SWException
property - The property that domain will be set.isItSo - true if property is symmetric, false if is not symmetric (use to unset)
SWException
public void setPropertyIsTransitive(java.lang.String property,
boolean isItSo)
throws SWException
property - The property that domain will be set.isItSo - true if property is transitive, false if is not transitive (use to unset)
SWException
public java.util.List setPropertyIsTransitiveTrans(java.lang.String property,
boolean isItSo,
java.util.List transactionList)
throws SWException
property - The property that domain will be set.isItSo - true if property is transitive, false if is not transitive (use to unset)
SWException
public void setPropertyInverse(java.lang.String property1,
java.lang.String property2)
throws SWException
SWException
public java.util.List setPropertyInverseTrans(java.lang.String property1,
java.lang.String property2,
java.util.List transactionList)
throws SWException
SWException
public java.util.Vector getProperties()
throws SWException
SWException
public void newSuperProperty(java.lang.String name)
throws SWException
name - The name of the superproperty.
SWException
public void newSuperConcept(java.lang.String name)
throws SWException
name - The name of the superconcept.
SWException
public void newConcept(java.lang.String name,
java.lang.String parent)
throws SWException
name - The name of the concept.parent - The superclass of the concept.
SWException
public void setConceptParents(java.lang.String name,
java.util.Vector parents)
throws SWException
name - The name of the concept.parents - Vector of Strings of the names of the parents of the concept.
SWException
public java.util.List setConceptParentsTrans(java.lang.String name,
java.util.Vector _parents,
java.util.List transactionList)
throws SWException
name - The name of the concept.
SWException
public void setInstanceOfConcepts(java.lang.String name,
java.util.Vector parents)
throws SWException
name - The name of the instance.parents - Vector of Strings of the names of the concepts-of.
SWException
public java.util.List setInstanceOfConceptsTrans(java.lang.String name,
java.util.Vector _parents,
java.util.List transactionList)
throws SWException
name - The name of the instance.
SWException
public void setPropertyParents(java.lang.String name,
java.util.Vector parents)
throws SWException
name - The name of the property.parents - Vector of Strings of the names of the parents of the property.
SWException
public java.util.List setPropertyParentsTrans(java.lang.String name,
java.util.Vector _parents,
java.util.List transactionList)
throws SWException
name - The name of the property.
SWException
public void setPropertyInstanceValues(java.lang.String property,
java.lang.String instance,
java.util.Vector values)
throws SWException
SWException
public java.util.List setPropertyInstanceValuesTrans(java.lang.String property,
java.lang.String instance,
java.util.Vector values,
java.util.List transactionList)
throws SWException
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.
SWException
public void setPropertyDomainConcepts(java.lang.String name,
java.util.Vector domains)
throws SWException
name - The name of the property.
SWException
public java.util.List setPropertyDomainConceptsTrans(java.lang.String name,
java.util.Vector domainConcepts,
java.util.List transactionList)
throws SWException
name - The name of the property.
SWException
public void setPropertyRangeConcepts(java.lang.String name,
java.util.Vector ranges)
throws SWException
name - The name of the property.
SWException
public java.util.List setPropertyRangeConceptsTrans(java.lang.String name,
java.util.Vector rangesConcepts,
java.util.List transactionList)
throws SWException
name - The name of the property.
SWException
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
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.
SWException
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
domain - Vector of Strings of the names of the domain of the property.transactionList - List of the (old) changes to be looped through.
SWException
public java.util.Vector getConcepts()
throws SWException
SWException
public java.util.Vector getAllSubconcepts(java.lang.String concept)
throws SWException
concept - The concepts from that the subconcepts will be returned.
SWException
public java.util.Vector getAllSuperconcepts(java.lang.String concept)
throws SWException
concept - The concepts from that the superconcepts will be returned.
SWException
public java.util.Vector getSuperconcepts(java.lang.String concept)
throws SWException
concept - The concepts from that the superconcepts will be returned.
SWException
public java.util.Vector getSubconcepts(java.lang.String concept)
throws SWException
concept - The concepts from that the subconcepts will be returned.
SWException
public java.util.Vector getAllInstances(java.lang.String concept)
throws SWException
concept - The concepts from that the instances will be returned.
SWException
public java.util.Vector getInstances(java.lang.String concept)
throws SWException
concept - The concepts from that the instances will be returned.
SWException
public java.util.Vector getInstanceProperties(java.lang.String instance)
throws SWException
instance - The name of the instance
SWException
public int getPVCount()
throws SWException
SWException
public java.util.Vector getAllPropertiesFromConcept(java.lang.String concept)
throws SWException
concept - The concepts from that the properties will be returned.
SWException
public java.util.Vector getPropertiesFromConcept(java.lang.String concept)
throws SWException
concept - The concepts from that the properties will be returned.
SWException
public java.util.Vector getAllPropertiesToConcept(java.lang.String concept)
throws SWException
concept - The concepts from that the properties will be returned.
SWException
public java.util.Vector getPropertiesToConcept(java.lang.String concept)
throws SWException
concept - The concepts from that the properties will be returned.
SWException
public java.util.Vector getSubproperties(java.lang.String property)
throws SWException
property - The property from that the subproperties will be returned.
SWException
public java.util.Vector getAllSubproperties(java.lang.String property)
throws SWException
property - The property from that the subproperties will be returned.
SWException
public java.util.Vector getSuperproperties(java.lang.String property)
throws SWException
property - The property from that the superproperties will be returned.
SWException
public java.util.Vector getAllSuperproperties(java.lang.String property)
throws SWException
property - The property from that the superproperties will be returned.
SWException
public java.lang.String getInverseProperties(java.lang.String property)
throws SWException
property - The property from that the inverse property will be returned.
SWException
public java.util.Vector getPropertyInstances(java.lang.String property)
throws SWException
property - The property from that the instances will be returned.
SWException
public java.util.Vector getPropertyInstanceValues(java.lang.String instance,
java.lang.String property)
throws SWException
instance - The instance from that the values will be returned.property - The property from that the values will be returned.
SWException
public java.util.Vector getPropertyDomainConcepts(java.lang.String property)
throws SWException
property - The property from that the instances will be returned.
SWException
public java.util.Vector getAllPropertyDomainConcepts(java.lang.String property)
throws SWException
property - The property from that the instances will be returned.
SWException
public java.util.Vector getPropertyRangeConcepts(java.lang.String property)
throws SWException
property - The property from that the instances will be returned.
SWException
public java.util.Vector getAllPropertyRangeConcepts(java.lang.String property)
throws SWException
property - The property from that the instances will be returned.
SWException
public boolean isPropertyAttribute(java.lang.String property)
throws SWException
property - The name of the property.
SWException
public boolean isPropertySymmetric(java.lang.String property)
throws SWException
property - The name of the property.
SWException
public boolean isPropertyTransitive(java.lang.String property)
throws SWException
property - The name of the property.
SWException
public boolean isPropertyInModel(java.lang.String property)
throws SWException
property - The name of the property.
SWException
public boolean isConceptInModel(java.lang.String concept)
throws SWException
concept - The name of the concept.
SWException
public boolean isInstanceInModel(java.lang.String instance)
throws SWException
instance - The name of the instance.
SWException
public boolean isPropertyFunctional(java.lang.String property)
throws SWException
property - The name of the property.
SWException
public void setPropertyFunctional(java.lang.String property,
boolean isItSo)
throws SWException
property - The name of the property.isItSo - Set true if property is functional, else false
SWException
public java.util.List setPropertyFunctionalTrans(java.lang.String property,
boolean isItSo,
java.util.List transactionList)
throws SWException
property - The name of the property.isItSo - Set true if property is functional, else false
SWException
public void setEntitySitelist(java.lang.String entity,
java.util.Vector sitelist)
throws SWException
entity - The name of the entity.sitelist - The sitelist to set.
SWException
public java.util.List setEntitySitelistTrans(java.lang.String entity,
java.util.Vector sitelist,
java.util.List transactionList)
throws SWException
entity - The name of the entity.sitelist - The sitelist to set.
SWException
public java.util.Vector getEntitySitelist(java.lang.String entity)
throws SWException
entity -
SWException
public java.util.Vector getInstanceParentConcepts(java.lang.String instance)
throws SWException
SWException
public java.util.Vector getInstanceAllParentConcepts(java.lang.String instance)
throws SWException
SWException
public void newInstance(java.lang.String name,
java.lang.String concept)
throws SWException
SWException
public java.util.Vector getInstances()
throws SWException
SWException
public void removeConcept(java.lang.String concept)
throws SWException
concept - The name of the concept to remove.
SWException
public void removeInstance(java.lang.String instance)
throws SWException
instance - The name of the instance to remove.
SWException
public void removeProperty(java.lang.String property)
throws SWException
property - The name of the property to remove.
SWException
public void setVersion(int version)
throws SWException
version - the version that should be restored.
SWException
public java.lang.String listVersionChanges(int version)
throws SWException
version - the version from that the changes should be listed.
SWException
public java.lang.String getVersion()
throws SWException
SWException
public void saveAsFileKAON(java.lang.String modelFilename)
throws SWException
SWException
public void saveAsFileKAON(java.lang.String modelFilename,
java.lang.String evolutionLogFilename)
throws SWException
SWException
public void saveAsFileOWLXML(java.lang.String modelFilename)
throws SWException
SWException
public java.lang.String getOWLXML()
throws SWException
SWException
public void saveAsFileOWLXML(java.lang.String modelFilename,
java.lang.String evolutionLogFilename)
throws SWException
SWException
public SWQueryResult executeQuery(java.lang.String query)
throws SWException
query -
SWException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||