Template:SPARQL: Difference between revisions

From EChO_IMAGES
Fix project
m try
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<onlyinclude><!--
<onlyinclude><!--


--><templatestyles src="SPARQL/styles.css" /><!--
--><!--<templatestyles src="SPARQL/styles.css" />--><!--


--><div class="wdt-sparql-container {{#if:{{{state|}}}|wdt-sparql-container-collapsible}}"><!--
--><div class="wdt-sparql-container {{#if:{{{state|}}}|wdt-sparql-container-collapsible}}"><!--
Line 10: Line 10:
   
   
     # the link URL
     # the link URL
     -->[{{#switch:{{{project|wb}}}|wb=//https://query.echoimages.labs.wikimedia.pt/|wd=//query.wikidata.org/|sdc=//commons-query.wikimedia.org/|{{{project}}}}}{{#ifeq: {{{embedded|}}} | yes |embed.html | }}#{{urlencode: {{SPARQLText|p={{{p|}}}|q={{{q|}}}|v={{{v|}}}|query={{#invoke:ConcatArgs|ConcatArgs|init=query|min=1}}|extraprefix={{{extraprefix|}}} }} | PATH }} <!--
     -->[{{#switch:{{{project|wb}}}|wb=//query.echoimages.labs.wikimedia.pt/|wd=//query.wikidata.org/|sdc=//commons-query.wikimedia.org/|{{{project}}}}}{{#ifeq: {{{embedded|}}} | yes |embed.html | }}#{{urlencode: {{SPARQLText|p={{{p|}}}|q={{{q|}}}|v={{{v|}}}|query={{#invoke:ConcatArgs|ConcatArgs|init=query|min=1}}|extraprefix={{{extraprefix|}}} }} | PATH }} <!--
      
      
     # the link label
     # the link label
     -->{{{label|{{#if: {{#invoke:SPARQLMentions|getTitle|{{{query}}}}}|{{#invoke:SPARQLMentions|getTitle|{{{query}}}}}|{{int try it}}}}}}}] <!--
     -->{{{label|{{#if: {{#invoke:SPARQLMentions|getTitle|{{{query}}}}}|{{#invoke:SPARQLMentions|getTitle|{{{query}}}}}|{{int try it}}}}}}}] <!--


    # Optional Orb Open Graph link
<!--
  -->{{#if: {{{orb|}}} | ([//try.orbopengraph.com/#{{urlencode: {{#invoke:ConcatArgs|ConcatArgs|init=query|min=1}} | PATH }} Orb Open Graph])}}<!--
   
    # Optional QLever link
    -->{{#if: {{{qlever|}}} | {{#switch:{{{project|wd}}} |wd|sdc=([{{#switch:{{{project|wd}}}|wd=//qlever.dev/wikidata/|sdc=//https://qlever.dev/wikimedia-commons/}}?query={{urlencode:PREFIX wikibase: <http://wikiba.se/ontology#> PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX wd: <http://www.wikidata.org/entity/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> {{SPARQLText|p={{{p|}}}|q={{{q|}}}|v={{{v|}}}|query={{#invoke:ConcatArgs|ConcatArgs|init=query|min=1}}|extraprefix={{{extraprefix|}}} }} | PATH }} QLever]) | (QLever link unavailable for custom project)}}}} <!--
   
    # Optional query-scholarly
    -->{{#if: {{{scholarly|}}} | {{#switch:{{{project|wd}}} |wd|sdc=([{{#switch:{{{project|wd}}}|wd=//query-scholarly.wikidata.org/|sdc=}}#{{urlencode: {{SPARQLText|p={{{p|}}}|q={{{q|}}}|v={{{v|}}}|query={{#invoke:ConcatArgs|ConcatArgs|init=query|min=1}}|extraprefix={{{extraprefix|}}} }} | PATH }} query-scholarly]) | (query-scholarly unavailable for custom project)}}}} <!--


     # add the short url, if any
     # add the short url, if any

Latest revision as of 09:41, 8 June 2026