aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-10-24 16:05:34 +0300
committerBonfaceKilz2023-10-27 13:45:32 +0300
commit6554132088fac2621c3723ec431e591403335f08 (patch)
tree22e1f959dcce2297a01027cecab130cfccf2d8bd /gn3/api
parent4ca6bf9c8d4c3428a1f5b670531150291982cd66 (diff)
downloadgenenetwork3-6554132088fac2621c3723ec431e591403335f08.tar.gz
REmove un-necessary prefixes when searching datasets.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/metadata.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py
index 1fa4a13..ce0b9c4 100644
--- a/gn3/api/metadata.py
+++ b/gn3/api/metadata.py
@@ -269,10 +269,14 @@ CONSTRUCT {
json.loads(
sparql.queryAndConvert().serialize(format="json-ld")),
{
- "@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#",
+ "dct": "http://purl.org/dc/terms/",
+ "xkos": "http://rdf-vocabulary.ddialliance.org/xkos#",
"inbredSet": "ex:belongsToInbredSet",
"classifiedUnder": "xkos:classifiedUnder",
"dataset": "rdfs:label",