org.dbpedia.extraction.wikiparser

WikiTitle

class WikiTitle extends Serializable

Represents a page title. Or a link to a page.

FIXME: a link is different from a title and should be represented by a different class.

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

Instance Constructors

  1. new WikiTitle(decoded: String, namespace: Namespace, language: Language, isInterLanguageLink: Boolean = false, fragment: String = null, capitalizeLink: Boolean = true, id: Option[Long] = None)

    decoded

    Canonical page name: URL-decoded, using normalized spaces (not underscores), first letter uppercase.

    namespace

    Namespace used to be optional, but that leads to mistakes

    language

    Language used to be optional, but that leads to mistakes

    capitalizeLink

    if set to false the given title will not be capitalized but left as it is

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. val capitalizeLink: Boolean

    if set to false the given title will not be capitalized but left as it is

  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val decoded: String

    Canonical page name: URL-decoded, using normalized spaces (not underscores), first letter uppercase.

  8. val decodedWithNamespace: String

    Canonical page name with namespace e.g.

    Canonical page name with namespace e.g. "Template talk:Automobile generation"

  9. val encoded: String

    Wiki-encoded page name (without namespace) e.g.

    Wiki-encoded page name (without namespace) e.g. Automobile_generation

  10. val encodedWithNamespace: String

    Wiki-encoded page name with namespace e.g.

    Wiki-encoded page name with namespace e.g. "Template_talk:Automobile_generation"

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(other: Any): Boolean

    TODO: also use fragment?

    TODO: also use fragment?

    Definition Classes
    WikiTitle → AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. val fragment: String

  15. final def getClass(): Class[_]

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

    TODO: do as Josh says in Effective Java, chapter 3.

    TODO: do as Josh says in Effective Java, chapter 3. TODO: also use fragment?

    Definition Classes
    WikiTitle → AnyRef → Any
  17. var id: Option[Long]

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. val isInterLanguageLink: Boolean

  20. val language: Language

    Language used to be optional, but that leads to mistakes

  21. val namespace: Namespace

    Namespace used to be optional, but that leads to mistakes

  22. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  25. var otherNamespace: Namespace

    If somehow a different namespace is also given for this title, store it here.

    If somehow a different namespace is also given for this title, store it here. Otherwise, this field is null.

    Why do we need this nonsense? http://gd.wikipedia.org/?curid=4184 and http://gd.wikipedia.org/?curid=4185&redirect=no have the same title "Teamplaid:Gàidhlig", but they are in different namespaces: 4184 is in the template namespace, 4185 is in the main namespace. It looks like MediaWiki can handle this somehow, but when we try to import both pages from the XML dump file into the database, MySQL rightly complains about the duplicate title. As a workaround, we simply reject pages for which the <ns> namespace doesn't fit the <title> namespace.

  26. val pageIri: String

    page IRI for this page title

  27. val resourceIri: String

    resource IRI for this page title

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

    Definition Classes
    AnyRef
  29. def toString(): String

    Returns useful info.

    Returns useful info.

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped