diff options
Diffstat (limited to 'src/main/scala/rsacomb/RSAOntology.scala')
| -rw-r--r-- | src/main/scala/rsacomb/RSAOntology.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/scala/rsacomb/RSAOntology.scala b/src/main/scala/rsacomb/RSAOntology.scala index 5846672..06351d5 100644 --- a/src/main/scala/rsacomb/RSAOntology.scala +++ b/src/main/scala/rsacomb/RSAOntology.scala | |||
| @@ -61,7 +61,7 @@ trait RSAOntology { | |||
| 61 | val datalog = for { | 61 | val datalog = for { |
| 62 | axiom <- axioms | 62 | axiom <- axioms |
| 63 | visitor = new RDFoxAxiomConverter( | 63 | visitor = new RDFoxAxiomConverter( |
| 64 | Variable.create("x"), | 64 | RSA.getFreshVariable(), |
| 65 | SkolemStrategy.ConstantRSA(axiom.toString), | 65 | SkolemStrategy.ConstantRSA(axiom.toString), |
| 66 | unsafe | 66 | unsafe |
| 67 | ) | 67 | ) |
| @@ -199,7 +199,7 @@ trait RSAOntology { | |||
| 199 | def getBindAtom(atom: Atom): BindAtom = { | 199 | def getBindAtom(atom: Atom): BindAtom = { |
| 200 | // TODO: We need to implement another way to introduce fresh | 200 | // TODO: We need to implement another way to introduce fresh |
| 201 | // variables. | 201 | // variables. |
| 202 | val varA = Variable.create("A") | 202 | val newvar = RSA.getFreshVariable() |
| 203 | val name = | 203 | val name = |
| 204 | Literal.create(atom.getTupleTableName.getIRI, Datatype.XSD_STRING) | 204 | Literal.create(atom.getTupleTableName.getIRI, Datatype.XSD_STRING) |
| 205 | val args = atom | 205 | val args = atom |
| @@ -210,7 +210,7 @@ trait RSAOntology { | |||
| 210 | BindAtom.create( | 210 | BindAtom.create( |
| 211 | BuiltinFunctionCall | 211 | BuiltinFunctionCall |
| 212 | .create("SKOLEM", args: _*), | 212 | .create("SKOLEM", args: _*), |
| 213 | varA | 213 | newvar |
| 214 | ) | 214 | ) |
| 215 | } | 215 | } |
| 216 | 216 | ||
| @@ -252,7 +252,7 @@ trait RSAOntology { | |||
| 252 | val b = getBindAtom(a) | 252 | val b = getBindAtom(a) |
| 253 | ReifiedHead(b, reifyAtom(a, b.getBoundVariable)) | 253 | ReifiedHead(b, reifyAtom(a, b.getBoundVariable)) |
| 254 | } else { | 254 | } else { |
| 255 | val varA = Variable.create("A") | 255 | val varA = RSA.getFreshVariable() |
| 256 | ReifiedBody(reifyAtom(a, varA)) | 256 | ReifiedBody(reifyAtom(a, varA)) |
| 257 | } | 257 | } |
| 258 | } else { | 258 | } else { |
