edu.lehigh.swat.hawk.core
Interface Document

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
Ontology
All Known Implementing Classes:
Document, Document, Ontology, Ontology, Ontology, Ontology, Ontology, Ontology

public interface Document
extends java.io.Serializable

change history: 2004/02/03 Pan: add descendants.


Method Summary
 void addAssertion(ObjectId subject, ObjectId predicate, ObjectId object)
          Add an assertion to this document.
 void addDescription(java.lang.String s)
          Add a description.
 void addDistinctIndividualsSet(java.util.Collection dis)
          Add a set of distinct individuals' IDs $change: collection allow duplicate members, which we wanna accommodate here.
 void addImports(DocId id)
          Add an imports statement.
 void addIndividual(Individual indi)
          Add an individual.
 void addSameIndividualsSet(java.util.Collection dis)
          Add a set of equivalent individuals' IDs
 Individual createIndividual()
          Create a Individual object.
 void deleteAssertion(Assertion a)
          Delete an assertion in this document.
 void deleteDescriprion(java.lang.String s)
          Delete a description.
 void deleteDistinctIndividualsSet(java.util.Collection dis)
          delete a set of distinct individuals' IDs
 void deleteImports(DocId id)
          Delete an imports statement.
 void deleteIndividual(Individual indi)
          Delete an individual.
 void deleteSameIndividualsSet(java.util.Collection dis)
          delete a set of equivalent individuals' IDs
 void flush()
          Flush this document.
 Assertion[] getAllAssertions()
          Get all assertions.
 java.util.Iterator getAllDescriptions()
          Get all the descriptions.
 Individual[] getAllIndividuals()
          Get all the individuals.
 java.util.Iterator getAssertionIterator()
          Get the Iterator of all the assertions.
 java.util.Stack getDescendants()
          Get descendants.
 java.lang.String getDescription()
          Get the first description.
 java.util.Collection[] getDistinctIndividualsSets()
          get sets of distinct individuals' IDs
 DocId getID()
          get the ID of this document
 DocId[] getImports()
          Get the imports statements.
 Individual getIndividual(ObjectId id)
          Get an individual.
 java.util.Iterator getIndividualIterator()
          Get the Iterator of all the individuals.
 java.lang.String getLabel()
          Get the label.
 java.util.Map getNameSpaces()
          Get the nameSpaces of this document.
 java.util.Collection[] getSameIndividualsSets()
          get sets of equivalent individuals' IDs
 int getSize()
          Get the number of triples in this document.
 java.lang.String getXMLBase()
          Get the xml:Base of this document.
 void setDescendants(java.util.Stack des)
          Set descendants.
 void setID(DocId id)
          set the ID of this document
 void setLabel(java.lang.String s)
          Set the label.
 void setNameSpaces(java.util.Map ns)
          Set the nameSpaces of this document.
 void setSize(int s)
          Set the number of triples in this document.
 void setXMLBase(java.lang.String base)
          Set the xml:Base of this document.
 

Method Detail

addAssertion

void addAssertion(ObjectId subject,
                  ObjectId predicate,
                  ObjectId object)
Add an assertion to this document.


deleteAssertion

void deleteAssertion(Assertion a)
Delete an assertion in this document.


getAllAssertions

Assertion[] getAllAssertions()
Get all assertions.


getAssertionIterator

java.util.Iterator getAssertionIterator()
Get the Iterator of all the assertions.


getImports

DocId[] getImports()
Get the imports statements.


addImports

void addImports(DocId id)
Add an imports statement.


deleteImports

void deleteImports(DocId id)
Delete an imports statement.


getID

DocId getID()
get the ID of this document


setID

void setID(DocId id)
set the ID of this document


addDistinctIndividualsSet

void addDistinctIndividualsSet(java.util.Collection dis)
Add a set of distinct individuals' IDs $change: collection allow duplicate members, which we wanna accommodate here.


deleteDistinctIndividualsSet

void deleteDistinctIndividualsSet(java.util.Collection dis)
delete a set of distinct individuals' IDs


getDistinctIndividualsSets

java.util.Collection[] getDistinctIndividualsSets()
get sets of distinct individuals' IDs


addSameIndividualsSet

void addSameIndividualsSet(java.util.Collection dis)
Add a set of equivalent individuals' IDs


deleteSameIndividualsSet

void deleteSameIndividualsSet(java.util.Collection dis)
delete a set of equivalent individuals' IDs


getSameIndividualsSets

java.util.Collection[] getSameIndividualsSets()
get sets of equivalent individuals' IDs


createIndividual

Individual createIndividual()
Create a Individual object.


addIndividual

void addIndividual(Individual indi)
Add an individual.


deleteIndividual

void deleteIndividual(Individual indi)
Delete an individual.


getIndividual

Individual getIndividual(ObjectId id)
Get an individual.


getAllIndividuals

Individual[] getAllIndividuals()
Get all the individuals.


getIndividualIterator

java.util.Iterator getIndividualIterator()
Get the Iterator of all the individuals.


setNameSpaces

void setNameSpaces(java.util.Map ns)
Set the nameSpaces of this document.


getNameSpaces

java.util.Map getNameSpaces()
Get the nameSpaces of this document.


setXMLBase

void setXMLBase(java.lang.String base)
Set the xml:Base of this document.


getXMLBase

java.lang.String getXMLBase()
Get the xml:Base of this document.


addDescription

void addDescription(java.lang.String s)
Add a description.


deleteDescriprion

void deleteDescriprion(java.lang.String s)
Delete a description.


getDescription

java.lang.String getDescription()
Get the first description.


getAllDescriptions

java.util.Iterator getAllDescriptions()
Get all the descriptions.


setLabel

void setLabel(java.lang.String s)
Set the label.


getLabel

java.lang.String getLabel()
Get the label.


setDescendants

void setDescendants(java.util.Stack des)
Set descendants.


getDescendants

java.util.Stack getDescendants()
Get descendants.


getSize

int getSize()
Get the number of triples in this document.


setSize

void setSize(int s)
Set the number of triples in this document.


flush

void flush()
Flush this document. May be needed for database storage models.