Skip to content

Commit 6c133ce

Browse files
committed
Increased nginx rate limits
DBpedia and Wikidata included as default SPARQL services
1 parent 264010f commit 6c133ce

3 files changed

Lines changed: 73 additions & 3 deletions

File tree

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ configs:
154154
server varnish-frontend:6060;
155155
}
156156
157-
limit_req_zone $$binary_remote_addr zone=linked_data:10m rate=6r/s;
157+
limit_req_zone $$binary_remote_addr zone=linked_data:10m rate=15r/s;
158158
limit_req_zone $$binary_remote_addr zone=static_files:10m rate=20r/s;
159159
limit_req_status 429;
160160
@@ -173,7 +173,7 @@ configs:
173173
location / {
174174
proxy_pass http://linkeddatahub;
175175
#proxy_cache backcache;
176-
limit_req zone=linked_data burst=20 nodelay;
176+
limit_req zone=linked_data burst=30 nodelay;
177177
178178
proxy_set_header Client-Cert '';
179179
proxy_set_header Client-Cert $$ssl_client_escaped_cert;
@@ -212,7 +212,7 @@ configs:
212212
location / {
213213
proxy_pass http://linkeddatahub;
214214
#proxy_cache backcache;
215-
limit_req zone=linked_data burst=20 nodelay;
215+
limit_req zone=linked_data burst=30 nodelay;
216216
217217
proxy_set_header Client-Cert '';
218218
proxy_set_header Client-Cert $$ssl_client_escaped_cert;

platform/datasets/admin.trig

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
55
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
66
@prefix dh: <https://www.w3.org/ns/ldt/document-hierarchy#> .
7+
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
78
@prefix sp: <http://spinrdf.org/sp#> .
89
@prefix sioc: <http://rdfs.org/sioc/ns#> .
910
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@@ -354,6 +355,40 @@ WHERE
354355

355356
}
356357

358+
<services/dbpedia/>
359+
{
360+
361+
<services/dbpedia/> a dh:Item ;
362+
sioc:has_container <queries/> ;
363+
dct:title "DBPedia" ;
364+
foaf:primaryTopic <services/dbpedia/#this> .
365+
366+
<services/dbpedia/#this>
367+
a sd:Service ;
368+
dct:title "DBPedia" ;
369+
dct:description "Public SPARQL endpoint providing access to the DBpedia knowledge base, a crowd-sourced community effort to extract structured information from Wikipedia and make this information available on the Web." ;
370+
sd:endpoint <https://dbpedia.org/sparql> ;
371+
sd:supportedLanguage sd:SPARQL11Query .
372+
373+
}
374+
375+
<services/wikidata/>
376+
{
377+
378+
<services/wikidata/> a dh:Item ;
379+
sioc:has_container <queries/> ;
380+
dct:title "Wikidata" ;
381+
foaf:primaryTopic <services/wikidata/#this> .
382+
383+
<services/wikidata/#this>
384+
a sd:Service ;
385+
dct:title "Wikidata" ;
386+
dct:description "Public SPARQL endpoint providing access to Wikidata, a free and open knowledge base that acts as central storage for the structured data of Wikimedia projects including Wikipedia, Wikivoyage, Wiktionary, Wikisource, and others." ;
387+
sd:endpoint <https://query.wikidata.org/sparql> ;
388+
sd:supportedLanguage sd:SPARQL11Query .
389+
390+
}
391+
357392
### ADMIN-SPECIFIC
358393

359394
@prefix ns: <../ns#> .

platform/datasets/end-user.trig

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
55
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
66
@prefix dh: <https://www.w3.org/ns/ldt/document-hierarchy#> .
7+
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
78
@prefix sp: <http://spinrdf.org/sp#> .
89
@prefix sioc: <http://rdfs.org/sioc/ns#> .
910
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@@ -353,3 +354,37 @@ WHERE
353354
}""" .
354355

355356
}
357+
358+
<services/dbpedia/>
359+
{
360+
361+
<services/dbpedia/> a dh:Item ;
362+
sioc:has_container <queries/> ;
363+
dct:title "DBPedia" ;
364+
foaf:primaryTopic <services/dbpedia/#this> .
365+
366+
<services/dbpedia/#this>
367+
a sd:Service ;
368+
dct:title "DBPedia" ;
369+
dct:description "Public SPARQL endpoint providing access to the DBpedia knowledge base, a crowd-sourced community effort to extract structured information from Wikipedia and make this information available on the Web." ;
370+
sd:endpoint <https://dbpedia.org/sparql> ;
371+
sd:supportedLanguage sd:SPARQL11Query .
372+
373+
}
374+
375+
<services/wikidata/>
376+
{
377+
378+
<services/wikidata/> a dh:Item ;
379+
sioc:has_container <queries/> ;
380+
dct:title "Wikidata" ;
381+
foaf:primaryTopic <services/wikidata/#this> .
382+
383+
<services/wikidata/#this>
384+
a sd:Service ;
385+
dct:title "Wikidata" ;
386+
dct:description "Public SPARQL endpoint providing access to Wikidata, a free and open knowledge base that acts as central storage for the structured data of Wikimedia projects including Wikipedia, Wikivoyage, Wiktionary, Wikisource, and others." ;
387+
sd:endpoint <https://query.wikidata.org/sparql> ;
388+
sd:supportedLanguage sd:SPARQL11Query .
389+
390+
}

0 commit comments

Comments
 (0)