diff options
author | Munyoki Kilyungi | 2023-12-07 15:16:17 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-12-07 16:11:31 +0300 |
commit | 9ecd2e6141de81a43f568f94d106c045e73c3872 (patch) | |
tree | 97b58352b1a4eb0a2efe87ee862f3eca817af19f /gn3/api | |
parent | 9701198a64e62399aad2bd9379be0e88cef33a05 (diff) | |
download | genenetwork3-9ecd2e6141de81a43f568f94d106c045e73c3872.tar.gz |
Fetch normalization metadata correctly.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/api')
-rw-r--r-- | gn3/api/metadata.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py index 0b7e587..e0f8ff7 100644 --- a/gn3/api/metadata.py +++ b/gn3/api/metadata.py @@ -144,11 +144,12 @@ def datasets(name): $prefix CONSTRUCT { - ?dataset ?predicate ?term . + ?dataset ?predicate ?term ; + gnt:usesNormalization ?normalization . ?inbredSet rdfs:label ?inbredSetName . ?platform ?platformPred ?platformObject ; gnt:hasPlatformInfo ?platformInfo . - ?normalization ?normalizationPred ?normalizationObj . + ?normalization rdfs:label ?normalizationName . ?tissue ?tissuePred ?tissueObj ; gnt:hasTissueInfo ?tissueInfo . ?investigator foaf:name ?investigatorName ; @@ -181,9 +182,10 @@ CONSTRUCT { ?platformPred ?platformObject . } . OPTIONAL { - ?normalization ^gnt:usesNormalization ?dataset ; - ?normalizationPred ?normalizationObj . - } + ?dataset gnt:usesNormalization ?normalization . + ?normalization rdf:type gnc:avgMethod ; + rdfs:label ?normalizationName . + } . OPTIONAL { ?dataset gnt:hasPlatformInfo ?platformInfo . } . OPTIONAL { ?dataset gnt:hasTissueInfo ?tissueInfo . } . OPTIONAL { |