diff options
author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-09-09 17:08:58 +0200 |
---|---|---|
committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-09-09 17:08:58 +0200 |
commit | 5f36bbf25ae8fb391ebc0fa9a3de344bb8fd4d94 (patch) | |
tree | beb6be4ee49082468731cc6e272e7bdec1276f96 /src | |
parent | e325a9c6282a4a98bf6799f8d04b3cbc6e56fca2 (diff) | |
download | RSAComb-5f36bbf25ae8fb391ebc0fa9a3de344bb8fd4d94.tar.gz RSAComb-5f36bbf25ae8fb391ebc0fa9a3de344bb8fd4d94.zip |
Rename functions to follow Scala naming conventions
Diffstat (limited to 'src')
-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 }" |