Skip to content

Commit 7bde1b3

Browse files
committed
syntax fixes
1 parent 5d76a8a commit 7bde1b3

2 files changed

Lines changed: 21 additions & 19 deletions

File tree

examples/IDR/002--idr-uniprot.ttl

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
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

1819
ex: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+
""" .

examples/IDR/007-image-keys-usage.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@prefix xml: <http://www.w3.org/XML/1998/namespace/> .
1515
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
1616

17-
ex:003 a sh:SPARQLExecutable, sh:SPARQLSelectExecutable ;
17+
ex:007 a sh:SPARQLExecutable, sh:SPARQLSelectExecutable ;
1818
rdfs:comment "Image map annotation keys and usage counts"^^rdf:HTML ;
1919
sh:prefixes _:sparql_example_prefixes ;
2020
schema:keywords "image, mapAnnotation, key, unique, count" ;

0 commit comments

Comments
 (0)