LinkedDataFragments / Client.js

[DEPRECATED] A JavaScript client for Triple Pattern Fragments interfaces.
http://linkeddatafragments.org/
Other
92 stars 35 forks source link

First page requested twice on CONSTRUCT #32

Closed barthanssens closed 7 years ago

barthanssens commented 7 years ago

Not sure if this a client or server issue, but I've noticed that the demo on http://client.linkeddatafragments.org often (always ?) sends the initial request twice when the query is a CONSTRUCT / LIMIT

E.g. select source "DBpedia 2014", query for ten results using CONSTRUCT WHERE { ?s ?p ?o. } LIMIT 10, execution log shows

Requesting http://fragments.dbpedia.org/2014/en
Requesting http://fragments.dbpedia.org/2014/en 

If the limit is changed to, say, 1000, the following pages (?page=...) are only requested once

Is the client perhaps not aware that the first fragment already contains a paged result ?

RubenVerborgh commented 7 years ago

Hi @barthanssens, the first request is to discover the interface; the second request to get the data. Since in your example, the data is ?s ?p ?o, those fragments are the same; with a more specific query, they will be different requests.

Note that the request will be cached anyway, so it will not actually be sent out twice.

barthanssens commented 7 years ago

Ok, thanks for the info