pt.tumba.qbe
Class Test
java.lang.Object
pt.tumba.qbe.Test
public class Test
- extends java.lang.Object
- Author:
- bmartins
Constructor Summary |
Test()
|
Method Summary |
void |
addDocument(java.lang.String url,
java.lang.String title,
java.lang.String snippet)
|
void |
addLinkage(java.lang.String fromURL,
java.util.Iterator toURLs)
|
void |
addLinkage(java.lang.String fromURL,
java.lang.String toURL)
|
void |
computeRelated(java.lang.String URL)
|
static boolean |
isStopSite(java.lang.String s)
Check if the supplied URL is the url for a site listed in the stop list |
static boolean |
isStopURL(java.lang.String s)
Check if the supplied URL references a document in a site listed in the stop list |
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 |
stopSiteList
private static java.lang.String[] stopSiteList
- A list of stop sites for the related pages algorithm
stopSites
private static java.util.Map stopSites
- The HashMap that stores the dictionary of stop sites
documentTitles
private java.util.Map documentTitles
graph
private WebGraph graph
documentSnippets
private java.util.Map documentSnippets
relatedPages
private java.util.List relatedPages
Test
public Test()
isStopSite
public static boolean isStopSite(java.lang.String s)
- Check if the supplied URL is the url for a site listed in the stop list
isStopURL
public static boolean isStopURL(java.lang.String s)
- Check if the supplied URL references a document in a site listed in the stop list
addDocument
public void addDocument(java.lang.String url,
java.lang.String title,
java.lang.String snippet)
addLinkage
public void addLinkage(java.lang.String fromURL,
java.lang.String toURL)
addLinkage
public void addLinkage(java.lang.String fromURL,
java.util.Iterator toURLs)
computeRelated
public void computeRelated(java.lang.String URL)
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception