diff options
Diffstat (limited to 'src/main/scala/rsacomb/RDFoxClassExprConverter.scala')
| -rw-r--r-- | src/main/scala/rsacomb/RDFoxClassExprConverter.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/scala/rsacomb/RDFoxClassExprConverter.scala b/src/main/scala/rsacomb/RDFoxClassExprConverter.scala index b9d3ea2..467b3f1 100644 --- a/src/main/scala/rsacomb/RDFoxClassExprConverter.scala +++ b/src/main/scala/rsacomb/RDFoxClassExprConverter.scala | |||
| @@ -61,7 +61,8 @@ class RDFoxClassExprConverter( | |||
| 61 | 61 | ||
| 62 | // OWLClass | 62 | // OWLClass |
| 63 | override def visit(expr: OWLClass): RDFoxRuleShards = { | 63 | override def visit(expr: OWLClass): RDFoxRuleShards = { |
| 64 | val atom = List(Atom.rdf(term, IRI.RDF_TYPE, expr.getIRI())) | 64 | val iri: IRI = if (expr.isTopEntity()) IRI.THING else expr.getIRI() |
| 65 | val atom = List(Atom.rdf(term, IRI.RDF_TYPE, iri)) | ||
| 65 | RDFoxRuleShards(atom, List()) | 66 | RDFoxRuleShards(atom, List()) |
| 66 | } | 67 | } |
| 67 | 68 | ||
| @@ -97,6 +98,7 @@ class RDFoxClassExprConverter( | |||
| 97 | // TODO: variables needs to be handled at visitor level. Hardcoding | 98 | // TODO: variables needs to be handled at visitor level. Hardcoding |
| 98 | // the name of the varibles might lead to errors for complex cases. | 99 | // the name of the varibles might lead to errors for complex cases. |
| 99 | val y = Variable.create("y") | 100 | val y = Variable.create("y") |
| 101 | // Here we are assuming a role name | ||
| 100 | val prop = expr.getProperty() | 102 | val prop = expr.getProperty() |
| 101 | // Computes the result of rule skolemization. Depending on the used | 103 | // Computes the result of rule skolemization. Depending on the used |
| 102 | // technique it might involve the introduction of additional atoms, | 104 | // technique it might involve the introduction of additional atoms, |
