-
Notifications
You must be signed in to change notification settings - Fork 4
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 #77 from ExposuresProvider/add-provenance-for-signor
This PR attempts to implement the temporary fix we described in #76 (comment) by (1) loading only the SIGNOR models into Blazegraph, (2) marking all the models as having SIGNOR provenance, and then (3) loading the remaining models.
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 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,24 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX lego: <http://geneontology.org/lego/> | ||
PREFIX pav: <http://purl.org/pav/> | ||
|
||
# This is a temporary fix to https://github.com/ExposuresProvider/cam-pipeline/issues/76 -- a more | ||
# permanent fix would require rewriting the SIGNOR to TTL converter to add provenance information. | ||
# Currently we import the SIGNOR models first, use this SPARQL UPDATE to mark them as imported from | ||
# SIGNOR, and then load the remaining models. | ||
|
||
INSERT { | ||
# pav:importedFrom might be more accurate here, but I think | ||
# sparql/delete-non-production-models.ru deletes models that | ||
# don't have a pav:providedBy (which also seems to be what | ||
# the triplestore largely uses), so let's use that to be | ||
# consistent. | ||
?model pav:providedBy <https://signor.uniroma2.it/> . | ||
} WHERE { | ||
?model rdf:type owl:Ontology . | ||
# When generating SIGNOR models, we set lego:modelstate, | ||
# so we can use that to ensure we're only modifying models | ||
# here. | ||
?model lego:modelstate ?modelstate | ||
} |