edu.lehigh.swat.obione
Class MiniConDescription

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

public class MiniConDescription
extends java.lang.Object


Field Summary
private  boolean headInQuery
           
private  java.util.HashMap hm
           
private  int id
           
private static int nextId
           
private  java.util.BitSet queryGoals
           
private  org.semanticweb.kaon2.api.rules.Literal sourceLit
           
private  java.lang.String sourceLoc
           
private  java.util.HashMap varmap
           
private  LegacySourceView view
           
 
Constructor Summary
MiniConDescription(int id, java.util.BitSet queryGoals, java.util.HashMap hm, java.util.HashMap varmap, org.semanticweb.kaon2.api.rules.Literal sourceLit, LegacySourceView sv)
           
MiniConDescription(LegacySourceView sv)
          This creates the special MCDS which we use to address the issue of not missing sources when the rel statement is in terms of the query ontlogy.
 
Method Summary
 boolean equals(MiniConDescription mcd)
           
 boolean equals(java.lang.Object obj)
           
 int getId()
           
 LegacySourceView getLegacySourceView()
           
 java.util.BitSet getQueryGoals()
           
 java.lang.String getSourceLoc()
           
 boolean isHeadInQuery()
           
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

queryGoals

private java.util.BitSet queryGoals

hm

private java.util.HashMap hm

varmap

private java.util.HashMap varmap

sourceLit

private org.semanticweb.kaon2.api.rules.Literal sourceLit

sourceLoc

private java.lang.String sourceLoc

view

private LegacySourceView view

headInQuery

private boolean headInQuery

id

private int id

nextId

private static int nextId
Constructor Detail

MiniConDescription

public MiniConDescription(LegacySourceView sv)
This creates the special MCDS which we use to address the issue of not missing sources when the rel statement is in terms of the query ontlogy. In minicon in traditional sense it will be missed. As predmatch will fail to map the view subgoal with query subgoal. In this case query subgoal matches the view head

Parameters:
sv -

MiniConDescription

public MiniConDescription(int id,
                          java.util.BitSet queryGoals,
                          java.util.HashMap hm,
                          java.util.HashMap varmap,
                          org.semanticweb.kaon2.api.rules.Literal sourceLit,
                          LegacySourceView sv)
Method Detail

getId

public int getId()

getSourceLoc

public java.lang.String getSourceLoc()

equals

public boolean equals(MiniConDescription mcd)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getQueryGoals

public java.util.BitSet getQueryGoals()

getLegacySourceView

public LegacySourceView getLegacySourceView()

isHeadInQuery

public boolean isHeadInQuery()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

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