Skip to content

Instantly share code, notes, and snippets.

@rnsrk
Created January 18, 2022 06:44
Show Gist options
  • Save rnsrk/21e6851e7c208271c8c6b8f1baab6da3 to your computer and use it in GitHub Desktop.
Save rnsrk/21e6851e7c208271c8c6b8f1baab6da3 to your computer and use it in GitHub Desktop.
Part of case collection for federated queries.
PREFIX ontology_1: <http://ontology_1/>
PREFIX ontology_2: <http://ontology_2/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
select distinct ?c where {
{
service <https://graphdb.nasarek.org/repositories/Adapter_1>
{
?a rdf:type ontology_1:E21_Person ;
ontology_1:P1_is_identified_by ?b.
?b ontology_1:P3_has_note ?c.
}
} UNION {
service <https://graphdb.nasarek.org/repositories/Adapter_3>
{
?a rdf:type ontology_1:E20_Biological_Object ;
ontology_1:P1_is_identified_by ?b.
?b ontology_1:P3_has_note ?c.
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment