Difference between revisions of "Template:PredicateValue"

From Wikibase Personal data
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{SPARQL|query=
 
{{SPARQL|query=
 
SELECT ?item ?itemLabel WHERE {
 
SELECT ?item ?itemLabel WHERE {
   ?item {{{predicate}}} {{{value}}}.
+
   ?item pdiot:{{{predicate}}} pdio:{{{value}}}.
 
   SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }   
 
   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)