diff options
| author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-08-03 09:52:53 +0100 |
|---|---|---|
| committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-08-03 09:52:53 +0100 |
| commit | 88597503975804e3cb83d116f3cc9a3f12c57461 (patch) | |
| tree | 9b9dd9be397718b1381736e656a89cf59c7199c5 /src/main/scala/rsacomb/RDFoxClassExprConverter.scala | |
| parent | 633529ca7a911646048886b7e2e0d1d98c94fdf3 (diff) | |
| download | RSAComb-88597503975804e3cb83d116f3cc9a3f12c57461.tar.gz RSAComb-88597503975804e3cb83d116f3cc9a3f12c57461.zip | |
Add DL renderer for input rules
Diffstat (limited to 'src/main/scala/rsacomb/RDFoxClassExprConverter.scala')
| -rw-r--r-- | src/main/scala/rsacomb/RDFoxClassExprConverter.scala | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/scala/rsacomb/RDFoxClassExprConverter.scala b/src/main/scala/rsacomb/RDFoxClassExprConverter.scala index bf026c3..58bee44 100644 --- a/src/main/scala/rsacomb/RDFoxClassExprConverter.scala +++ b/src/main/scala/rsacomb/RDFoxClassExprConverter.scala | |||
| @@ -75,15 +75,15 @@ class RDFoxClassExprConverter(term : Term, skolem : SkolemStrategy) | |||
| 75 | // TODO: variables needs to be handled at visitor level. Hardcoding | 75 | // TODO: variables needs to be handled at visitor level. Hardcoding |
| 76 | // the name of the varibles might lead to errors for complex cases. | 76 | // the name of the varibles might lead to errors for complex cases. |
| 77 | val y = Variable.create("y") | 77 | val y = Variable.create("y") |
| 78 | val (fun,term1) = skolem match { | 78 | val (fun,term1) = skolem match { |
| 79 | case SkolemStrategy.None => (List(),y) | 79 | case SkolemStrategy.None => (List(),y) |
| 80 | case SkolemStrategy.Constant(c) => (List(), Literal.create(c, Datatype.IRI_REFERENCE)) | 80 | case SkolemStrategy.Constant(c) => (List(), Literal.create(c, Datatype.IRI_REFERENCE)) |
| 81 | case SkolemStrategy.Standard(f) => | 81 | case SkolemStrategy.Standard(f) => |
| 82 | // At the time of writing the RDFox library does not have a | 82 | // At the time of writing the RDFox library does not have a |
| 83 | // particular class for the "SKOLEM" operator and it is instead | 83 | // particular class for the "SKOLEM" operator and it is instead |
| 84 | // a simple builtin function with a special name. | 84 | // a simple builtin function with a special name. |
| 85 | (List(BindAtom.create(BuiltinFunctionCall.create("SKOLEM",term),y)),y) | 85 | (List(BindAtom.create(BuiltinFunctionCall.create("SKOLEM",term),y)),y) |
| 86 | } | 86 | } |
| 87 | val classVisitor = new RDFoxClassExprConverter(term1,skolem) | 87 | val classVisitor = new RDFoxClassExprConverter(term1,skolem) |
| 88 | val classResult = expr.getFiller.accept(classVisitor) | 88 | val classResult = expr.getFiller.accept(classVisitor) |
| 89 | val propertyVisitor = new RDFoxPropertyExprConverter(term, term1, skolem) | 89 | val propertyVisitor = new RDFoxPropertyExprConverter(term, term1, skolem) |
