From c23d261f47682b8e9844055697463acf17b8cbe7 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Fri, 10 Nov 2023 13:15:43 +0300 Subject: Fetch dataset specifics in RDF. * gn3/api/metadata.py (DATASET_CONTEXT): Add key for "specifics". (datasets): Fetch a dataset's specifics. Signed-off-by: Munyoki Kilyungi --- gn3/api/metadata.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gn3/api') diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py index ac6b4c3..08249ae 100644 --- a/gn3/api/metadata.py +++ b/gn3/api/metadata.py @@ -47,6 +47,7 @@ DATASET_CONTEXT = { "processingInfo": "gnt:hasDataProcessingInfo", "rdfs": "http://www.w3.org/2000/01/rdf-schema#", "skos": "http://www.w3.org/2004/02/skos/core#", + "specifics": "gnt:hasContentInfo", "tissue": "ex:tissue", "title": "dct:title", "xkos": "http://rdf-vocabulary.ddialliance.org/xkos#", @@ -134,6 +135,7 @@ CONSTRUCT { gnt:usesNormalization ?normalizationLabel ; dcat:contactPoint ?investigatorName ; xkos:classifiedUnder ?altName ; + gnt:hasContentInfo ?contentInfo ; ex:platform ?platform ; ex:tissue ?tissue . ?platform ?platformPred ?platformObject ; @@ -147,6 +149,7 @@ CONSTRUCT { rdfs:label ?datasetName ; (rdfs:label|dct:identifier|skos:prefLabel) "$name" . OPTIONAL { ?dataset dct:identifier ?accesionId . } . + OPTIONAL { ?dataset gnt:hasContentInfo ?contentInfo . } . OPTIONAL { ?inbredSet ^skos:member gnc:Set ; rdfs:label ?inbredSetName . -- cgit v1.2.3