aboutsummaryrefslogtreecommitdiff
path: root/rdf.py
diff options
context:
space:
mode:
authorArun Isaac2021-12-11 13:04:28 +0530
committerArun Isaac2021-12-11 14:19:41 +0530
commit27f1b051b9385adcb185d3b497e8c5a60a487811 (patch)
tree825823072836e754422aa404cdccbbe81a39fe6a /rdf.py
parentbc4b04a3dbaf40a6365a0d7087ef9ca66d6dedb6 (diff)
downloadgn-transform-databases-27f1b051b9385adcb185d3b497e8c5a60a487811.tar.gz
Remove rdflib python code.
* rdf.py: Delete file.
Diffstat (limited to 'rdf.py')
-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)