[09:15:51] Reminder: the wikis will be in read-only mode today for 30 minutes, starting at 14:00 UTC. https://meta.wikimedia.org/wiki/Tech/Server_switch_2017 [11:22:28] Hello. I am trying to make a SPARQL query via HTTP POST, but it is failing with 405 error. Is phab:T112151 broken again or I am doing something wrong? Can anyone help? [11:22:30] T112151: Support POST for SPARQL query endpoint - https://phabricator.wikimedia.org/T112151 [11:35:52] Vort: are you including query= in the POST body? [11:36:10] with that, it works for me – without it, I get the same error [11:40:19] Lucas_WMDE: here is my query: https://s8.hostingkartinok.com/uploads/images/2017/05/de0ece539eb6f98049d5ff990459ba68.png [11:40:33] Lucas_WMDE: I will try to add query= now [11:58:43] Lucas_WMDE: with query= in body nothing changes, 405 error [11:59:09] Lucas_WMDE: with ?query= in url -> java.util.concurrent.ExecutionException: org.openrdf.query.MalformedQueryException: Encountered "" at line 1, column 0. [11:59:36] Vort: strange, this works for me: [11:59:37] curl -i -d@- https://query.wikidata.org/bigdata/namespace/wdq/sparql <<< 'query=SELECT (1 AS ?x) WHERE {}' [11:59:54] perhaps your query contains '&' characters and you need to escape them? [12:02:28] Lucas_WMDE: new screenshot: https://s8.hostingkartinok.com/uploads/images/2017/05/103719c1d0c18406a6221d12b7edc9b6.png [12:07:27] Vort: strange, I copied that request and don’t get that error [12:11:24] maybe different protocols matters? HTTP 1.1 vs HTTP 2 [12:12:04] no, I’m using 1.1 too [12:14:56] looks like content-type matters [12:21:38] Lucas_WMDE: yes, "content-type: application/x-www-form-urlencoded" solves the problem, thanks [12:22:10] okay, great [14:09:28] The wikis are in read-only mode for 30 minutes. https://meta.wikimedia.org/wiki/Tech/Server_switch_2017 [15:38:21] *sobs softly* after a week preparing a blog post on why french communes are not P131 french cantons, and adding P131 french departements everywhere, i have to redo it again because some people removed those statements on over 1000 communes :-( [15:39:23] will it be in english? [15:40:45] it's been published last summer already https://wordpress.alphos.fr/2016/08/05/874/communes-orphelines/ [15:41:06] i'm afraid it was a little too verbose and french-centered to be translated ^^' [15:41:41] Cantons and departements at the same time on a item are confusing, though. [15:42:04] yes, that's why i suggested two new properties, one generic and one specific [15:42:11] the generic was accepted, not the specific [15:42:26] so i've been kinda reluctant to add the generic [15:42:56] both properties are about geographic overlap, with the specific one adding semantics [15:43:01] Mmmm [15:43:19] (namely that a canton IS/WAS indeed a canton overlapping the commune) [15:44:07] weirdly enough, it was rejected by people who didn't see how it would be useful - most of them not french, and most of them not geographs or territorial administrative employees [15:44:46] The French situation looks indeed confusing. [15:45:22] let me explain [15:45:28] communes are grouped into departements [15:45:49] departements are in turn divided into one or more arrondissements, themselves divided into one or more cantons [15:46:07] most arrondissements and most cantons follow communes boundaries, but not all of them [15:46:39] and communes are not distributed into arrondissements or cantons [15:46:59] even though most communes are in one canton and thus in one arrondissement [15:47:42] so for instance, first image in my blog post, one canton (plœmeur), three communes (ploemeur, larmor-plage, quéven) [15:48:17] second image : one commune (aix-en-provence) entirely comprisING two cantons (aix 1, aix2) [15:48:25] third image is fun [15:48:59] two communes, and a canton with parts of each, but no commune is entirely in the canton and the canton isn't entirely in a commune [15:49:36] so they're often physically located in a particular canton/arrondissement, but they're not administratively within them? [15:49:59] nikki definitely not administratively within : cantons aren't administrative subdivisions anymore [15:50:04] only electoral [15:50:13] yeah I heard it was changed [15:50:14] they don't have an administration [15:50:28] you heard canton boundaries were changed [15:50:31] that happened in 2015 [15:50:42] but cantons were purely administrative for a long time [15:51:40] everything has been devolved to the departement (and arrondissement, but arrondissements defer to their departement for everything, they don't have an administrative structure attached, only a line of departemental budget) [15:53:53] simply put, there has to be a representation of the departement in every arrondissement, but it's just a service of the departement, and it's paid by the departement [15:54:07] as far as cantons are concerned : ¯\_(ツ)_/¯ [19:22:08] oh boy -_-" [19:22:45] i was wondering why i got false positives. turns out someone thought it would be smart to add a preferred rank to some statements, but not others [19:32:54] preferred ranks are evil [19:34:02] please don't be mean with evil, evil has done NOTHING to you ! :-( [19:34:13] ^ this [19:35:42] so tonight, trying to get rid of two issues [19:36:17] 1) someone removed the P131: i added last august from some communes, which is erroneous [19:36:41] 2) someone else added ranks to P131: [19:37:10] you'll be happy to know i'm planning to remove P131: from all communes, and replace those statements with P3179 instead [19:37:27] communes P131:, always, and nothing else [19:37:47] why somebody should add ranks to cantons? :S [19:37:57] BECAUSE REASONS obviously :/ [19:43:37] when i noticed the false positives, my reaction was https://www.youtube.com/watch?v=rwQaBLyG7S8 ^^' [19:47:33] https://www.wikidata.org/w/index.php?title=Q841802&action=history OH MY GOD >_< [21:09:08] i'm not entirely sure why so many people from russia and bielorussia are so keen on removing a few P131:département here and there, but it's predominantly them [21:09:26] people from eowiki tend to add ranks to cantons, for some reason [21:10:29] with one person from russia also sometimes adding the old canton and removing the new one -_-" [21:37:09] done ! next step : replacing P131 by P3179 for cantons on all communes. oh, blessed day -_-"