Skip to content

Commit

Permalink
Update missing_subset_declaration.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matentzn authored Apr 23, 2024
1 parent db190e5 commit c183b2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/report_queries/missing_subset_declaration.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Missing Subset Declaration

**Problem:** A subset is used in an annotation, but is not properly declared as a child of oboInOwl:SubsetProperty. This can cause problems with conversions to OBO format.
**Problem:** A subset is used in an annotation (via oboInOwl:inSubset), but is not properly declared as a child of oboInOwl:SubsetProperty. This can cause problems with conversions to OBO format, and should be avoided as all subsets should have metadata.

**Solution:** Make the subset a child of oboInOwl:SubsetProperty.


```sparql
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#>
Expand All @@ -14,4 +15,4 @@ SELECT DISTINCT ?entity ?property ?value WHERE {
FILTER NOT EXISTS { ?entity ?property oboInOwl:SubsetProperty }
}
ORDER BY ?entity
```
```

0 comments on commit c183b2e

Please sign in to comment.