本文整理了Java中de.tudarmstadt.ukp.wikipedia.api.Wikipedia.getDiscussionArchives()
方法的一些代码示例,展示了Wikipedia.getDiscussionArchives()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Wikipedia.getDiscussionArchives()
方法的具体详情如下:
包路径:de.tudarmstadt.ukp.wikipedia.api.Wikipedia
类名称:Wikipedia
方法名:getDiscussionArchives
[英]Returns an iterable containing all archived discussion pages for the page with the given title String.
The page retrieval works as defined in #getPage(int).
The most recent discussion page is NOT included here! It can be obtained with #getDiscussionPage(Page).
[中]返回一个iterable,其中包含具有给定标题字符串的页面的所有存档讨论页面。
页面检索按照#getPage(int)中的定义工作。
这里不包括最近的讨论页面!可通过#getDiscussionPage(第页)获取。
代码示例来源:origin: dkpro/dkpro-jwpl
/**
* Returns an iterable containing all archived discussion pages for
* the page with the given title String. <br>
* The page retrieval works as defined in {@link #getPage(int)}. <br>
* The most recent discussion page is NOT included here!
* It can be obtained with {@link #getDiscussionPage(Page)}.
*
* @param articlePageId The id of the page for which to the the discussion archives
* @return The page object for the discussion page.
* @throws WikiApiException If no page or redirect with this title exists or title could not be properly parsed.
*/
public Iterable<Page> getDiscussionArchives(int articlePageId) throws WikiApiException {
//Retrieve discussion archive pages with page id
return getDiscussionArchives(getPage(articlePageId));
}
代码示例来源:origin: dkpro/dkpro-jwpl
/**
* Returns an iterable containing all archived discussion pages for
* the page with the given title String. <br>
* The page retrieval works as defined in {@link #getPage(String title)}.<br>
* The most recent discussion page is NOT included here!
* It can be obtained with {@link #getDiscussionPage(Page)}.
*
* @param title The title of the page for which the discussions should be retrieved.
* @return The page object for the discussion page.
* @throws WikiApiException If no page or redirect with this title exists or title could not be properly parsed.
*/
public Iterable<Page> getDiscussionArchives(String title) throws WikiApiException {
//Retrieve discussion archive pages with page title
return getDiscussionArchives(getPage(title));
}
代码示例来源:origin: dkpro/dkpro-jwpl
Iterable<Page> discArchives = wiki.getDiscussionArchives(rev.getArticleID());
内容来源于网络,如有侵权,请联系作者删除!