Template:SPARQL2: Difference between revisions

From Latimer Core
Jump to navigation Jump to search
(Created page with "{{SPARQL2/doc}} <onlyinclude>{{Clear}}{{#ifeq:{{{nohints|}}}|{{{nohints}}}| <!--hidden hints--> | {{TranslateThis<!-- -->|ar=يستخدم الاستعلام التال...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 29: Line 29:
min-width: 20em;"}}
min-width: 20em;"}}
<!--
<!--
--><div class="displayonly">[https://tdwg-cd.wiki.opencura.com/query/#{{urlencode:{{SPARQLText|query={{{query}}}|extraprefix={{{extraprefix|}}} }} | PATH }}  {{Int try it}}]</div>{{Clear}}</onlyinclude><noinclude>
--><div class="displayonly">[https://latimer-core.wikibase.cloud/query/#{{urlencode:{{SPARQLText|query={{{query}}}|extraprefix={{{extraprefix|}}} }} | PATH }}  {{Int try it}}]</div>{{Clear}}</onlyinclude><noinclude>
<templatedata>
<templatedata>
{
{

Latest revision as of 14:36, 28 October 2023

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