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)
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