Debian Codegraph @

tests/federation.md

raw
1 # Federated query to rdflib-endpoint
2
3 To test it locally start the docker compose stack in this folder
4
5 ## Test locally
6
7 Need to use the host from the docker network:
8
9 ```sparql
10 SELECT * WHERE {
11 SERVICE <http://rdflib-endpoint/> {
12 SELECT ?o WHERE {
13 ?s ?p ?o .
14 }
15 }
16 }
17 ```
18
19 Local with FILTER:
20
21 ```SPARQL
22 SELECT * WHERE {
23 SERVICE <http://rdflib-endpoint/> {
24 SELECT ?o WHERE {
25 VALUES ?s { <http://subject> }
26 ?s ?p ?o .
27 }
28 }
29 }
30 ```
31
32 Test on bioregistry simple:
33
34 ```SPARQL
35 PREFIX owl: <http://www.w3.org/2002/07/owl#>
36 SELECT * WHERE {
37 SERVICE <https://bioregistry.io/sparql> {
38 <http://purl.obolibrary.org/obo/CHEBI_1> owl:sameAs ?o
39 }
40 }
41 ```
42
43 Test on bioregistry with values:
44
45 ```SPARQL
46 PREFIX owl: <http://www.w3.org/2002/07/owl#>
47 SELECT * WHERE {
48 SERVICE <https://bioregistry.io/sparql> {
49 VALUES ?s { <http://purl.obolibrary.org/obo/CHEBI_1> }
50 ?s owl:sameAs ?o
51 }
52 }
53 ```
54
55 ## ✅ Working
56
57 - Qlever: https://qlever.cs.uni-freiburg.de/uniprot/
58 - Virtuoso: if not using VALUES in service call
59 - Oxigraph
60 - GraphDB (fixed at last release)
61 - Blazegraph
62 - Fuseki
63
64 ## ❌ Not working
65
66 - MilleniumDB