Sandbox: Difference between revisions

(Test)
(test for personalized query)
Line 1: Line 1:
{{#username:alt}} test
{{#username:Max Mustermann}} test


{{#widget:SPARQLquery|code=
{{#widget:SPARQLquery|code=
#defaultView:Graph
#defaultView:Graph
PREFIX grt: <https://graphit.ur.de/prop/direct/>
PREFIX wdt: <https://graphit.ur.de/prop/direct/>
SELECT ?item ?itemLabel ?class ?classLabel ?image ?dependency ?dependencyLabel WHERE {
PREFIX wd: <https://graphit.ur.de/entity/>
   ?item grt:P1 ?dependency.
select distinct ?user ?userLabel ?interest ?interestLabel
  ?item grt:P2 ?class # {{#username:alt}}  
Where {
  OPTIONAL{ ?item grt:P9 ?image.}
   ?user rdfs:label "{{#username:Max Mustermann}}"@en.
   OPTIONAL{ ?class grt:P9 ?image.}
   ?user wdt:P23 ?interest.
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
   service wikibase:label { bd:serviceParam wikibase:language "en" }
}
}
|caption=All dependencies on this platform. {{#username:alt}}  
|caption= All items {{#username:Max Mustermann}} is interested in.
}}
}}

Revision as of 10:00, 9 October 2023

Max Mustermann test

All items Max Mustermann is interested in.