edu.lehigh.swat.obione
Class MapKB

java.lang.Object
  extended by edu.lehigh.swat.obione.MapKB

public class MapKB
extends java.lang.Object

Models the collection of MapView and SourceView objects indexed by their source ontologies

Author:
abirqasem

Field Summary
private  java.util.HashMap<java.lang.String,java.util.Vector<Map>> peerKB
           
private  java.util.HashMap<java.lang.String,java.util.Vector<Map>> sourceKB
           
 
Constructor Summary
MapKB()
          Intializes the knowledgebase
 
Method Summary
 void addMap(Map m)
           
 void dumpKB()
           
 java.util.Vector<Map> getPeerMapsForSourceOnt(java.lang.String ont)
          Given an ontology returns all the peer maps which has the ontology as source ontology
 java.util.Vector<Map> getSourceDescForOnt(java.lang.String ont)
          Given an ontology returns all the source description for that ontology
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

peerKB

private java.util.HashMap<java.lang.String,java.util.Vector<Map>> peerKB

sourceKB

private java.util.HashMap<java.lang.String,java.util.Vector<Map>> sourceKB
Constructor Detail

MapKB

MapKB()
Intializes the knowledgebase

Method Detail

getPeerMapsForSourceOnt

public java.util.Vector<Map> getPeerMapsForSourceOnt(java.lang.String ont)
Given an ontology returns all the peer maps which has the ontology as source ontology

Parameters:
ont -
Returns:
maps

getSourceDescForOnt

public java.util.Vector<Map> getSourceDescForOnt(java.lang.String ont)
Given an ontology returns all the source description for that ontology

Parameters:
ont -
Returns:
maps

addMap

public void addMap(Map m)

main

public static void main(java.lang.String[] args)
Parameters:
args -

dumpKB

public void dumpKB()