Template:SPARQL2: Difference between revisions

From TDWG Collection Description
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{SPARQL2/doc}}
{{SPARQL2/doc}}
<onlyinclude>{{Clear}}{{#ifeq:{{{nohints|}}}|{{{nohints}}}| <!--hidden hints--> | {{TranslateThis<!--
<onlyinclude>{{Clear}}{{#ifeq:{{{nohints|}}}|{{{nohints}}}| <!--hidden hints--> | {{TranslateThis<!--
      -->|ar=يستخدم الاستعلام التالي هذه:<!--
      -->|de=Die Suchanfrage verwendet:<!--
       -->|en=The following query uses these:<!--
       -->|en=The following query uses these:<!--
       -->|en-gb=The following query uses these:<!--
       -->|en-gb=The following query uses these:<!--
      -->|el=Το ακόλουθο ερώτημα χρησιμοποιεί αυτά:<!--
      -->|es=La siguiente consulta utiliza lo siguiente:<!--
      -->|fr=La requête suivante utilise ces :<!--
      -->|hu=Ez a lekérdezés a következőket használja:<!--
      -->|it=La seguente query utilizza questi:<!--
      -->|nl=Deze query gebruikt:<!--
      -->|pl=To zapytanie używa:<!--
      -->|ru=Этот запрос использует:<!--
      -->|uk=Цей запит використовує:<!--
-->}}<!--
-->}}<!--
-->{{ItemOrNot|{{Capitalize|{{int items}}}}|{{#invoke:SPARQLMentions|getItems|{{{query}}} }} }}
-->{{ItemOrNot|{{Capitalize|{{int items}}}}|{{#invoke:SPARQLMentions|getItems|{{{query}}} }} }}

Revision as of 15:22, 12 May 2020

Template:SPARQL2/doc

The following query uses these:

{{{query}}}

This template displays SPARQL query with syntax highlighting, used items and link to WDQS query site to run the query. TODO: used items labels are not localized

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
queryquery sparql

SPARQL query

Example
SELECT * WHERE { ?x wdt:P31 wd:Q5 } LIMIT 1
Stringrequired
extraprefixextraprefix

Extra prefixes to be added

Example
PREFIX wikibase: <http://wikiba.se/ontology#>
Stringoptional