Skip to content
This repository was archived by the owner on Oct 8, 2020. It is now read-only.

Commit 5def5c7

Browse files
Added axiom based RDFS forard rule reasoner stub
1 parent 010d552 commit 5def5c7

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package net.sansa_stack.inference.spark.forwardchaining.axioms
2+
3+
import net.sansa_stack.inference.utils.Logging
4+
import org.apache.spark.SparkContext
5+
import org.apache.spark.rdd.RDD
6+
import org.semanticweb.owlapi.model.OWLAxiom
7+
8+
/**
9+
* A forward chaining implementation for the RDFS entailment regime that works
10+
* on OWL axioms
11+
*
12+
* @param sc The Apache Spark context
13+
* @param parallelism The degree of parallelism
14+
*/
15+
class ForwardRuleReasonerRDFS(sc: SparkContext, parallelism: Int = 2) extends Logging {
16+
17+
def apply(sc: SparkContext, parallelism: Int = 2): ForwardRuleReasonerRDFS =
18+
new ForwardRuleReasonerRDFS(sc, parallelism)
19+
20+
/**
21+
* TODO: To be implemented
22+
*/
23+
def apply(axioms: RDD[OWLAxiom]): RDD[OWLAxiom] = {
24+
axioms
25+
}
26+
}

0 commit comments

Comments
 (0)