diff options
Diffstat (limited to 'src/main/scala')
| -rw-r--r-- | src/main/scala/rsacomb/RSAOntology.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/scala/rsacomb/RSAOntology.scala b/src/main/scala/rsacomb/RSAOntology.scala index 2f639eb..23c9e06 100644 --- a/src/main/scala/rsacomb/RSAOntology.scala +++ b/src/main/scala/rsacomb/RSAOntology.scala | |||
| @@ -48,7 +48,7 @@ trait RSAOntology { | |||
| 48 | .concat(tbox, rbox) | 48 | .concat(tbox, rbox) |
| 49 | .collect(Collectors.toList()) | 49 | .collect(Collectors.toList()) |
| 50 | .asScala | 50 | .asScala |
| 51 | val unsafe = ontology.getUnsafeRoles | 51 | val unsafe = this.unsafeRoles |
| 52 | 52 | ||
| 53 | /* DEBUG: print rules in DL syntax and unsafe roles */ | 53 | /* DEBUG: print rules in DL syntax and unsafe roles */ |
| 54 | val renderer = new DLSyntaxObjectRenderer() | 54 | val renderer = new DLSyntaxObjectRenderer() |
| @@ -91,7 +91,7 @@ trait RSAOntology { | |||
| 91 | 91 | ||
| 92 | /* Build graph | 92 | /* Build graph |
| 93 | */ | 93 | */ |
| 94 | val graph = getRSAGraph(data); | 94 | val graph = this.rsaGraph(data); |
| 95 | println(graph) | 95 | println(graph) |
| 96 | 96 | ||
| 97 | // Close connection to RDFox | 97 | // Close connection to RDFox |
| @@ -105,7 +105,7 @@ trait RSAOntology { | |||
| 105 | graph.isAcyclic | 105 | graph.isAcyclic |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | def getUnsafeRoles: List[OWLObjectPropertyExpression] = { | 108 | private def unsafeRoles: List[OWLObjectPropertyExpression] = { |
| 109 | // The reasoner is used to check unsafety condition for the ontology roles | 109 | // The reasoner is used to check unsafety condition for the ontology roles |
| 110 | val factory = new StructuralReasonerFactory() | 110 | val factory = new StructuralReasonerFactory() |
| 111 | val reasoner = factory.createReasoner(ontology) | 111 | val reasoner = factory.createReasoner(ontology) |
| @@ -166,7 +166,7 @@ trait RSAOntology { | |||
| 166 | (unsafe1 ++ unsafe2).toList | 166 | (unsafe1 ++ unsafe2).toList |
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | def getRSAGraph( | 169 | private def rsaGraph( |
| 170 | data: DataStoreConnection | 170 | data: DataStoreConnection |
| 171 | ): Graph[Resource, UnDiEdge] = { | 171 | ): Graph[Resource, UnDiEdge] = { |
| 172 | val query = "SELECT ?X ?Y WHERE { ?X internal:E ?Y }" | 172 | val query = "SELECT ?X ?Y WHERE { ?X internal:E ?Y }" |
