-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
duplicate results returned for pk_anatomical_class #42
Comments
@balhoff the question really is why there are duplicate terms in the database that have identical semantics (as post-compositions) but slightly different IDs. So presumably this is the wrong tracker; which one should it go to? (There's a "Transfer Issue" feature now.) |
Thanks, I transferred! The issue is that post-compositions are defined as subclasses of the entered expression. They all have different IDs because they shouldn't be equivalent. One reason for this is that curators have put in post-compositions to describe an "absent" structure, and it would be too strong to say that there are no instances at all of the entered expression. Perhaps this should be treated as a curation issue instead of creating this complicated data model. |
Perhaps discuss at next team call? I'm not sure I'm following. I.e., I'm not following why the two classes |
The annotation issue is much more widespread than I realized. Here is a query showing all the Q=absent annotations with a post-composed entity: https://api.triplydb.com/s/OVzITJ63 There are 1855 to look at! PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://purl.org/phenoscape/vocab.owl#>
PREFIX absent: <http://purl.obolibrary.org/obo/PATO_0000462>
PREFIX has_character: <http://purl.obolibrary.org/obo/CDAO_0000142>
SELECT DISTINCT ?matrix_label ?matrix_char_label ?state_label ?entity_label WHERE {
?phenotype ps:quality_term absent: .
?phenotype ps:entity_term ?entity .
?entity rdfs:label ?entity_label .
FILTER(CONTAINS(?entity_label, " some "))
?state ps:describes_phenotype ?phenotype .
?matrix_char ps:may_have_state_value ?state .
?matrix has_character: ?matrix_char .
?matrix rdfs:label ?matrix_label .
?matrix_char rdfs:label ?matrix_char_label .
?state rdfs:label ?state_label .
}
LIMIT 5000 |
related to phenoscape/phenoscape-kb-web-ui#18 |
pk_anatomical_class() returns duplicate superClassOf terms for post-composed terms. In the example below, see rows 3+4 and 5+6:
The text was updated successfully, but these errors were encountered: