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
The current library is not able to handle a concatenation of two rule sets with a different index. I provide a script and sample data on which the problem can be replicated:
sbt clean compile run
rules count from the first task: 6
rules count from the second task: 45
[error] (run-main-0) java.util.NoSuchElementException: None.get
[error] java.util.NoSuchElementException: None.get
[error] at scala.None$.get(Option.scala:529)
[error] at scala.None$.get(Option.scala:527)
[error] at com.github.propi.rdfrules.index.TripleItemIndex.getTripleItem(TripleItemIndex.scala:16)
...
... see stacktrace.txt
I thought if the indexes are not equal, they could be merged together through their transormation into data sets, their rules could be fitted into the new index and a new rule set with the new index and rules from both rule sets could be created. I cloned the current master branch and changed the +(ruleset: Ruleset) method in the Ruleset.scala class:
rules count from the first task: 6
rules count from the second task: 45
number of exported rules: 51
[success] Total time: 3 s, completed 20. 5. 2021 13:42:01
My Scala version:
$ scala -version
Scala code runner version 2.12.8 -- Copyright 2002-2018, LAMP/EPFL and Lightbend, Inc
The current library is not able to handle a concatenation of two rule sets with a different index. I provide a script and sample data on which the problem can be replicated:
I thought if the indexes are not equal, they could be merged together through their transormation into data sets, their rules could be fitted into the new index and a new rule set with the new index and rules from both rule sets could be created. I cloned the current master branch and changed the
+(ruleset: Ruleset)
method in theRuleset.scala
class:and published the project locally:
changed the dependency declaration:
and ran the script again:
My Scala version:
attachments.zip
The text was updated successfully, but these errors were encountered: