11@prefix dc: <http://purl.org/dc/elements/1.1/> .
2- @prefix dcterms: <http://purl.org/dc/terms/> .
3- @prefix ex: <https://sparql.uniprot.org/.well-known/sparql-examples/> .
4- @prefix idr: <https://idr.openmicroscopy.org/> .
5- @prefix kv: <http://www.openmicroscopy.org/ns/default/> .
6- @prefix obda: <https://w3id.org/obda/vocabulary#> .
7- @prefix omecore: <https://ld.openmicroscopy.org/core/> .
8- @prefix omekg: <https://ld.openmicroscopy.org/omekg#> .
9- @prefix owl: <http://www.w3.org/2002/07/owl#> .
10- @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
11- @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
12- @prefix schema: <https://schema.org/> .
13- @prefix sh: <http://www.w3.org/ns/shacl#> .
14- @prefix xml: <http://www.w3.org/XML/1998/namespace/> .
15- @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
16-
2+ @prefix dcterms: <http://purl.org/dc/terms/> .
3+ @prefix ex: <https://sparql.uniprot.org/.well-known/sparql-examples/> .
4+ @prefix idr: <https://idr.openmicroscopy.org/> .
5+ @prefix kv: <http://www.openmicroscopy.org/ns/default/> .
6+ @prefix obda: <https://w3id.org/obda/vocabulary#> .
7+ @prefix omecore: <https://ld.openmicroscopy.org/core/> .
8+ @prefix omekg: <https://ld.openmicroscopy.org/omekg#> .
9+ @prefix owl: <http://www.w3.org/2002/07/owl#> .
10+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
11+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
12+ @prefix schema: <https://schema.org/> .
13+ @prefix sh: <http://www.w3.org/ns/shacl#> .
14+ @prefix spex: <https://purl.expasy.org/sparql-examples/ontology#> .
15+ @prefix xml: <http://www.w3.org/XML/1998/namespace/> .
16+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
17+
1718
1819ex:002 a sh:SPARQLExecutable, sh:SPARQLSelectExecutable ;
1920 rdfs:comment " Federated query connecting to Uniprot proteins via Gene Identifier key-value annotation." ^^rdf:HTML ;
2021 sh:prefixes _:sparql_example_prefixes ;
2122 schema:keywords " key-value annotations, uniprot, federated query, proteins" ;
2223 schema:target <http://idr-sparql.uni-muenster.de/qlever/sparql> ;
24+ spex:federatesWith <https://qlever.dev/api/uniprot> ;
2325 sh:select """
2426 PREFIX owl: <http://www.w3.org/2002/07/owl#>
2527 PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
@@ -36,19 +38,19 @@ ex:002 a sh:SPARQLExecutable, sh:SPARQLSelectExecutable ;
3638 PREFIX up: <http://purl.uniprot.org/core/>
3739 PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
3840 prefix bgee: <http://purl.uniprot.org/bgee/>
39-
41+
4042 select distinct ?img ?bgee ?up_protein where {
4143 <https://idr.openmicroscopy.org/Project/52>
4244 dcterms:hasPart/dcterms:hasPart ?img .
4345 ?img a omecore:Image ;
4446 omecore:hasAnnotation/omecore:mapEntry [omecore:key ?key; omecore:value ?value] .
4547 filter(?key = "Gene Identifier")
4648 bind(iri(concat(str(bgee:),?value)) as ?bgee) .
47-
49+
4850 SERVICE <https://qlever.dev/api/uniprot> {
4951 ?up_protein a up:Protein ;
5052 up:reviewed true ;
5153 rdfs:seeAlso ?bgee .
5254 }
5355 }
54- """
56+ """ .
0 commit comments