-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #438 from rctauber/report_feedback
Report query updates based on feedback
- Loading branch information
Showing
51 changed files
with
307 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
# Duplicate Definition | ||
|
||
Problem: An entity shares an exact definition with another entity. | ||
**Problem:** An entity shares an exact definition or elucidation with another entity. Excludes deprecated entities. | ||
|
||
Solution: Update the definition to reflect the entities, or determine if the entities are the same. | ||
**OBO Foundry Principle:** [6 - Textual Definitions](http://obofoundry.org/principles/fp-006-textual-definitions.html) | ||
|
||
**Solution:** Update the definition to reflect the entities, or determine if the entities are the same. | ||
|
||
```sparql | ||
PREFIX obo: <http://purl.obolibrary.org/obo/> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
SELECT DISTINCT ?entity ?property ?value | ||
WHERE { | ||
VALUES ?property {obo:IAO_0000115} | ||
?entity obo:IAO_0000115 ?value . | ||
?entity2 obo:IAO_0000115 ?value . | ||
FILTER (?entity != ?entity2) . | ||
SELECT DISTINCT ?entity ?property ?value WHERE { | ||
VALUES ?property { obo:IAO_0000115 | ||
obo:IAO_0000600 } | ||
?entity ?property ?value . | ||
?entity2 ?property ?value . | ||
FILTER NOT EXISTS { ?entity owl:deprecated true } | ||
FILTER NOT EXISTS { ?entity2 owl:deprecated true } | ||
FILTER (?entity != ?entity2) | ||
FILTER (!isBlank(?entity)) | ||
} | ||
ORDER BY ?value | ||
ORDER BY DESC(UCASE(str(?value))) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
# Duplicate Exact Synonym | ||
|
||
Problem: Two entities share an exact synonym. This causes ambiguity. | ||
**Problem:** Two entities share an exact synonym. This causes ambiguity. Excludes deprecated entities. | ||
|
||
Solution: Avoid ambiguity by assigning unique exact synonyms or changing the exact synonym to a different annotation (e.g. broad synonym). | ||
**Solution:** Avoid ambiguity by assigning unique exact synonyms or changing the exact synonym to a different annotation (e.g. broad synonym). | ||
|
||
```sparql | ||
PREFIX obo: <http://purl.obolibrary.org/obo/> | ||
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
SELECT DISTINCT ?entity ?property ?value | ||
WHERE { | ||
SELECT DISTINCT ?entity ?property ?value WHERE { | ||
VALUES ?property { | ||
obo:IAO_0000118 | ||
oboInOwl:hasExactSynonym | ||
} | ||
?entity ?property ?value . | ||
?entity ?property ?value. | ||
?entity2 ?property ?value . | ||
FILTER NOT EXISTS { ?entity owl:deprecated true } | ||
FILTER NOT EXISTS { ?entity2 owl:deprecated true } | ||
FILTER (?entity != ?entity2) | ||
} | ||
ORDER BY DESC(UCASE(str(?value))) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
# Duplicate Label | ||
|
||
Problem: Two different subjects have been assigned the same label. This causes ambiguity. | ||
**Problem:** Two different subjects have been assigned the same label. This causes ambiguity. | ||
|
||
Solution: Avoid ambiguity by assigning distinct labels to each subject. | ||
**OBO Foundry Principle:** [12 - Naming Conventions](http://www.obofoundry.org/principles/fp-012-naming-conventions.html) | ||
|
||
**Solution:** Avoid ambiguity by assigning distinct labels to each subject. | ||
|
||
```sparql | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
SELECT DISTINCT ?entity ?property ?value | ||
WHERE { | ||
SELECT DISTINCT ?entity ?property ?value WHERE { | ||
VALUES ?property {rdfs:label} | ||
?entity ?property ?value . | ||
?entity2 ?property ?value . | ||
FILTER (?entity != ?entity2) | ||
FILTER (!isBlank(?entity)) | ||
} | ||
ORDER BY ?value | ||
ORDER BY DESC(UCASE(str(?value))) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
# Duplicate Label-Synonym | ||
|
||
Problem: An entity shares a label with an exact synonym. This causes ambiguity. | ||
**Problem:** An entity shares a label with an exact synonym. This causes ambiguity. Excludes deprecated entities. | ||
|
||
Solution: Avoid ambiguity by changing the exact synonym or label. | ||
**Solution:** Avoid ambiguity by changing the exact synonym or label. | ||
|
||
```sparql | ||
PREFIX obo: <http://purl.obolibrary.org/obo/> | ||
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
SELECT DISTINCT ?entity ?property ?value | ||
WHERE { | ||
SELECT DISTINCT ?entity ?property ?value WHERE { | ||
VALUES ?property { | ||
obo:IAO_0000118 | ||
oboInOwl:hasExactSynonym | ||
oboInOwl:hasRelatedSynonym | ||
oboInOwl:hasNarrowSynonym | ||
oboInOwl:hasBroadSynonym | ||
} | ||
FILTER NOT EXISTS { ?entity owl:deprecated true } | ||
FILTER NOT EXISTS { ?entity2 owl:deprecated true } | ||
?entity rdfs:label ?value . | ||
?entity ?property ?value | ||
?entity ?property ?value . | ||
} | ||
ORDER BY ?entity | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
# Equivalent Pair | ||
|
||
Problem: An entity has a one-to-one equivalency with another entity. This may be intentional (assuming it is not annotated with `is_inferred true`), or it may be due to incorrect logic and the reasoner asserting the equivalency. | ||
**Problem:** An entity has a one-to-one equivalency with another entity. This may be intentional (assuming it is not annotated with `is_inferred true`), or it may be due to incorrect logic and the reasoner asserting the equivalency. | ||
|
||
Solution: Ensure the reasoner is not incorrectly inferring equivalency. If so, update the logical axioms. | ||
**Solution:** Ensure the reasoner is not incorrectly inferring equivalency. If so, update the logical axioms. | ||
|
||
```sparql | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
SELECT DISTINCT ?entity ?property ?value | ||
WHERE { | ||
SELECT DISTINCT ?entity ?property ?value WHERE { | ||
VALUES ?property {owl:equivalentClass} | ||
?entity ?property ?value . | ||
FILTER (!isBlank(?value)) | ||
} | ||
ORDER BY ?entity | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# Invalid Xref | ||
|
||
Problem: A database_cross_reference is not in CURIE format. | ||
**Problem:** A database_cross_reference is not in CURIE format. | ||
|
||
Solution: Replace the reference with a [CURIE](https://www.w3.org/TR/2010/NOTE-curie-20101216/). | ||
**Solution:** Replace the reference with a [CURIE](https://www.w3.org/TR/2010/NOTE-curie-20101216/). | ||
|
||
```sparql | ||
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
SELECT DISTINCT ?entity ?property ?value | ||
WHERE { | ||
SELECT DISTINCT ?entity ?property ?value WHERE { | ||
VALUES ?property {oboInOwl:hasDbXref} | ||
?entity ?property ?value . | ||
FILTER (!regex(?value, "^[a-z|A-Z|_|0-9]*:(?!$)\\S*$")) | ||
FILTER (!regex(?value, "^[a-z|A-Z|_|\\-|0-9]*:(?!$)\\S*$")) | ||
FILTER (!isBlank(?entity)) | ||
} | ||
ORDER BY ?entity | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
# Lowercase Definition | ||
|
||
Problem: A definition does not begin with an uppercase letter. This may be indicative of inconsistent formatting. | ||
**Problem:** A definition or elucidation does not begin with an uppercase letter. This may be indicative of inconsistent formatting. | ||
|
||
Solution: Capitalize the first letter of the definition, or disregard this INFO. | ||
**Solution:** Capitalize the first letter of the definition, or disregard this INFO. | ||
|
||
```sparql | ||
PREFIX obo: <http://purl.obolibrary.org/obo/> | ||
SELECT DISTINCT ?entity ?property ?value | ||
WHERE { | ||
VALUES ?property {obo:IAO_0000115} | ||
SELECT DISTINCT ?entity ?property ?value WHERE { | ||
VALUES ?property { obo:IAO_0000115 | ||
obo:IAO_0000600 } | ||
?entity ?property ?value . | ||
FILTER (!regex(?value, "^[A-Z]")) | ||
} | ||
ORDER BY ?entity | ||
``` |
Oops, something went wrong.