diff options
author | Arun Isaac | 2021-12-11 13:04:28 +0530 |
---|---|---|
committer | Arun Isaac | 2021-12-11 14:19:41 +0530 |
commit | 27f1b051b9385adcb185d3b497e8c5a60a487811 (patch) | |
tree | 825823072836e754422aa404cdccbbe81a39fe6a | |
parent | bc4b04a3dbaf40a6365a0d7087ef9ca66d6dedb6 (diff) | |
download | gn-transform-databases-27f1b051b9385adcb185d3b497e8c5a60a487811.tar.gz |
Remove rdflib python code.
* rdf.py: Delete file.
-rw-r--r-- | rdf.py | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -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) |