diff options
author | Munyoki Kilyungi | 2023-12-05 15:21:26 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-12-07 16:11:31 +0300 |
commit | fa4fc7fdeb5d774936ea37c82c9ec017a88b0903 (patch) | |
tree | 9f70987469c7a02a3d86bd457c53e87b587169bc | |
parent | f389a5ef2beeb6d7d6a38af7b67dc6d424d8bcdc (diff) | |
download | genenetwork3-fa4fc7fdeb5d774936ea37c82c9ec017a88b0903.tar.gz |
Update phenotype queries to use gnt:belongsToGroup.
* gn3/api/metadata.py (phenotypes): Use gnt:belongsToGroup instead of xkos:classifiedUnder.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r-- | gn3/api/metadata.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gn3/api/metadata.py b/gn3/api/metadata.py index 86112f6..2ae615b 100644 --- a/gn3/api/metadata.py +++ b/gn3/api/metadata.py @@ -444,13 +444,11 @@ CONSTRUCT { gnt:mb ?mb . } WHERE { ?phenotype skos:altLabel "$name" ; - xkos:classifiedUnder ?inbredSet ; + gnt:belongsToGroup ?inbredSet ; ?predicate ?object . - ?inbredSet ^xkos:classifiedUnder ?phenotype ; - rdfs:label ?inbredSetName ; + ?inbredSet rdfs:label ?inbredSetName ; xkos:generalizes ?species . ?species skos:prefLabel ?speciesName . - FILTER (!regex(str(?predicate), '(classifiedUnder)', 'i')) . OPTIONAL { ?publication ^dct:isReferencedBy ?phenotype ; rdf:type fabio:ResearchPaper ; @@ -466,7 +464,7 @@ CONSTRUCT { } . OPTIONAL { ?dataset rdf:type dcat:Dataset ; - xkos:classifiedUnder ?inbredSet ; + gnt:belongsToGroup ?inbredSet ; xkos:classifiedUnder gnc:Phenotype ; rdfs:label ?datasetLabel ; skos:prefLabel ?datasetName . |