query-7dd4e0f80d9afa2762f35273ac92f89e

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?statement WHERE {
  ?item p:P102 ?statement.
  ?statement ps:P102 ?party;
    wikibase:rank ?rank.
  # has start time but not end time
  ?statement pq:P580 ?starttime.
  FILTER NOT EXISTS {
    ?statement pq:P582 ?endtime.
  }
  FILTER(?rank = wikibase:NormalRank).
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
LIMIT 10

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?endtime") v4("?item") v5("?party") v1("?rank") v6("?starttime") v2("?statement"):::projected c8(["bd:serviceParam"]):::iri c10(["en"]):::literal f0[["?rank = 'wikibase:NormalRank'"]] f0 --> v1 f1[["not "]] subgraph f1e0["Exists Clause"] e0v1 --"p:qualifier/P582"--> e0v2 e0v2("?endtime"):::projected e0v1("?statement"):::projected end f1--EXISTS--> f1e0 f1 --> v2 f1 --> c2 f1 --> v3 v2 --"p:qualifier/P582"--> v3 v4 --"p:P102"--> v2 v2 --"p:statement/P102"--> v5 v2 --"wikibase:rank"--> v1 v2 --"p:qualifier/P580"--> v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end