-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added definitions for inverses, fixes #51
Also added SPARQL CONSTRUCT that populates these based on subset property
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
prefix oio: <http://www.geneontology.org/formats/oboInOwl#> | ||
prefix def: <http://purl.obolibrary.org/obo/IAO_0000115> | ||
prefix owl: <http://www.w3.org/2002/07/owl#> | ||
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
prefix in_subset: <http://www.geneontology.org/formats/oboInOwl#inSubset> | ||
prefix dbi: <http://purl.obolibrary.org/obo/RO_0002259> | ||
prefix RO: <http://purl.obolibrary.org/obo/RO_> | ||
|
||
CONSTRUCT { | ||
?q def: ?gendef | ||
} | ||
WHERE | ||
{ | ||
?p a owl:ObjectProperty . | ||
?p rdfs:label ?pLabel . | ||
?p owl:inverseOf ?q . | ||
?q in_subset: dbi: . | ||
FILTER( NOT EXISTS {?q def: ?qdef } ) | ||
BIND(CONCAT("inverse of ", str(?pLabel)) AS ?gendef) | ||
|
||
} | ||
|