From 0cec64abab728dac8459cc4efb5631a30ae9be03 Mon Sep 17 00:00:00 2001
From: flange <38500-flange@users.noreply.git.rwth-aachen.de>
Date: Fri, 19 Apr 2024 13:12:44 +0200
Subject: [PATCH] remove dfgfo from loaded ontologies

---
 Dockerfile                       |  7 -----
 tests/.gitignore                 |  2 +-
 tests/test_ontologies_dataset.py | 54 --------------------------------
 3 files changed, 1 insertion(+), 62 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 53a0dc5..b44913a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -51,13 +51,6 @@ RUN \
     set -ex && \
     echo "33beedfa0b8a51417e22a15dfd237169d98868bde8fb59f29ee447c0ed1d4972  MoDalia.ttl" | sha256sum --status -c
 
-RUN \
-    set -ex && \
-    # DFG Fachsystematik Ontology / DFG Classification of Subject Areas Ontology
-    # see https://github.com/tibonto/DFG-Fachsystematik-Ontology
-    wget --no-verbose https://raw.githubusercontent.com/tibonto/DFG-Fachsystematik-Ontology/b6e9983bc1eb33aeab034dd27f5f08cff227ff0f/dfgfo.ttl && \
-    echo "0b168a90bc3fcb10457b2bd98b5969b2fd972725481bcc8aad149dd4f446be74  dfgfo.ttl" | sha256sum --status -c
-
 #
 # Copy config templates
 #
diff --git a/tests/.gitignore b/tests/.gitignore
index 582f083..f08c4c2 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -1,4 +1,4 @@
 .env
 .pytest_cache
 __pycache__
-.idea
\ No newline at end of file
+.idea
diff --git a/tests/test_ontologies_dataset.py b/tests/test_ontologies_dataset.py
index 4907d98..416bd2d 100644
--- a/tests/test_ontologies_dataset.py
+++ b/tests/test_ontologies_dataset.py
@@ -8,60 +8,6 @@ DATASET_NAME = "ontologies"
 
 
 class TestOntologiesDataset:
-    def test_text_search(self, fuseki_url):
-        endpoint = f"{fuseki_url}/{DATASET_NAME}"
-        store = SPARQLStore(query_endpoint=endpoint)
-
-        result = store.query("""
-            PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
-            PREFIX text: <http://jena.apache.org/text#>
-
-            SELECT ?uri ?score ?label
-            WHERE {
-                (?uri ?score) text:query (rdfs:label 'ancient history') .
-                ?uri rdfs:label ?label .
-            }
-            ORDER BY DESC(?score)
-        """)
-        assert len(result) == 14
-        assert list(map(lambda item: str(item.label), list(result))) == [
-            'Ancient History',
-            'Ancient Cultures',
-            'History',
-            'Art History',
-            'Medieval History',
-            'Egyptology and Ancient Near Eastern Studies',
-            'Early Modern History',
-            'History of Philosophy',
-            'History of Science',
-            'Economic and Social History',
-            'Modern and Current History',
-            'General Education and History of Education',
-            'Art History, Music, Theatre and Media Studies',
-            'Architecture, Building and Construction History, Construction Research, Sustainable Building Technology'
-        ]
-
-        result = store.query("""
-            PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
-            PREFIX text: <http://jena.apache.org/text#>
-
-            SELECT ?uri ?score ?label
-            WHERE {
-                (?uri ?score) text:query (skos:altLabel 'Alte Geschichte') .
-                ?uri skos:altLabel ?label .
-            }
-            ORDER BY DESC(?score)
-        """)
-        assert len(result) == 6
-        assert list(map(lambda item: str(item.label), list(result))) == [
-            'Alte Geschichte',
-            'Alte Kulturen',
-            'Frühneuzeitliche Geschichte',
-            'Mittelalterliche Geschichte',
-            'Geschichte der Philosophie',
-            'Neuere und Neueste Geschichte (einschl. Europäische Geschichte der Neuzeit und Außereuropäische Geschichte)'
-        ]
-
     @pytest.mark.parametrize("endpoint_name", ["", "query", "sparql", "get"])
     def test_dataset_is_not_writeable_with_gsp(self, fuseki_url, endpoint_name):
         assert cannot_use_gsp_write(fuseki_url, DATASET_NAME, endpoint_name)
-- 
GitLab