diff options
author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-09-07 16:56:41 +0200 |
---|---|---|
committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-09-07 16:56:41 +0200 |
commit | d085aeae07a729467047aba50b22e9baa7a4d10f (patch) | |
tree | e2d19044b0be60a7fbedba0b5363207e1914d93a /src/main/scala | |
parent | 2b661f3ac6fdb5156168b6775ede24e4c7b53758 (diff) | |
download | RSAComb-d085aeae07a729467047aba50b22e9baa7a4d10f.tar.gz RSAComb-d085aeae07a729467047aba50b22e9baa7a4d10f.zip |
Fix SKOLEM function call
The first argument of the function call has to be a string. Here we use
the atom IRI string. Since arguments need to be `BuiltinExpression`s, we
use a XSD_STRING `Literal` to represent it.
Diffstat (limited to 'src/main/scala')
-rw-r--r-- | src/main/scala/rsacomb/RSAOntology.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/scala/rsacomb/RSAOntology.scala b/src/main/scala/rsacomb/RSAOntology.scala index 9d52612..5846672 100644 --- a/src/main/scala/rsacomb/RSAOntology.scala +++ b/src/main/scala/rsacomb/RSAOntology.scala | |||
@@ -200,11 +200,13 @@ trait RSAOntology { | |||
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 varA = Variable.create("A") |
203 | val name = | ||
204 | Literal.create(atom.getTupleTableName.getIRI, Datatype.XSD_STRING) | ||
203 | val args = atom | 205 | val args = atom |
204 | .getArguments() | 206 | .getArguments() |
205 | .asScala | 207 | .asScala |
206 | .toSeq | 208 | .toSeq |
207 | //.prepended(atom.getTupleTableName.getIRI) | 209 | .prepended(name) |
208 | BindAtom.create( | 210 | BindAtom.create( |
209 | BuiltinFunctionCall | 211 | BuiltinFunctionCall |
210 | .create("SKOLEM", args: _*), | 212 | .create("SKOLEM", args: _*), |