org.dbpedia.extraction.sources

XMLSource

class XMLSource extends Source

Loads wiki pages from an XML stream using the MediaWiki export format.

The MediaWiki export format is specified by http://www.mediawiki.org/xml/export-0.4

Go to: companion

Inherits

  1. Source
  2. Traversable
  3. Immutable
  4. Traversable
  5. GenericTraversableTemplate
  6. TraversableLike
  7. HasNewBuilder
  8. AnyRef
  9. Any

Value Members

  1. def ++[B >: WikiPage, That](that: Iterator[B])(bf: CanBuildFrom[Traversable[WikiPage], B, That]): That

  2. def ++[B >: WikiPage, That](that: Traversable[B])(bf: CanBuildFrom[Traversable[WikiPage], B, That]): That

  3. def /:[B](z: B)(op: (B, WikiPage) ⇒ B): B

  4. def :\[B](z: B)(op: (WikiPage, B) ⇒ B): B

  5. def addString(b: StringBuilder): StringBuilder

  6. def addString(b: StringBuilder, sep: String): StringBuilder

  7. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

  8. def companion: GenericCompanion[Traversable[A][A]]

  9. def copyToArray[B >: WikiPage](xs: Array[B]): Unit

  10. def copyToArray[B >: WikiPage](xs: Array[B], start: Int): Unit

  11. def copyToArray[B >: WikiPage](xs: Array[B], start: Int, len: Int): Unit

  12. def copyToBuffer[B >: WikiPage](dest: Buffer[B]): Unit

  13. def count(p: (WikiPage) ⇒ Boolean): Int

  14. def drop(n: Int): Traversable[WikiPage]

  15. def dropWhile(p: (WikiPage) ⇒ Boolean): Traversable[WikiPage]

  16. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an equivalence relation:

    • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
    • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
    • It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef ⇐ Any
    Go to: companion
  17. def exists(p: (WikiPage) ⇒ Boolean): Boolean

  18. def filter(p: (WikiPage) ⇒ Boolean): Traversable[WikiPage]

  19. def filterNot(p: (WikiPage) ⇒ Boolean): Traversable[WikiPage]

  20. def find(p: (WikiPage) ⇒ Boolean): Option[WikiPage]

  21. def flatMap[B, That](f: (WikiPage) ⇒ Traversable[B])(bf: CanBuildFrom[Traversable[WikiPage], B, That]): That

  22. def flatten[B](asTraversable: (WikiPage) ⇒ Traversable[B]): Traversable[B]

  23. def foldLeft[B](z: B)(op: (B, WikiPage) ⇒ B): B

  24. def foldRight[B](z: B)(op: (WikiPage, B) ⇒ B): B

  25. def forall(p: (WikiPage) ⇒ Boolean): Boolean

  26. def foreach[U](f: (WikiPage) ⇒ U): Unit

  27. def genericBuilder[B]: Builder[B, Traversable[B]]

  28. def groupBy[K](f: (WikiPage) ⇒ K): Map[K, Traversable[WikiPage]]

  29. def hasDefiniteSize: Boolean

    True, if this source is guaranteed to have a finite size

    True, if this source is guaranteed to have a finite size.

    Go to: companion
  30. def hashCode(): Int

    Returns a hash code value for the object

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    definition classes: AnyRef ⇐ Any
    Go to: companion
  31. def head: WikiPage

  32. def headOption: Option[WikiPage]

  33. def init: Traversable[WikiPage]

  34. def isEmpty: Boolean

  35. def last: WikiPage

  36. def lastOption: Option[WikiPage]

  37. def map[B, That](f: (WikiPage) ⇒ B)(bf: CanBuildFrom[Traversable[WikiPage], B, That]): That

  38. def max[B >: WikiPage](cmp: Ordering[B]): WikiPage

  39. def min[B >: WikiPage](cmp: Ordering[B]): WikiPage

  40. def mkString: String

  41. def mkString(sep: String): String

  42. def mkString(start: String, sep: String, end: String): String

  43. def nonEmpty: Boolean

  44. def partialMap[B, That](pf: PartialFunction[WikiPage, B])(bf: CanBuildFrom[Traversable[WikiPage], B, That]): That

  45. def partition(p: (WikiPage) ⇒ Boolean): (Traversable[WikiPage], Traversable[WikiPage])

  46. def product[B >: WikiPage](num: Numeric[B]): B

  47. def reduceLeft[B >: WikiPage](op: (B, WikiPage) ⇒ B): B

  48. def reduceLeftOption[B >: WikiPage](op: (B, WikiPage) ⇒ B): Option[B]

  49. def reduceRight[B >: WikiPage](op: (WikiPage, B) ⇒ B): B

  50. def reduceRightOption[B >: WikiPage](op: (WikiPage, B) ⇒ B): Option[B]

  51. def repr: Traversable[WikiPage]

  52. def size: Int

  53. def slice(from: Int, until: Int): Traversable[WikiPage]

  54. def span(p: (WikiPage) ⇒ Boolean): (Traversable[WikiPage], Traversable[WikiPage])

  55. def splitAt(n: Int): (Traversable[WikiPage], Traversable[WikiPage])

  56. def stringPrefix: String

  57. def sum[B >: WikiPage](num: Numeric[B]): B

  58. def tail: Traversable[WikiPage]

  59. def take(n: Int): Traversable[WikiPage]

  60. def takeWhile(p: (WikiPage) ⇒ Boolean): Traversable[WikiPage]

  61. def toArray[B >: WikiPage](arg0: ClassManifest[B]): Array[B]

  62. def toIndexedSeq[B >: WikiPage]: IndexedSeq[B]

  63. def toIterable: Iterable[WikiPage]

  64. def toList: List[WikiPage]

  65. def toMap[T, U](ev: <:<[WikiPage, (T, U)]): Map[T, U]

  66. def toSeq: Seq[WikiPage]

  67. def toSet[B >: WikiPage]: Set[B]

  68. def toStream: Stream[WikiPage]

  69. def toString(): String

    Returns a string representation of the object

    Returns a string representation of the object.

    The default representation is platform dependent.

    definition classes: TraversableLike ⇐ AnyRef ⇐ Any
    Go to: companion
  70. def transpose[B](asTraversable: (WikiPage) ⇒ Traversable[B]): Traversable[Traversable[B]]

  71. def unzip[A1, A2](asPair: (WikiPage) ⇒ (A1, A2)): (Traversable[A1], Traversable[A2])

  72. def view(from: Int, until: Int): TraversableView[WikiPage, Traversable[WikiPage]]

  73. def view: TraversableView[WikiPage, Traversable[WikiPage]]

  74. def withFilter(p: (WikiPage) ⇒ Boolean): WithFilter

Instance constructors

  1. new XMLSource(stream: InputStream, filter: (WikiTitle) ⇒ Boolean)

  2. new XMLSource()