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.
Fixed#1 - literals in subject position of RDF triples
In order to avoid RDF triples with literals as subject, we have to check
for non-literals in several rules. Right now, I added checks for rules
rdfs3 and rdfs4b.
Fixes#1
Copy file name to clipboardExpand all lines: sansa-inference-spark/src/main/scala/net/sansa_stack/inference/spark/forwardchaining/triples/ForwardRuleReasonerRDFS.scala
+15-7Lines changed: 15 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ class ForwardRuleReasonerRDFS(sc: SparkContext, parallelism: Int = 2) extends Tr
120
120
121
121
valtriplesRDFS3=
122
122
otherTriples
123
-
.filter(t => rangeMapBC.value.contains(t.p))
123
+
.filter(t =>!t.getObject.isLiteral &&rangeMapBC.value.contains(t.p))// check for non-literals here
0 commit comments