You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privatestaticvoidDFSCategoryTree(Categorycategory) throwsWikiApiException
{
// TODO Auto-generated method stubif (!vCategories.contains(category.getTitle()))
{
System.out.println(category.getTitle());
System.out.println(category.getNumberOfPages());
vCategories.add(category);
for (IntegerpageId : category.getArticleIds())
{
if (!vPageIds.contains(pageId))
{
System.out.println("pageid is :" + pageId);
}
}
for (Pagepage : category.getArticles())
{
if (!vPageIds.contains(page))
{
System.out.println("pageid is :" + page);
}
}
for (CategorysonCategory : category.getChildren())
{
DFSCategoryTree(sonCategory);
}
}
return;
}
output result:
2
pageid is :68994
pageid is :4569724
Exception in thread "main" de.tudarmstadt.ukp.wikipedia.api.exception.WikiPageNotFoundException: No page with page id 4569724 was found.
at de.tudarmstadt.ukp.wikipedia.api.Page.fetchByPageId(Page.java:178)
at de.tudarmstadt.ukp.wikipedia.api.Page.<init>(Page.java:90)
at de.tudarmstadt.ukp.wikipedia.api.Wikipedia.getPage(Wikipedia.java:146)
at de.tudarmstadt.ukp.wikipedia.api.Category.getArticles(Category.java:299)
at iie.ac.cn.zjp.ShowCategoryInfo.DFSCategoryTree(ShowCategoryInfo.java:76)
at iie.ac.cn.zjp.ShowCategoryInfo.DFSCategoryTree(ShowCategoryInfo.java:86)
at iie.ac.cn.zjp.ShowCategoryInfo.DFSCategoryTree(ShowCategoryInfo.java:86)
at iie.ac.cn.zjp.ShowCategoryInfo.showCategoryInfo(ShowCategoryInfo.java:49)
at iie.ac.cn.zjp.ShowCategoryInfo.main(ShowCategoryInfo.java:104)
The text was updated successfully, but these errors were encountered:
Maybe this page is from a namespace that is not included in your JWPL database? You can check whether it is in the Page table of your local database. If not, you can use e.g. the MediaWiki API to get some more meta data (e.g. namespace) about the respective page.
output result:
The text was updated successfully, but these errors were encountered: