diff options
-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", |