From 27f1b051b9385adcb185d3b497e8c5a60a487811 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sat, 11 Dec 2021 13:04:28 +0530 Subject: Remove rdflib python code. * rdf.py: Delete file. --- rdf.py | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 rdf.py 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: - -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) -- cgit v1.2.3