diff options
author | Munyoki Kilyungi | 2024-01-10 13:07:21 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-01-10 13:09:19 +0300 |
commit | 19cb781f5eb96d71d0bebdd8ec5c9930e30f1b58 (patch) | |
tree | e7a03b868826a7d414c2e02e40170e5dd99debf9 /gn3 | |
parent | 2c576f65dc9d3a2b5ac573443fb88b36ea57f90f (diff) | |
download | genenetwork3-19cb781f5eb96d71d0bebdd8ec5c9930e30f1b58.tar.gz |
Remove hard-coded dataset name.
* gn3/api/metadata.py (probesets): Remove hard-coded "HC_M2_0606_P" in
probeset RDF query.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/api/metadata.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py index 913d16a..6dafef2 100644 --- a/gn3/api/metadata.py +++ b/gn3/api/metadata.py @@ -943,7 +943,7 @@ CONSTRUCT { } . OPTIONAL { ?dataset rdf:type dcat:Dataset ; - (rdfs:label|dct:identifier|skos:prefLabel) "HC_M2_0606_P" ; + (rdfs:label|dct:identifier|skos:prefLabel) "$dataset" ; (skos:altLabel|skos:prefLabel) ?datasetFullName . } . OPTIONAL { @@ -958,7 +958,8 @@ CONSTRUCT { ?species gnt:shortName ?speciesShortName . } . } -""").substitute(prefix=RDF_PREFIXES, name=name) +""").substitute(prefix=RDF_PREFIXES, + name=name, dataset=dataset) _context = { "@context": BASE_CONTEXT | { "alias": "skos:altLabel", |