Item talk:Q1308

From Wikibase Personal data
Jump to navigation Jump to search
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 ?dsLabel ?target ?targetLabel ?event ?eventLabel ?date ?comment WHERE {
  ?item pdiot:P3 pdio:Q1308.
  OPTIONAL {?item pdiot:P229 ?ds.}
  OPTIONAL {?item pdiot:P99 ?target.}
  OPTIONAL {
    ?item pdiop:P136 ?eventStatement.
    ?eventStatement pdiops:P136 ?event.
    OPTIONAL {?eventStatement pdiopq:P100 ?date}.
    OPTIONAL {?eventStatement pdiopq:P126 ?comment}.
  }
  SERVICE wikibase:label {bd:serviceParam wikibase:language "en" . }
}
ORDER BY DESC(?date)

Try it (embedded)