Template

Template:TablePreview

{{{pagetitle}}}
{{{desc}}}


Usage

  • pagetitle: A regular title or the internal link to a page
  • code: The SPARQL query


{{TablePreview|pagetitle=[[Feature_Demo]]
|desc=
This page gives a couple of examples of what the graph can do. 
|code=
#defaultView:Graph
PREFIX wd: <https://graphit.ur.de/entity/>
PREFIX wdt: <https://graphit.ur.de/prop/direct/>
SELECT ?resource ?resourceLabel ?item ?itemLabel ?image WHERE {
  ?item wdt:P21 ?resource
  VALUES ?item {wd:Q108}
  OPTIONAL{ ?item wdt:P11 ?image.}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
}}