diff options
author | Munyoki Kilyungi | 2023-11-10 13:15:43 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-11-27 12:29:25 +0300 |
commit | c23d261f47682b8e9844055697463acf17b8cbe7 (patch) | |
tree | c020719579581dc811f29c86006a79e40f6cac8c /gn3 | |
parent | 63a405c1ad79bbbfdd3385e7031a23ad2c1d5840 (diff) | |
download | genenetwork3-c23d261f47682b8e9844055697463acf17b8cbe7.tar.gz |
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 <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/api/metadata.py | 3 |
1 files changed, 3 insertions, 0 deletions
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 . |