aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/uk/ac/ox/cs/acqua/approximation
diff options
context:
space:
mode:
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.scala34
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
17package uk.ac.ox.cs.acqua.approximation
18
19import uk.ac.ox.cs.rsacomb.ontology.{Ontology,RSAOntology}
20import 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 */
28object Noop extends Approximation[RSAOntology] {
29
30 def approximate(ontology: Ontology): RSAOntology =
31 RSAOntology(ontology.origin, ontology.axioms, ontology.datafiles)
32
33}
34