Template:SPARQL

{	"params": { "query": { "required": true, "label": "query", "description": "SPARQL query", "example": "SELECT * WHERE { ?x wdt:P31 wd:Q5 } LIMIT 1", "type": "string" },		"extraprefix": { "description": "Extra prefixes to be added", "example": "PREFIX wikibase: ", "type": "string" },		"namespace": { "label": "namespace", "description": "Namespace for query", "example": "categories" },		"endpoint": { "label": "endpoint", "description": "Endpoint for query, if different from the default wikidata one", "example": "https://dcatap.wmflabs.org/", "type": "url" }	},	"description": "This template displays SPARQL query with syntax highlighting, prefixes and link to WDQS beta site to run the query. ", "paramOrder": [ "query", "extraprefix", "namespace", "endpoint" ],	"format": "block" }

[# Try it!]