Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1: −
{{SPARQL|query=SELECT ?item ?itemLabel ?dsLabel ?target ?targetLabel ?event ?eventLabel WHERE {
+
{{SPARQL|query=SELECT ?item ?itemLabel ?dsLabel ?target ?targetLabel ?event ?eventLabel ?date ?comment WHERE {
 
   ?item pdiot:P3 pdio:Q1308.
 
   ?item pdiot:P3 pdio:Q1308.
 
   OPTIONAL {?item pdiot:P229 ?ds.}
 
   OPTIONAL {?item pdiot:P229 ?ds.}
 
   OPTIONAL {?item pdiot:P99 ?target.}
 
   OPTIONAL {?item pdiot:P99 ?target.}
   OPTIONAL {?item pdiot:P136 ?event.}
+
   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" . }
 
   SERVICE wikibase:label {bd:serviceParam wikibase:language "en" . }
 
}
 
}
LIMIT 100
+
ORDER BY DESC(?date)
 
}}
 
}}

Navigation menu