generated from linkml/linkml-template
-
Notifications
You must be signed in to change notification settings - Fork 8
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 #1738 from microbiomedata/1735-referential-ineggri…
…ty-checking-of-napa-squads-mongodb-via-sparql-in-fuseki referential integrity checking of napa squads mongodb via sparql in fuseki
- Loading branch information
Showing
11 changed files
with
434 additions
and
115 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,33 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
SELECT | ||
distinct | ||
?st ?p ?o | ||
# ?p | ||
WHERE { | ||
graph <https://api-napa.microbiomedata.org> { | ||
?s ?p ?o . | ||
filter(isuri(?o)) | ||
minus { | ||
?o ?op ?oo . | ||
} minus { | ||
?s <https://w3id.org/nmdc/award_dois> ?o . | ||
} minus { | ||
?s <https://w3id.org/nmdc/publication_dois> ?o . | ||
} minus { | ||
?s <https://w3id.org/nmdc/massive_study_identifiers> ?o . | ||
} | ||
optional { | ||
?s a ?st | ||
} | ||
} minus { | ||
graph <https://w3id.org/nmdc/nmdc> { | ||
?o ?op ?oo . | ||
} | ||
} minus { | ||
graph <https://w3id.org/nmdc/nmdc> { | ||
?p rdfs:subPropertyOf* <https://w3id.org/nmdc/alternative_identifiers> | ||
} | ||
} | ||
} | ||
order by ?st ?p ?o |
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,13 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
SELECT | ||
distinct ?s | ||
WHERE { | ||
graph <https://api-napa.microbiomedata.org> { | ||
?s ?p ?o . | ||
minus { | ||
?s a ?st . | ||
} | ||
} | ||
} | ||
order by ?s |
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,23 @@ | ||
# Alicia and I wrote this together. It might ahve some good bits, but string filtering is usually a bad practice | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
SELECT | ||
distinct ?s ?st ?o | ||
WHERE { | ||
graph <https://api-napa.microbiomedata.org> { | ||
?s <https://w3id.org/nmdc/has_input> ?o . | ||
filter(!(strstarts(str(?o),"https://w3id.org/nmdc/procsm"))) | ||
optional { | ||
?s a ?st | ||
} | ||
filter(isuri(?o)) | ||
minus { | ||
?o ?op ?oo . | ||
} | ||
} | ||
minus { | ||
graph <https://w3id.org/nmdc/nmdc> { | ||
?o ?op ?oo . | ||
} | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.