You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 8, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: sansa-inference-spark/src/main/scala/net/sansa_stack/inference/spark/forwardchaining/axioms/ForwardRuleReasonerRDFS.scala
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,23 @@ class ForwardRuleReasonerRDFS(sc: SparkContext, parallelism: Int = 2) extends Lo
96
96
* y rdfs:subClassOf z . x rdfs:subClassOf z .
97
97
*/
98
98
99
+
// val subClassOf = subClassofAxiom.asInstanceOf[RDD[OWLSubClassOfAxiom]]
100
+
// val op1 = subClassOf.map { a => (a.getSubClass, a.getSuperClass) }
101
+
// val op2 = subClassOf.map { a => (a.getSuperClass, a.getSubClass) }
102
+
// val subClass_ExtVP_OS = op2.join(op1).map(a => (a._1, a._2._1)).distinct()
103
+
// val subClass_ExtVP_SO = op1.join(op2).map(a => (a._1, a._2._1)).distinct()
104
+
//
105
+
// var startTime = System.currentTimeMillis()
106
+
// val Trans = subClass_ExtVP_OS.join(subClass_ExtVP_SO).map(a => (a._2._1, a._2._2))
107
+
// var endTime = System.currentTimeMillis() - startTime
Copy file name to clipboardExpand all lines: sansa-inference-spark/src/main/scala/net/sansa_stack/inference/spark/forwardchaining/axioms/TransitiveReasoner.scala
0 commit comments