diff options
author | Munyoki Kilyungi | 2023-10-24 12:56:04 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-10-27 13:45:32 +0300 |
commit | 8058c1be433bdf6bcfb9bb4871a22249ab094a83 (patch) | |
tree | d599c111cb9d5a604b3fbfa458b8eb32f232f271 /gn3/api | |
parent | ffb6ce44e8271270f45e703e00b72cb1a508cb6f (diff) | |
download | genenetwork3-8058c1be433bdf6bcfb9bb4871a22249ab094a83.tar.gz |
Remove PREFIXES when querying datasets.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/api')
-rw-r--r-- | gn3/api/metadata.py | 45 |
1 files changed, 27 insertions, 18 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py index fff458c..88a6d32 100644 --- a/gn3/api/metadata.py +++ b/gn3/api/metadata.py @@ -83,32 +83,41 @@ CONSTRUCT { results.serialize(format="json-ld") ) frame = { - "@context": PREFIXES | { - "data": "@graph", - "type": "@type", - "id": "@id", - "inbredSet": "ex:belongsToInbredSet", - "description": "dct:description", - "created": "dct:created", - "normalization": "gnt:usesNormalization", - "classifiedUnder": "xkos:classifiedUnder", + "@context": { "accessRights": "dct:accessRights", "accessionId": "dct:identifier", - "title": "dct:title", - "label": "rdfs:label", + "acknowledgement": "gnt:hasAcknowledgement", "altLabel": "skos:altLabel", - "prefLabel": "skos:prefLabel", - "contactPoint": "dcat:contactPoint", - "organization": "foaf:Organization", - "info": "ex:info", "caseInfo": "gnt:hasCaseInfo", - "geoSeriesId": "gnt:hasGeoSeriesId", + "classifiedUnder": "xkos:classifiedUnder", + "contactPoint": "dcat:contactPoint", + "created": "dct:created", + "data": "@graph", + "dcat": "http://www.w3.org/ns/dcat#", + "dct": "http://purl.org/dc/terms/", + "description": "dct:description", + "ex": "http://example.org/stuff/1.0/", "experimentDesignInfo": "gnt:hasExperimentDesignInfo", + "foaf": "http://xmlns.com/foaf/0.1/", + "foaf": "http://xmlns.com/foaf/0.1/", + "geoSeriesId": "gnt:hasGeoSeriesId", + "gnt": "http://genenetwork.org/term/", + "id": "@id", + "inbredSet": "ex:belongsToInbredSet", + "info": "ex:info", + "label": "rdfs:label", + "normalization": "gnt:usesNormalization", "notes": "gnt:hasNotes", + "organization": "foaf:Organization", + "platform": "ex:platform", + "prefLabel": "skos:prefLabel", "processingInfo": "gnt:hasDataProcessingInfo", - "acknowledgement": "gnt:hasAcknowledgement", + "rdfs": "http://www.w3.org/2000/01/rdf-schema#", + "skos": "http://www.w3.org/2004/02/skos/core#", "tissue": "ex:tissue", - "platform": "ex:platform", + "title": "dct:title", + "type": "@type", + "xkos": "http://rdf-vocabulary.ddialliance.org/xkos#", }, "type": "dcat:Dataset", } |