aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/metadata.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py
index 88a6d32..542a0a3 100644
--- a/gn3/api/metadata.py
+++ b/gn3/api/metadata.py
@@ -29,6 +29,8 @@ $prefix
CONSTRUCT {
?dataset ?predicate ?term ;
rdf:type dcat:Dataset ;
+ rdfs:label ?datasetName ;
+ dct:identifier ?accesionId ;
ex:belongsToInbredSet ?inbredSetName ;
gnt:usesNormalization ?normalizationLabel ;
dcat:contactPoint ?investigatorName ;
@@ -43,7 +45,9 @@ CONSTRUCT {
} WHERE {
?dataset rdf:type dcat:Dataset ;
xkos:classifiedUnder ?inbredSet ;
- rdfs:label "$name" .
+ rdfs:label ?datasetName ;
+ (rdfs:label|dct:identifier|skos:prefLabel) "$name" .
+ OPTIONAL { ?dataset dct:identifier ?accesionId . } .
OPTIONAL {
?inbredSet ^skos:member gnc:Set ;
rdfs:label ?inbredSetName .