On 4/23/15 5:39 PM, Nicola Vitucci wrote:
Il 23/04/2015 23:22, Kingsley Idehen ha scritto:
On 4/23/15 2:01 PM, Kingsley Idehen wrote:
On 4/23/15 1:02 PM, Nicola Vitucci wrote:
>Il 23/04/2015 18:36, Gerard Meijssen ha scritto: >>>> >Hoi, >>>> >Do I understand correctly that you cannot have results showing labels >>>> >for a given languages? >>>> >Thanks, >>>> > GerardM >>>> > >Hi Gerard, > >what do you mean? Are you looking for something like this? > >http://wikisparql.org/sparql?query=PREFIX+wd%3A+%3Chttp%3A%2F%2Fwww.wikidata... > > >(The chosen language is Spanish) > >Nicola
Do you not have a URL parameter that resolves to the query source?
Example: http://milenio.dcc.uchile.cl/sparql?default-graph-uri=&qtxt=PREFIX+wd:+%...
+and+mayor:%0D%0A++OPTIONAL+%7B%0D%0A++++%3Fcity+wd:P373s/wd:P373v+%3Fcitylabel+.%0D%0A++++%23+FILTER+(+LANG(%3Fcitylabel)+%3D+%22en%22+)%0D%0A++%7D%0D%0A++OPTIONAL+%7B%0D%0A++++%3Fmayor+wd:P373s/wd:P373v+%3Fmayorlabel+.%0D%0A++++%23+FILTER+(+LANG(%3Fmayorlabel)+%3D+%22en%22+)%0D%0A++%7D%0D%0A%0D%0A%7D+ORDER+BY+DESC(%3Fpopulation)+LIMIT+100&format=text/html&CXML_redir_for_subjs=121&CXML_redir_for_hrefs=&timeout=30000&debug=on
If not, please paste the query source in a reply.
Here's what I mean:
Your Query, but via the SPARQL endpoint at: http://milenio.dcc.uchile.cl/sparql, which produces this SPARQL Query Results URL :
http://milenio.dcc.uchile.cl/sparql?default-graph-uri=&query=%0D%0APREFI...
Query Definition URL: http://milenio.dcc.uchile.cl/sparql?default-graph-uri=&qtxt=%0D%0APREFIX...
For the results using English labels (@en tag) you have query result:
http://milenio.dcc.uchile.cl/sparql?default-graph-uri=&query=PREFIX+wd%3...
And query definition:
http://milenio.dcc.uchile.cl/sparql?default-graph-uri=&qtxt=PREFIX+wd%3A...
Key thing here is that anyone is a click away from learning SPARQL by way of example, across various SPARQL endpoints:)
Aha, I see your point, good that you mentioned that. I'll work on it and, as I said in my reply to Jeremy, I'm working on a way to also let a user choose the endpoint and maybe compare the results across endpoints.
Nicola
Excellent idea!