All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class SHOE.ClaimSubjectIndexer

java.lang.Object
   |
   +----SHOE.ClaimSubjectIndexer

public class ClaimSubjectIndexer
extends Object
A supplemental class that will organize an instance in such a way that its claims can be efficiently retrieved by the subject of the claim. Here subject means the object that a category claim describes or an argument that a relation claim refers to.


Constructor Index

 o ClaimSubjectIndexer(Instance, int)
Constructs a new ClaimSubjectIndexer using the category claims and arguments of relations up to the specified indexArity.

Method Index

 o getClaimSubjectKeys()
Returns the set of subject keys that have been indexed for this instance.
 o getClaimSubjects()
Returns the set of claim subjects that have been indexed for this instance.
 o getSubjectCategories(String)
Returns the set of Categories for the subject with the given key.
 o getSubjectRelations(String, int)
Returns the set of Relations in which the given subject key appears in the given argument position.

Constructors

 o ClaimSubjectIndexer
 public ClaimSubjectIndexer(Instance inst,
                            int indexArity)
Constructs a new ClaimSubjectIndexer using the category claims and arguments of relations up to the specified indexArity.

Methods

 o getSubjectCategories
 public Vector getSubjectCategories(String key)
Returns the set of Categories for the subject with the given key.

 o getSubjectRelations
 public Vector getSubjectRelations(String key,
                                   int argPos)
Returns the set of Relations in which the given subject key appears in the given argument position.

 o getClaimSubjects
 public Enumeration getClaimSubjects()
Returns the set of claim subjects that have been indexed for this instance. A claim subject consists of a subject key and the set of all claims that refer to that subject.

 o getClaimSubjectKeys
 public Enumeration getClaimSubjectKeys()
Returns the set of subject keys that have been indexed for this instance.


All Packages  Class Hierarchy  This Package  Previous  Next  Index