From 6554132088fac2621c3723ec431e591403335f08 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 24 Oct 2023 16:05:34 +0300 Subject: REmove un-necessary prefixes when searching datasets. Signed-off-by: Munyoki Kilyungi --- gn3/api/metadata.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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", -- cgit v1.2.3