wikipathways / wikipathways/WikiPathwaysCurator
Test for only top level ontology tags --> Expert Curation
@DeniseSl22 is already working on this.
Since Oct 12, 2020.
- Dominant language
- Java
- Stars
- 1
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Previously, we wanted to add at least one top level PW ontology tag (PW_0000002, PW_0000003, PW_0000004, PW_0000013 and PW_0000754) for each PW. However, since we now have the PW ontology in our endpoint, we could add the best fitting child term, remove the top level terms and obtain those top level terms through a SPARQL query.
The query below obtains all ontology tags for Reactome PWs (excluding the cur:Reactome_Approved), and creates a list of these.
SELECT DISTINCT ?pathway (GROUP_CONCAT(DISTINCT ?tag;separator=", ") AS ?results)
WHERE {
?pathway a wp:Pathway ;
wp:ontologyTag cur:Reactome_Approved .
OPTIONAL{?pathway wp:ontologyTag ?tag } .
FILTER (cur:Reactome_Approved != ?tag)
} GROUP BY ?pathway
A new test should check the items in that list for each PW (maybe starting with "Approved for Data Analysis" and "Human" ? @egonw ), and then compare for each item if is equal to the IDs mentioned above. If yes, then the test fails and should show up in the expert curation panel. We could then check if there's only 1 parent term (which we should then replace with a more appropriate child term), or remove the parent term if a term deeper down the tree is also present.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.