aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rdf.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/rdf.py b/rdf.py
deleted file mode 100644
index c2bd5e4..0000000
--- a/rdf.py
+++ /dev/null
@@ -1,25 +0,0 @@
-import os.path
-from pathlib import Path
-from rdflib import Graph
-
-graph = Graph()
-graph.parse(location=os.path.join(Path.home(), 'data/dump/dump.ttl'),
- format='text/turtle')
-
-query = """
-PREFIX gn: <https://genenetwork.org/>
-
-SELECT ?name ?binomial
-WHERE {
- ?species rdf:type gn:species .
- ?strain rdf:type gn:strain .
- ?strain gn:name "JN9" .
- ?strain gn:strainOfSpecies ?species .
-
- ?species gn:name ?name .
- ?species gn:binomialName ?binomial .
-}
-"""
-
-for result in graph.query(query):
- print(result)