diff options
| author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2021-11-17 12:39:36 +0000 |
|---|---|---|
| committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2021-11-17 12:39:36 +0000 |
| commit | 28d767e7e588d5d411e06b26db1a18448e2a6aad (patch) | |
| tree | 122cfb62d1ce43d8fa01982d22ebccce2ea4d242 | |
| parent | dc9209dd91980ed67f0f4b46e0bb223a6854914a (diff) | |
| download | RSAComb-28d767e7e588d5d411e06b26db1a18448e2a6aad.tar.gz RSAComb-28d767e7e588d5d411e06b26db1a18448e2a6aad.zip | |
Clean up commented code
| -rw-r--r-- | src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala b/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala index f67eca9..4d71bca 100644 --- a/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala +++ b/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala | |||
| @@ -130,64 +130,6 @@ object RSAOntology { | |||
| 130 | datafiles: List[os.Path] | 130 | datafiles: List[os.Path] |
| 131 | ): RSAOntology = new RSAOntology(origin, axioms, datafiles) | 131 | ): RSAOntology = new RSAOntology(origin, axioms, datafiles) |
| 132 | 132 | ||
| 133 | // def apply( | ||
| 134 | // ontofile: File, | ||
| 135 | // datafiles: List[File], | ||
| 136 | // approx: Option[Approximation] | ||
| 137 | // ): RSAOntology = { | ||
| 138 | // val ontology = manager.loadOntologyFromOntologyDocument(ontofile) | ||
| 139 | // RSAOntology(ontology, datafiles, approx) | ||
| 140 | // } | ||
| 141 | |||
| 142 | // def apply( | ||
| 143 | // ontology: OWLOntology, | ||
| 144 | // datafiles: List[File], | ||
| 145 | // approx: Option[Approximation] | ||
| 146 | // ): RSAOntology = { | ||
| 147 | // val normalizer = new Normalizer() | ||
| 148 | |||
| 149 | // /** TBox axioms */ | ||
| 150 | // var tbox: List[OWLLogicalAxiom] = | ||
| 151 | // ontology | ||
| 152 | // .tboxAxioms(Imports.INCLUDED) | ||
| 153 | // .collect(Collectors.toList()) | ||
| 154 | // .collect { case a: OWLLogicalAxiom => a } | ||
| 155 | // .flatMap(normalizer.normalize) | ||
| 156 | |||
| 157 | // /** RBox axioms */ | ||
| 158 | // var rbox: List[OWLLogicalAxiom] = | ||
| 159 | // ontology | ||
| 160 | // .rboxAxioms(Imports.INCLUDED) | ||
| 161 | // .collect(Collectors.toList()) | ||
| 162 | // .collect { case a: OWLLogicalAxiom => a } | ||
| 163 | // .flatMap(normalizer.normalize) | ||
| 164 | |||
| 165 | // /** ABox axioms | ||
| 166 | // * | ||
| 167 | // * @note this represents only the set of assertions contained in the | ||
| 168 | // * ontology file. Data files specified in `datafiles` are directly | ||
| 169 | // * imported in RDFox due to performance issues when trying to import | ||
| 170 | // * large data files via OWLAPI. | ||
| 171 | // */ | ||
| 172 | // var abox: List[OWLLogicalAxiom] = | ||
| 173 | // ontology | ||
| 174 | // .aboxAxioms(Imports.INCLUDED) | ||
| 175 | // .collect(Collectors.toList()) | ||
| 176 | // .collect { case a: OWLLogicalAxiom => a } | ||
| 177 | // .flatMap(normalizer.normalize) | ||
| 178 | |||
| 179 | // /** Collection of logical axioms in the input ontology */ | ||
| 180 | // var axioms: List[OWLLogicalAxiom] = abox ::: tbox ::: rbox | ||
| 181 | |||
| 182 | // new RSAOntology( | ||
| 183 | // approx match { | ||
| 184 | // case Some(a) => a.approximate(axioms, datafiles) | ||
| 185 | // case None => axioms | ||
| 186 | // }, | ||
| 187 | // datafiles: _* | ||
| 188 | // ) | ||
| 189 | // } | ||
| 190 | |||
| 191 | } | 133 | } |
| 192 | 134 | ||
| 193 | /** A wrapper for an RSA ontology | 135 | /** A wrapper for an RSA ontology |
