Template talk:SPARQL Inline

From Wikidata
Jump to navigation Jump to search

✓ Checked Bug with long queries ?[edit]

I've tried to use SPARQL Inline with a very long query and it seems that the query is broken.

Paris suburb network (query)

Does anyone have a clue?

PAC2 Benoît Prieur John Samuel (talk) Jheald (talk) Lectrician1 Patsagorn Y. push-f

Notified participants of WikiProject Templates

PAC2 (talk) 05:19, 20 June 2022 (UTC)[reply]

I've the same problem with {{SPARQL}}
#title: Map of Paris Métro
#defaultView:Map{"hide":["?coords", "?line","?rgb"]}
#Metro system search
SELECT ?station ?stationLabel ?subwayLine ?coords ?line ?line_number ?layer ?rgb WHERE {
  VALUES ?search {
    wd:Q50716
  }
  ?search wdt:P527 ?lignes.
  ?lignes wdt:P5817 wd:Q55654238;
    wdt:P559 ?termini.
  ?station (wdt:P31/(wdt:P279*)) wd:Q928830;
    wdt:P5817 wd:Q55654238;
    (wdt:P361|wdt:P16) ?search;
    wdt:P625 ?coords;
    (wdt:P81|wdt:P1192) ?subwayLine;
    wdt:P197 ?pred.
  ?pred wdt:P625 ?coords_pred;
    (wdt:P81|wdt:P1192) ?subwayLine_pred.
  ?station p:P197 _:b1.
  _:b1 ps:P197 ?pred;
    pq:P5051 ?towards;
    (pq:P81
Map of Paris Métro
PAC2 (talk) 05:24, 20 June 2022 (UTC)[reply]
✓ Checked Problem solved : this is due to pipe ("|") which should be replaced with {{!}}. PAC2 (talk) 19:51, 20 June 2022 (UTC)[reply]