diff options
| author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2022-05-15 19:28:02 +0100 |
|---|---|---|
| committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2022-05-15 19:28:02 +0100 |
| commit | 2ebd0c8c4fd421dd676004e559b69ed8e5c9bb49 (patch) | |
| tree | 8ff4094587baa1b7c3eecb533762f123383fe17b /src/main/scala/uk/ac/ox/cs/acqua/approximation | |
| parent | d99c80db73e8456c969b262a4b99714bb693bfe0 (diff) | |
| download | ACQuA-2ebd0c8c4fd421dd676004e559b69ed8e5c9bb49.tar.gz ACQuA-2ebd0c8c4fd421dd676004e559b69ed8e5c9bb49.zip | |
Finalise implementation of ACQuA query reasoner
Diffstat (limited to 'src/main/scala/uk/ac/ox/cs/acqua/approximation')
| -rw-r--r-- | src/main/scala/uk/ac/ox/cs/acqua/approximation/Noop.scala | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/main/scala/uk/ac/ox/cs/acqua/approximation/Noop.scala b/src/main/scala/uk/ac/ox/cs/acqua/approximation/Noop.scala new file mode 100644 index 0000000..69489ac --- /dev/null +++ b/src/main/scala/uk/ac/ox/cs/acqua/approximation/Noop.scala | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* | ||
| 2 | * Copyright 2021,2022 KRR Oxford | ||
| 3 | * | ||
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | * you may not use this file except in compliance with the License. | ||
| 6 | * You may obtain a copy of the License at | ||
| 7 | * | ||
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | * | ||
| 10 | * Unless required by applicable law or agreed to in writing, software | ||
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 13 | * See the License for the specific language governing permissions and | ||
| 14 | * limitations under the License. | ||
| 15 | */ | ||
| 16 | |||
| 17 | package uk.ac.ox.cs.acqua.approximation | ||
| 18 | |||
| 19 | import uk.ac.ox.cs.rsacomb.ontology.{Ontology,RSAOntology} | ||
| 20 | import uk.ac.ox.cs.rsacomb.approximation.Approximation | ||
| 21 | |||
| 22 | /** Dummy approximation without any effect. | ||
| 23 | * | ||
| 24 | * @note this is only useful to convert an already RSA | ||
| 25 | * [[uk.ac.ox.cs.rsacomb.ontology.Ontology]] into an | ||
| 26 | * [[uk.ac.ox.cs.rsacomb.ontology.RSAOntology]]. | ||
| 27 | */ | ||
| 28 | object Noop extends Approximation[RSAOntology] { | ||
| 29 | |||
| 30 | def approximate(ontology: Ontology): RSAOntology = | ||
| 31 | RSAOntology(ontology.origin, ontology.axioms, ontology.datafiles) | ||
| 32 | |||
| 33 | } | ||
| 34 | |||
