edu.uga.cs.lsdis.semdisds
Interface IInstanceNode

All Superinterfaces:
java.lang.Comparable, IResource, IURI
All Known Subinterfaces:
IAlternative, IBag, IBlankNode, ISequence

public interface IInstanceNode
extends IResource, java.lang.Comparable, IURI

Interface for an instance node

Version:
0.1: created July 2005, 0.2: Boanerges Aleman-Meza: getTypes() now returns an iterable object, 0.3: 2005-11-30: Boanerges Aleman-Meza: now it also extends IURI

Field Summary
 
Fields inherited from interface edu.uga.cs.lsdis.semdisds.IURI
OWL, OWL_CLASS, OWL_DATATYPE_PROPERTY, OWL_OBJECT_PROPERTY, OWL_SAMEAS, RDF, RDF_ALT, RDF_BAG, RDF_OBJECT, RDF_PREDICATE, RDF_PROPERTY, RDF_SEQ, RDF_STATEMENT, RDF_SUBJECT, RDF_TYPE, RDFS, RDFS_CLASS, RDFS_DATATYPE, RDFS_DOMAIN, RDFS_LABEL, RDFS_RANGE, RDFS_RESOURCE, RDFS_SEEALSO, RDFS_SUBCLASSOF, RDFS_SUBPROPERTYOF, XSD, XSD_BOOLEAN, XSD_DATE, XSD_DECIMAL, XSD_INTEGER, XSD_STRING, XSD2, XSD2_BOOLEAN, XSD2_DATE, XSD2_DECIMAL, XSD2_INTEGER, XSD2_STRING
 
Method Summary
 IExtendedIterator<ISchemaClass> getTypes()
          Returns the classes to which this instance node belongs
 boolean isExactType(ISchemaClass aClassType)
          Checks if instance is of exact given type
 boolean isOfType(ISchemaClass aClassType)
          Checks if any ancesstor type of instance is of given class
 
Methods inherited from interface edu.uga.cs.lsdis.semdisds.IResource
getEdges, getIncomingEdges, getIncomingEdges, getLiterals, getLiterals, getOutgoingEdges, getOutgoingEdges, getURI
 
Methods inherited from interface edu.uga.cs.lsdis.semdisds.IURI
getAlias, getNamespace, getShortName
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getTypes

IExtendedIterator<ISchemaClass> getTypes()

Returns the classes to which this instance node belongs

Returns:
returns the classes to which this instance node belongs

isExactType

boolean isExactType(ISchemaClass aClassType)

Checks if instance is of exact given type

Parameters:
aClassType - the class type
Returns:
true if one of the direct types of this instance matches aClassType

isOfType

boolean isOfType(ISchemaClass aClassType)

Checks if any ancesstor type of instance is of given class

Parameters:
aClassType - The class type
Returns:
true if one of the types (that is, any ancesstor type) of this instance matches aClassType