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/RDFoxPropertyExprConverter.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/RDFoxPropertyExprConverter.scala')
-rw-r--r-- | src/main/scala/rsacomb/RDFoxPropertyExprConverter.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/scala/rsacomb/RDFoxPropertyExprConverter.scala b/src/main/scala/rsacomb/RDFoxPropertyExprConverter.scala index 8d472bf..78ac98c 100644 --- a/src/main/scala/rsacomb/RDFoxPropertyExprConverter.scala +++ b/src/main/scala/rsacomb/RDFoxPropertyExprConverter.scala | |||
@@ -7,6 +7,7 @@ import tech.oxfordsemantic.jrdfox.logic.{TupleTableName} | |||
7 | import tech.oxfordsemantic.jrdfox.logic.{Atom, Term, Variable, Literal} | 7 | import tech.oxfordsemantic.jrdfox.logic.{Atom, Term, Variable, Literal} |
8 | 8 | ||
9 | import rsacomb.SkolemStrategy | 9 | import rsacomb.SkolemStrategy |
10 | import org.semanticweb.owlapi.model.OWLObjectInverseOf | ||
10 | 11 | ||
11 | class RDFoxPropertyExprConverter(term1 : Term, term2 : Term, skolem : SkolemStrategy) | 12 | class RDFoxPropertyExprConverter(term1 : Term, term2 : Term, skolem : SkolemStrategy) |
12 | extends OWLPropertyExpressionVisitorEx[List[Atom]] | 13 | extends OWLPropertyExpressionVisitorEx[List[Atom]] |
@@ -18,6 +19,12 @@ class RDFoxPropertyExprConverter(term1 : Term, term2 : Term, skolem : SkolemStra | |||
18 | List(Atom.create(TupleTableName.create(name), term1, term2)) | 19 | List(Atom.create(TupleTableName.create(name), term1, term2)) |
19 | } | 20 | } |
20 | 21 | ||
22 | override | ||
23 | def visit(expr : OWLObjectInverseOf) : List[Atom] = { | ||
24 | val name = expr.getInverse.getNamedProperty.getIRI.getIRIString; | ||
25 | List(Atom.create(TupleTableName.create(name ++ "_inv"), term1, term2)) | ||
26 | } | ||
27 | |||
21 | def doDefault(expr : OWLPropertyExpression) : List[Atom] = List() | 28 | def doDefault(expr : OWLPropertyExpression) : List[Atom] = List() |
22 | 29 | ||
23 | } // class RDFoxPropertyExprConverter | 30 | } // class RDFoxPropertyExprConverter |