aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/rsacomb
diff options
context:
space:
mode:
authorFederico Igne <federico.igne@cs.ox.ac.uk>2020-09-09 18:01:25 +0200
committerFederico Igne <federico.igne@cs.ox.ac.uk>2020-09-09 18:01:25 +0200
commitdce92d56b1c26497dc32312fd5a3a4494abe4dbd (patch)
treef6f6b529abab0165651bc44b2cfb144c8a4cd034 /src/main/scala/rsacomb
parent5f36bbf25ae8fb391ebc0fa9a3de344bb8fd4d94 (diff)
downloadRSAComb-dce92d56b1c26497dc32312fd5a3a4494abe4dbd.tar.gz
RSAComb-dce92d56b1c26497dc32312fd5a3a4494abe4dbd.zip
Add first attempt at retrieving all constants in an ontology
Diffstat (limited to 'src/main/scala/rsacomb')
-rw-r--r--src/main/scala/rsacomb/RSAOntology.scala9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/scala/rsacomb/RSAOntology.scala b/src/main/scala/rsacomb/RSAOntology.scala
index 23c9e06..30ebd3a 100644
--- a/src/main/scala/rsacomb/RSAOntology.scala
+++ b/src/main/scala/rsacomb/RSAOntology.scala
@@ -30,6 +30,13 @@ trait RSAOntology {
30 */ 30 */
31 implicit class RSAOntology(ontology: OWLOntology) extends RSAAxiom { 31 implicit class RSAOntology(ontology: OWLOntology) extends RSAAxiom {
32 32
33 /* TDOO: implement method to retrieve all ontology named individuals
34 */
35 lazy val individuals: List[IRI] = {
36 //ontology.getIndividualsInSignature().asScala.map(_.getIRI).toList
37 List()
38 }
39
33 /* Steps for RSA check 40 /* Steps for RSA check
34 * 1) convert ontology axioms into LP rules 41 * 1) convert ontology axioms into LP rules
35 * 2) call RDFox on the onto and compute materialization 42 * 2) call RDFox on the onto and compute materialization
@@ -39,7 +46,7 @@ trait RSAOntology {
39 * why the ontology might not be RSA. This could help a second 46 * why the ontology might not be RSA. This could help a second
40 * step of approximation of an Horn-ALCHOIQ to RSA 47 * step of approximation of an Horn-ALCHOIQ to RSA
41 */ 48 */
42 def isRSA: Boolean = { 49 lazy val isRSA: Boolean = {
43 50
44 val tbox = ontology.tboxAxioms(Imports.INCLUDED) 51 val tbox = ontology.tboxAxioms(Imports.INCLUDED)
45 val rbox = ontology.rboxAxioms(Imports.INCLUDED) 52 val rbox = ontology.rboxAxioms(Imports.INCLUDED)