org.dbpedia.extraction.util

WikiApi

class WikiApi extends AnyRef

Executes queries to the MediaWiki API.

TODO: replace this class by code adapted from WikiDownloader.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WikiApi
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WikiApi(url: URL, language: Language)

    url

    The URL of the MediaWiki API e.g. http://en.wikipedia.org/w/api.php.

    language

    The language of the MediaWiki.

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  8. def fileExistsOnWiki(fileName: String, language: Language): Boolean

    Checks if the file exists in the mediawiki instance specified by the language.

    Checks if the file exists in the mediawiki instance specified by the language.

    fileName

    the name of the file whose existence has to be checked

    language

    the language which specifies the mediawiki instance to check on

    returns

    true iff the file exists else false

  9. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  16. def processPages[U](response: Elem, proc: (WikiPage) ⇒ U): Unit

  17. def query(params: String): Elem

    Executes a query to the MediaWiki API.

    Executes a query to the MediaWiki API.

    Attributes
    protected
  18. def retrieveAllPagesPerNamespace(namespace: Integer, continueString: String, continueTitle: String): (String, String, Seq[Node])

    Retrieves all pages for a given namespace starting from a specific page and returning the next title to continue.

    Retrieves all pages for a given namespace starting from a specific page and returning the next title to continue.

    namespace

    The namespace code of the requested pages.

    continueString

    The value to be used in the continue field, which is probably -|| This value seems to be unused for listing all pages (but nevertheless it is required).

    continueTitle

    The page title to start (or continue) enumerating from.

  19. def retrievePagesByID[U](param: String, ids: Iterable[Long]): Traversable[WikiPage]

    Retrieves multiple pages by page or revision IDs.

    Retrieves multiple pages by page or revision IDs.

    param

    WikiApi.PageIDs ("pageids") or WikiApi.RevisionIDs ("revids")

    ids

    page or revision IDs of the pages to be downloaded.

  20. def retrievePagesByNamespace[U](namespace: Namespace, f: (WikiPage) ⇒ U, fromPage: String = ""): Unit

    Retrieves all pages with a specific namespace starting from a specific page.

    Retrieves all pages with a specific namespace starting from a specific page.

    namespace

    The namespace of the requested pages.

    f

    The function to be called on each page.

    fromPage

    The page title to start enumerating from.

  21. def retrievePagesByPageID[U](pageIds: Iterable[Long]): Traversable[WikiPage]

    Retrieves multiple pages by their page ID.

    Retrieves multiple pages by their page ID.

    pageIds

    The page IDs of the pages to be downloaded.

  22. def retrievePagesByRevisionID[U](revisionIds: Iterable[Long]): Traversable[WikiPage]

    Retrieves multiple pages by their revision ID.

    Retrieves multiple pages by their revision ID.

    revisionIds

    The revision IDs of the pages to be downloaded.

  23. def retrievePagesByTitle[U](titles: Iterable[WikiTitle]): Traversable[WikiPage]

    Retrieves multiple pages by their title.

    Retrieves multiple pages by their title.

    titles

    The titles of the pages to be downloaded.

  24. def retrieveTemplateUsageIDs(title: WikiTitle, maxCount: Int = 500): List[Long]

    Returns a list of page IDs fo the pages for a certain wiki title

    Returns a list of page IDs fo the pages for a certain wiki title

    title

    The title of the wiki

    maxCount

    the maximum number of matches

    returns

    A list of page IDs

  25. def retrieveTemplateUsages(title: WikiTitle, namespace: Namespace = Namespace.Main, maxCount: Int = 500): Seq[WikiTitle]

    Retrieves a list of pages which use a given template.

    Retrieves a list of pages which use a given template.

    title

    The title of the template

    namespace

    The namespace to search within

    maxCount

    The maximum number of pages to retrieve

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped