Difference between revisions of "Template:PredicateValue"

From Wikibase Personal data
Jump to navigation Jump to search
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" . }   
 
}
 
}
 
}}
 
}}

Revision as of 08:33, 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" . }  
}

Try it (embedded)