edu.unika.aifb.kaon
Interface Instance

All Known Implementing Classes:
InstanceImpl, InstanceImpl

public interface Instance
extends NamedEntity, ReferencedEntity

Instance Instance of a concept part of Simple Triple Store (SITRIS) http://ontoserver.aifb.uni-karlsruhe.de/sts (c) 2001 AIFB, Universität Karlsruhe (TH)

Author:
: Raphael Volz (volz@aifb.uni-karlsruhe.de)

Method Summary
 voidaddValue(Relation rel, RDFNode value)
          Fills Relation rel with value val, if a value for this attribute already exists, a second attribute is added.
 Instance[]getAllAssociations()
           
 Instance[]getAllAssociationsME()
           
 org.w3c.rdf.model.Literal[]getAllAttributes()
           
 org.w3c.rdf.model.Literal[]getAllAttributesME()
           
 ConceptgetConcept()
          Returns the concept, this instance has been defined for.
 RDFNodegetValue(Relation rel)
           
 CollectiongetValues(Relation rel)
           
 booleanhasValue(Relation rel)
           
 booleanisValid()
          Checks whether all relations defined for the associated concept (including inherited) have been instanciated within this instance
 voidremoveValues(Relation rel)
          Remove all values of the specified Relation
 voidsetValue(Relation rel, RDFNode value)
          Fills Relation rel with value val, overwrites existing attribute value

Methods inherited from interface edu.unika.aifb.kaon.NamedEntity
getDocumentation, getDocumentation, getLabel, getLabel, getStems, getSynonymsME, setDocumentation, setLabel, setStems, setSynonymsME

Methods inherited from interface edu.unika.aifb.kaon.Entity
getIdentifier, getOntology, setIdentifier, setOntology

Methods inherited from interface edu.unika.aifb.kaon.ReferencedEntity
getLexicalEntries

Method Detail

addValue

public void addValue(Relation rel, RDFNode value)
throws org.w3c.rdf.model.ModelException,
edu.unika.aifb.sitris.exception.NotSupportedException,
java.util.NoSuchElementException
Fills Relation rel with value val, if a value for this attribute already exists, a second attribute is added.
Parameters:
rel - edu.unika.aifb.kaon.Relation
value - org.w3c.rdf.model.RDFNode

getAllAssociations

public Instance[] getAllAssociations()
throws org.w3c.rdf.model.ModelException,
edu.unika.aifb.sitris.exception.NotSupportedException
Returns: all attribute values of this instance

getAllAssociationsME

public Instance[] getAllAssociationsME()
throws org.w3c.rdf.model.ModelException,
edu.unika.aifb.sitris.exception.NotSupportedException
Returns: all attribute values of this instance including multiple results

getAllAttributes

public org.w3c.rdf.model.Literal[] getAllAttributes()
throws org.w3c.rdf.model.ModelException,
edu.unika.aifb.sitris.exception.NotSupportedException
Returns: all associations values of this instance

getAllAttributesME

public org.w3c.rdf.model.Literal[] getAllAttributesME()
throws org.w3c.rdf.model.ModelException,
edu.unika.aifb.sitris.exception.NotSupportedException
Returns: all associations values of this instance including multiple results

getConcept

public Concept getConcept()
throws org.w3c.rdf.model.ModelException,
edu.unika.aifb.sitris.exception.NotSupportedException
Returns the concept, this instance has been defined for. Creation date: (09.07.2001 09:17:05)
Returns: edu.unika.aifb.sitris.ontology.Concept

getValue

public RDFNode getValue(Relation rel)
throws java.util.NoSuchElementException,
org.w3c.rdf.model.ModelException
Parameters:
rel - edu.unika.aifb.kaon.Relation
Returns: org.w3c.rdf.model.RDFNode, The last value of the specified Relation

getValues

public Collection getValues(Relation rel)
throws java.util.NoSuchElementException,
org.w3c.rdf.model.ModelException
Parameters:
rel - edu.unika.aifb.kaon.Relation
Returns: Collection All Values of the specified Relation

hasValue

public boolean hasValue(Relation rel)
throws org.w3c.rdf.model.ModelException

isValid

public boolean isValid()
throws org.w3c.rdf.model.ModelException,
edu.unika.aifb.sitris.exception.NotSupportedException
Checks whether all relations defined for the associated concept (including inherited) have been instanciated within this instance
Returns: boolean

removeValues

public void removeValues(Relation rel)
throws java.util.NoSuchElementException,
org.w3c.rdf.model.ModelException
Remove all values of the specified Relation
Parameters:
rel - edu.unika.aifb.kaon.Relation

setValue

public void setValue(Relation rel, RDFNode value)
throws org.w3c.rdf.model.ModelException,
edu.unika.aifb.sitris.exception.NotSupportedException,
java.util.NoSuchElementException
Fills Relation rel with value val, overwrites existing attribute value
Parameters:
rel - edu.unika.aifb.kaon.Relation
value - org.w3c.rdf.model.RDFNode