org.semanticweb.elk.reasoner.taxonomy.model
Interface TypeNode<T extends ElkObject,I extends ElkObject>

Type Parameters:
T - the type of objects in this node
I - the type of instances of this node
All Superinterfaces:
Node<T>, TaxonomyNode<T>
All Known Subinterfaces:
UpdateableTypeNode<T,I>
All Known Implementing Classes:
FreshTypeNode, OrphanTypeNode

public interface TypeNode<T extends ElkObject,I extends ElkObject>
extends TaxonomyNode<T>

A node in a taxonomy that has instances. This mainly makes sense for classes and individuals, and for properties and pairs of individuals.

Author:
Markus Kroetzsch, Frantisek Simancik, "Yevgeny Kazakov"

Method Summary
 Set<? extends InstanceNode<T,I>> getAllInstanceNodes()
          Get an unmodifiable set of InstanceNodes that are (possibly indirect) instances of this TypeNode.
 Set<? extends TypeNode<T,I>> getAllSubNodes()
          Computes an unmodifiable set of nodes for ElkObjects that are (possibly indirect) sub-objects of members of this Node.
 Set<? extends TypeNode<T,I>> getAllSuperNodes()
          Computes an unmodifiable set of nodes for ElkObjects that are (possibly indirect) super-objects of members of this Node.
 Set<? extends InstanceNode<T,I>> getDirectInstanceNodes()
          Get an unmodifiable set of InstanceNodes that are direct instances of this TypeNode.
 Set<? extends TypeNode<T,I>> getDirectSubNodes()
          Get an unmodifiable set of nodes for ElkObjects that are direct sub-objects of this Node.
 Set<? extends TypeNode<T,I>> getDirectSuperNodes()
          Get an unmodifiable set of nodes for ElkObjects that are direct super-objects of this Node.
 
Methods inherited from interface org.semanticweb.elk.reasoner.taxonomy.model.Node
getCanonicalMember, getMembers
 

Method Detail

getDirectInstanceNodes

Set<? extends InstanceNode<T,I>> getDirectInstanceNodes()
Get an unmodifiable set of InstanceNodes that are direct instances of this TypeNode. An InstanceNode is a direct instance of a TypeNode if it is an instance of the TypeNode and not an instance of any sub-node of a TypeNode.

Returns:
nodes for direct instances of this node's members

getAllInstanceNodes

Set<? extends InstanceNode<T,I>> getAllInstanceNodes()
Get an unmodifiable set of InstanceNodes that are (possibly indirect) instances of this TypeNode.

Returns:
nodes for all instances of this node's members

getDirectSuperNodes

Set<? extends TypeNode<T,I>> getDirectSuperNodes()
Description copied from interface: TaxonomyNode
Get an unmodifiable set of nodes for ElkObjects that are direct super-objects of this Node.

Specified by:
getDirectSuperNodes in interface TaxonomyNode<T extends ElkObject>
Returns:
list of nodes for direct super-objects of this node's members

getAllSuperNodes

Set<? extends TypeNode<T,I>> getAllSuperNodes()
Description copied from interface: TaxonomyNode
Computes an unmodifiable set of nodes for ElkObjects that are (possibly indirect) super-objects of members of this Node. This is the smallest set of nodes that contains all direct super-nodes of this node, and all direct super-nodes of every node in this set.

Specified by:
getAllSuperNodes in interface TaxonomyNode<T extends ElkObject>
Returns:
set of nodes for sub-objects of this node's members

getDirectSubNodes

Set<? extends TypeNode<T,I>> getDirectSubNodes()
Description copied from interface: TaxonomyNode
Get an unmodifiable set of nodes for ElkObjects that are direct sub-objects of this Node.

Specified by:
getDirectSubNodes in interface TaxonomyNode<T extends ElkObject>
Returns:
list of nodes for direct sub-objects of this node's members

getAllSubNodes

Set<? extends TypeNode<T,I>> getAllSubNodes()
Description copied from interface: TaxonomyNode
Computes an unmodifiable set of nodes for ElkObjects that are (possibly indirect) sub-objects of members of this Node. This is the smallest set of nodes that contains all direct sub-nodes of this node, and all direct sub-nodes of every node in this set.

Specified by:
getAllSubNodes in interface TaxonomyNode<T extends ElkObject>
Returns:
set of nodes for sub-objects of this node's members


Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.