Difference between revisions of "Template:PredicateValue"

From Wikibase Personal data
Jump to navigation Jump to search
(Created page with "https://query.personaldata.io/embed.html#PREFIX%20pdio%3A%20%3Chttp%3A%2F%2Fwiki.personaldata.io%2Fentity%2F%3E%0APREFIX%20pdiot%3A%20%3Chttp%3A%2F%2Fwiki.personaldata.io%2Fpr...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
https://query.personaldata.io/embed.html#PREFIX%20pdio%3A%20%3Chttp%3A%2F%2Fwiki.personaldata.io%2Fentity%2F%3E%0APREFIX%20pdiot%3A%20%3Chttp%3A%2F%2Fwiki.personaldata.io%2Fprop%2Fdirect%2F%3E%0A%0ASELECT%20%3Fitem%20%3FitemLabel%20WHERE%20%7B%0A%20%20%3Fitem%20pdiot%3A{{{predicate}}}%20pdio%3A{{{value}}}.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%0A%20%20%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%22%20.%20%0A%20%20%7D%20%20%0AOPTIONAL%20%7B%20%3Fitem%20pdiot%3AP47%20%3F_image.%20%7D%0A%7D%0A
+
{{SPARQL|query=
 +
SELECT ?item ?itemLabel WHERE {
 +
  ?item pdiot:{{{predicate}}} pdio:{{{value}}}.
 +
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" .
 +
}
 +
|label={{{label}}}
 +
}}

Latest revision as of 08:34, 19 December 2019

PREFIX pdio: <https://wiki.personaldata.io/entity/>
PREFIX pdiot: <https://wiki.personaldata.io/prop/direct/>
PREFIX pdiop: <https://wiki.personaldata.io/prop/>
PREFIX pdiops: <https://wiki.personaldata.io/prop/statement/>
PREFIX pdiopq: <https://wiki.personaldata.io/prop/qualifier/>
SELECT ?item ?itemLabel WHERE {
  ?item pdiot:{{{predicate}}} pdio:{{{value}}}.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }  
}

{{{label}}} (embedded)