aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-10-24 16:57:52 +0300
committerBonfaceKilz2023-10-27 13:45:32 +0300
commitc543892f18d6a3d3027e1946ef488951ae5ed16e (patch)
tree0e6ed9b67c61af851d22b25672e1b68ed1755ca5 /gn3/api
parent5dbf3468412b5cb7c5a490700fb27368f1928880 (diff)
downloadgenenetwork3-c543892f18d6a3d3027e1946ef488951ae5ed16e.tar.gz
Remove un-necessary prefixes when fetching NCBI genewiki entries.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/metadata.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py
index e484b05..ff44992 100644
--- a/gn3/api/metadata.py
+++ b/gn3/api/metadata.py
@@ -816,10 +816,16 @@ CONSTRUCT {
results = sparql.queryAndConvert()
results = json.loads(results.serialize(format="json-ld"))
context = {
- "@context": PREFIXES | {
+ "@context": {
"data": "@graph",
"type": "@type",
"id": "@id",
+ "ex": "http://example.org/stuff/1.0/",
+ "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
+ "gnt": "http://genenetwork.org/term/",
+ "gnc": "http://genenetwork.org/category/",
+ "dct": "http://purl.org/dc/terms/",
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
"entries": "ex:entries",
"comment": "rdfs:comment",
"category": 'gnt:belongsToCategory',