Vorlage:SPARQL: Unterschied zwischen den Versionen

Aus Architektursammlung
Zur Navigation springen Zur Suche springen
(from https://www.wikidata.org/wiki/Template:SPARQL)
Markierung: Quelltext-Bearbeitung 2017
 
Keine Bearbeitungszusammenfassung
Markierung: Quelltext-Bearbeitung 2017
 
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<onlyinclude><!--
<onlyinclude><!--
--><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}}"><!--


     --><div {{#switch: {{{state|}}} | collapsed = class="mw-collapsible mw-collapsed" | expanded = class="mw-collapsible" }} ><!--
     --><div {{#switch: {{{state|}}} | collapsed = class="mw-collapsible mw-collapsed" | expanded = class="mw-collapsible" }} ><!--
         -->{{#tag:syntaxhighlight|{{SPARQLText|p={{{p|}}}|q={{{q|}}}|v={{{v|}}}|query={{#invoke:ConcatArgs|ConcatArgs|init=query|min=1}}|extraprefix={{{extraprefix|}}} }}|lang="sparql"|highlight="{{{highlight|}}}"}}<!--
         -->{{#tag:pre|{{SPARQLText|p={{{p|}}}|q={{{q|}}}|v={{{v|}}}|query={{#invoke:ConcatArgs|ConcatArgs|init=query|min=1}}|extraprefix={{{extraprefix|}}} }}|lang="sparql"|highlight="{{{highlight|}}}"}}<!--
     --></div><!--
     --></div><!--
   
   
     # the link URL
     # the link URL
     -->[{{#switch:{{{project|wd}}}|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|wd}}}|wd=//query.architektursammlungen.tibwiki.io/|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.cs.uni-freiburg.de/wikidata/|sdc=//https://qlever.cs.uni-freiburg.de/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
    -->{{#if: {{{shortURL|}}} | (<nowiki />https://w.wiki/{{{shortURL}}}<nowiki />) }}<!--


# close outer div
# close outer div
--></div></onlyinclude>
--></div></onlyinclude>
<noinclude>
{{Documentation}}
</noinclude>

Aktuelle Version vom 18. November 2025, 09:49 Uhr