Difference between revisions of "Template:SPARQL"

From matvoc.nims.go.jp
Jump to navigation Jump to search
(Copied from https://www.mediawiki.org/wiki/Template:SPARQL)
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{#tag:syntaxhighlight|{{SPARQLText|query={{{query}}}|extraprefix={{{extraprefix|}}} }}|lang="sparql"}}
 
{{#tag:syntaxhighlight|{{SPARQLText|query={{{query}}}|extraprefix={{{extraprefix|}}} }}|lang="sparql"}}
[{{{endpoint|http://query.wikidata.org/}}}#{{urlencode: {{SPARQLText|query={{{query}}}|extraprefix={{{extraprefix|}}} }}|PATH}}{{#if:{{{namespace|}}}|%20#namespace={{{namespace}}}|}} Try it!]
+
{{Indent|
 +
[{{{endpoint|{{SERVER}}/query}}}#{{urlencode: {{SPARQLText|query={{{query}}}|extraprefix={{{extraprefix|}}} }}|PATH}}{{#if:{{{namespace|}}}|%20#namespace={{{namespace}}}|}} {{emoji|▶️}} Try it! ]  
 +
}}

Latest revision as of 08:09, 22 November 2019

{{{query}}}

▶️ Try it!