query-c3e9090d49a592a65cc3024dc09fdb26

rq turtle/ttl

France . File:Chronologie constitutions françaises.svgLooking at regimes and Constitutions of France for I am not getting some regimes has start and end times rather than inception. Add inception. Start time same as Third Republic! has country instance of Government rather than regime. Added republic regime in France. (after Second Empire) (Q2358315)Government of National Defense Government of National Defense, has inception and abolished has country subclass! instead of instance of republic regime in France. Fixed. (after July Monarchy) (Q58326)French Second Republic Second Republic, start and end times instead of inception! no country! instance of regime (after First Restoration) (Q199955)Hundred Days Hundred Days, historical country is preferred over republic regime of France; lower to normal rank and try again. That worked! has abolished P576 has inception P571; should work country is France; should work republic regime in France (Q17152708) is a subclass of regime; has dates; should work (Q70802)French Third Republic French Third Republic, has abolished has inception !(Q58296)French First Republic has country (Q219817)French Directory Directory, uses start time and end time no country not a regime (replaced by National Convention!) (Q780457)Legislative Assembly Legislative Assembly, no abolish has inception (Q70972)Kingdom of France country not a regime (Q876424)National Constituent Assembly National Constitutent Assembly,

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?regime ?regimeLabel ?date ?fini ?pred ?predLabel ?succ ?succLabel
{
  # instance of a regime
  # republic regime in France (Q17152708) might be better but few use it
  # some also use provisional government that is a subclass of regime
  ?regime wdt:P31/wdt:P279* wd:Q5589178 .

  # country is France
  # country is not quite right. some regimes do not use France
  ?regime wdt:P17 wd:Q142 .

  # date of inception
  # some use start date
  ?regime wdt:P571 ?date .

  optional {
    # abolished
    # some use end date
    ?regime wdt:P576 ?fini .

    # these are very confused because they address different territories
    # ?regime wdt:P155 ?pred .
    # ?regime wdt:P156 ?succ .
  }

  SERVICE wikibase:label {
     bd:serviceParam wikibase:language "en" .
  }

} ORDER BY ?date

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?date"):::projected v3("?fini"):::projected v2("?regime"):::projected a1((" ")) c9(["bd:serviceParam"]):::iri c3(["wd:Q5589178"]):::iri c11(["en"]):::literal c5(["wd:Q142"]):::iri v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v2 --"wdt:P17"--> c5 v2 --"wdt:P571"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P576".-> v3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end