Class

net.sansa_stack.ml.spark.mining.amieSpark.KBObject

KB

Related Doc: package KBObject

Permalink

class KB extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KB
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KB()

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val OBJECT2OBJECT: Int

    Permalink
  5. val SUBJECT2OBJECT: Int

    Permalink
  6. val SUBJECT2SUBJECT: Int

    Permalink

    Identifiers for the overlap maps

  7. def add(tp: RDFTriple): Unit

    Permalink

    function to fill the Maps subject2predicate2object,...

    function to fill the Maps subject2predicate2object,... ,sizes and Overlaps

    tp

    triple which subject, object and predicate is put in Maps and are counted for the sizes

  8. def add(fst: String, snd: String, thrd: String, toMaps: Map[String, Map[String, Map[String, Int]]]): Boolean

    Permalink
  9. def addClosingAtom(c: Int, id: Int, minHC: Double, rule: RuleContainer, sc: SparkContext, sqlContext: SQLContext): DataFrame

    Permalink
  10. def addDanglingAtom(c: Int, id: Int, minHC: Double, rule: RuleContainer, sc: SparkContext, sqlContext: SQLContext): DataFrame

    Permalink
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def bindingExists(triplesCard: ArrayBuffer[RDFTriple]): Boolean

    Permalink
  13. def buildOverlapTables(): Unit

    Permalink

  14. def calcName(whole: ArrayBuffer[RDFTriple]): String

    Permalink
  15. def cardPlusnegativeExamplesLength(triplesCard: ArrayBuffer[RDFTriple], sc: SparkContext): Double

    Permalink
  16. def cardPlusnegativeExamplesLength(tpAr: ArrayBuffer[RDFTriple], support: Double, sc: SparkContext, sqlContext: SQLContext): Double

    Permalink
  17. def cardinality(tpAr: ArrayBuffer[RDFTriple], sc: SparkContext, sqlContext: SQLContext): DataFrame

    Permalink

    used in setBodySize and calcSupport

  18. def cardinalityQueries(id: Int, tpArDF: DataFrame, wholeAr: ArrayBuffer[RDFTriple], sc: SparkContext, sqlContext: SQLContext): DataFrame

    Permalink
  19. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. def computeOverlap(s1: Set[String], s2: Set[String]): Int

    Permalink

    s1

    set with subjects or objects

    s2

    set with subjects or objects

  21. def countProjectionQueriesDF(posit: Int, id: Int, operator: String, minHC: Double, tpAr: ArrayBuffer[RDFTriple], RXY: ArrayBuffer[(String, String)], sc: SparkContext, sqlContext: SQLContext): DataFrame

    Permalink
  22. var dfMap: Map[String, DataFrame]

    Permalink
  23. var dfTable: DataFrame

    Permalink
  24. def entitiesSize(): Int

    Permalink

    Returns the number of entities in the database.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  27. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. def functionality(relation: String, inversed: Boolean): Double

    Permalink

    inversed

    If true, the method returns the inverse functionality, otherwise it returns the standard functionality.

  29. def functionality(relation: String): Double

    Permalink

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. def getKbGraph: RDFGraph

    Permalink
  32. def getKbSrc: String

    Permalink
  33. def getRngSize(rel: String): Double

    Permalink
  34. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  35. var hdfsPath: String

    Permalink
  36. def inverseFunctionality(relation: String, inversed: Boolean): Double

    Permalink

    inversed

    If true, the method returns the functionality of a relation, otherwise it returns the inverse functionality.

  37. def inverseFunctionality(relation: String): Double

    Permalink

  38. def isFunctional(relation: String): Boolean

    Permalink

    Determines whether a relation is functional, i.e., its harmonic functionality is greater than its inverse harmonic functionality.

  39. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  40. var kbGraph: RDFGraph

    Permalink
  41. var kbSrc: String

    Permalink
  42. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  43. def negatveExampleBuilder(subjects: DataFrame, wholeAr: ArrayBuffer[RDFTriple], sc: SparkContext, sqlContext: SQLContext): DataFrame

    Permalink
  44. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  45. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  46. var object2objectOverlap: Map[String, Map[String, Int]]

    Permalink
  47. var object2predicate2subject: Map[String, Map[String, Map[String, Int]]]

    Permalink
  48. var object2subject2predicate: Map[String, Map[String, Map[String, Int]]]

    Permalink
  49. var objectSize: Map[String, Int]

    Permalink
  50. def overlap(relation1: String, relation2: String, overlap: Int): Double

    Permalink

    returns ArrayBuffer with successful maps of the '?' placeholders in a rule to real facts in the KB length of maplist is the number of instantiations of a rule

  51. var predicate2object2subject: Map[String, Map[String, Map[String, Int]]]

    Permalink
  52. var predicate2subject2object: Map[String, Map[String, Map[String, Int]]]

    Permalink
  53. def relationColumnSize(rel: String, elem: String): Int

    Permalink

  54. var relationSize: Map[String, Int]

    Permalink
  55. def relationsSize(): Int

    Permalink
  56. def setDFTable(x: DataFrame): Unit

    Permalink
  57. def setDfMap(name: String, df: DataFrame): Unit

    Permalink
  58. def setKbGraph(x: RDFGraph): Unit

    Permalink
  59. def setKbSrc(x: String): Unit

    Permalink
  60. def sethdfsPath(hdfsP: String): Unit

    Permalink
  61. def sizeOfRelation(rel: String): Int

    Permalink

    returns number of instantiations of relation

    returns number of instantiations of relation

    rel

    Relation

  62. var subject2object2predicate: Map[String, Map[String, Map[String, Int]]]

    Permalink
  63. var subject2objectOverlap: Map[String, Map[String, Int]]

    Permalink
  64. var subject2predicate2object: Map[String, Map[String, Map[String, Int]]]

    Permalink
  65. var subject2subjectOverlap: Map[String, Map[String, Int]]

    Permalink
  66. var subjectSize: Map[String, Int]

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

    Permalink
    Definition Classes
    AnyRef
  68. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  69. def tpArString(tpAr: ArrayBuffer[RDFTriple]): String

    Permalink
  70. def varCount(tpAr: ArrayBuffer[RDFTriple]): ArrayBuffer[(String, String)]

    Permalink
  71. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped