diff options
| author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-11-05 20:00:34 +0000 |
|---|---|---|
| committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-11-05 20:00:34 +0000 |
| commit | 360675d5b659ba8e9e5fe83dfa038d27f962b4de (patch) | |
| tree | 38e21ad6270da7c85f1d0069ced18dd9aea12045 /src/main/scala/rsacomb/RSAOntology.scala | |
| parent | 6df3ffe815a5ea65da92e818c1eb48fca13bc5ce (diff) | |
| download | RSAComb-360675d5b659ba8e9e5fe83dfa038d27f962b4de.tar.gz RSAComb-360675d5b659ba8e9e5fe83dfa038d27f962b4de.zip | |
Update code to RDFox v4.0
Diffstat (limited to 'src/main/scala/rsacomb/RSAOntology.scala')
| -rw-r--r-- | src/main/scala/rsacomb/RSAOntology.scala | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/scala/rsacomb/RSAOntology.scala b/src/main/scala/rsacomb/RSAOntology.scala index b81a8f5..ef1885b 100644 --- a/src/main/scala/rsacomb/RSAOntology.scala +++ b/src/main/scala/rsacomb/RSAOntology.scala | |||
| @@ -17,7 +17,14 @@ import org.semanticweb.owlapi.model.{IRI => OWLIRI} | |||
| 17 | import uk.ac.manchester.cs.owl.owlapi.OWLObjectPropertyImpl | 17 | import uk.ac.manchester.cs.owl.owlapi.OWLObjectPropertyImpl |
| 18 | 18 | ||
| 19 | import tech.oxfordsemantic.jrdfox.client.{UpdateType, DataStoreConnection} | 19 | import tech.oxfordsemantic.jrdfox.client.{UpdateType, DataStoreConnection} |
| 20 | import tech.oxfordsemantic.jrdfox.logic.{Resource, Rule, Atom, Variable, IRI} | 20 | import tech.oxfordsemantic.jrdfox.logic.datalog.{Rule, TupleTableAtom} |
| 21 | import tech.oxfordsemantic.jrdfox.logic.expression.{ | ||
| 22 | Term, | ||
| 23 | Variable, | ||
| 24 | IRI, | ||
| 25 | Resource | ||
| 26 | } | ||
| 27 | import tech.oxfordsemantic.jrdfox.logic.sparql.statement.SelectQuery | ||
| 21 | 28 | ||
| 22 | /* Scala imports */ | 29 | /* Scala imports */ |
| 23 | import scala.collection.JavaConverters._ | 30 | import scala.collection.JavaConverters._ |
| @@ -249,7 +256,7 @@ trait RSAOntology { | |||
| 249 | Graph(edges: _*) | 256 | Graph(edges: _*) |
| 250 | } | 257 | } |
| 251 | 258 | ||
| 252 | def filteringProgram(query: Query): List[Rule] = | 259 | def filteringProgram(query: SelectQuery): List[Rule] = |
| 253 | FilteringProgram(query, individuals).rules | 260 | FilteringProgram(query, individuals).rules |
| 254 | 261 | ||
| 255 | // TODO: the following functions needs testing | 262 | // TODO: the following functions needs testing |
