[09:50:11] Tpt[m]: https://association.dissem.in/files/grue_blue_hres.png [10:03:16] SMalyshev: why do I have to change all of the URIs / URLs in the wdqs java stuff pre build? :( [10:03:30] it would be super cool to be able to build and then pass in a config or a bunch of params! [10:04:23] Is anyone planning to land https://gerrit.wikimedia.org/r/#/c/350378/ or should I? [10:10:46] ooooh wait WIKIBASE_HOST_PROPERTY [13:08:39] frimelle: http://tinyurl.com/lqca9sl (26 seconds, so get it while it’s cached ;) ) [13:09:33] that might be the SQL-iest SPARQL I’ve ever written – the main part (outside of the subqueries) is exactly a JOIN [13:10:34] frimelle: slight improvement – http://tinyurl.com/k6er3oy (we can use the label service!) [14:28:17] Tpt[m]: https://association.dissem.in/files/grue_blue_120.png [14:44:50] SMalyshev: So (background) I was trying to setup the individual wdqs components in containers, and it seemed to go fairly well, just got stuck on the updater [14:45:05] I'll have to get you to take a look at it and see if you have seen the error before [14:45:29] (I assume this is just a log dir i need to make) OpenJDK 64-Bit Server VM warning: Cannot open file /var/log/wdqs/wdqs-updater_jvm_gc.pid7.log due to No such file or directory [14:45:37] but then... [14:45:39] Error opening zip file or JAR manifest missing : lib/jolokia-jvm-1.3.1-agent.jar [14:45:42] Error occurred during initialization of VM [14:45:46] agent library failed to init: instrument [14:45:48] :D [15:47:30] addshore: looks like that jar is missing? [15:48:36] where should that jar be? :P [15:50:19] in lib/ [15:50:55] hmmm, there is no lib dir at all in the wikidata-query-rdf dir [15:53:20] bash-4.3# find -follow |grep jolokia [15:53:20] ./dist/src/script/jolokia.sh [15:53:40] addshore: ok, what are you looking at? source, build? [15:53:44] deploy repo? [15:54:00] so I cloned "wikidata-query-rdf" and did the mvn install [15:54:15] the query service itself seems to be working fine, but the updater doesnt seem to be [15:55:01] addshore: ok, after mvn install, what did you do? [15:55:08] *looks* [15:55:17] mvn sortpom:sort [15:55:31] I did the install with "mvn install -DskipTests=true" [15:55:44] ok and then? [15:55:51] and then /wikidata-query-rdf/dist/src/script/runUpdate.sh -h $QUERY_SERVICE_BACKEND -- \""-DwikibaseHost=$WIKIBASE_HOSTNAME\"" [15:56:05] that probably won't work [15:56:09] well, actually I echo that command into another shell script and then run it [15:56:11] ahhhh, okay [15:56:12] src scripts are not for running [15:56:23] go to dist/target and see service zip [15:56:27] Ahhhhhhhhhh, I blame tarrow [15:56:41] that would have all the built components [15:56:42] Okay! thanks! I'll take another look tommorrow :D [15:57:18] addshore: note however the gui is right now messed up in zip, so if you want it take it from deploy repo for now [15:57:28] or from source and build it with grunt build [15:58:44] I have the gui in a separate container! [16:00:13] I hope I can get all of this working and I'll show you some time! [16:06:51] addshore: great [16:19:58] SMalyshev: When do you plan to do the re-import for the query service? [16:20:59] The identifier purge run is still running. Would be nice to catch that data too [16:21:25] multichill: probably in a couple of weeks, depends on when sitelink encoding patch gets merged [16:21:37] after it's merged we need new dump, and then we can start reloading [16:22:12] ok, so I still have plenty of time :-) [16:22:41] yeah it needs to be merged, deployed and then dumo generated [16:22:44] *dump [17:13:31] SMalyshev: Only 9298180 items left to purge :P [19:05:32] prtksxna: I have set the 'parent organization' for a bunch of research institutes. But, when I query for the 'subsidary' for that organization I don't get any results :( Do I need to add both aspects of an inverse relationship? [19:06:01] Wow, I am literally talking to myself. I should sleep :( [19:27:37] prtksxna: You have to do it yourself [19:27:47] We don't have any automated reasoning [19:28:11] multichill: Hm. Thanks. [19:28:17] multichill: Are there bots that do this though? [19:28:22] Both are triples so you can query it with just having one direction [19:28:30] Do you have an example item? [19:28:40] Is there a way to find out what an objects ID is from another wiki if I know the name? [19:29:08] Probably yes TheDaveRoss, do you have a link to an example? [19:30:18] for instance, if I have the language "English" and want to get the id Q182 (https://www.wikidata.org/wiki/Q182) [19:30:24] multichill: http://tinyurl.com/ludcm4p [19:32:22] TheDaveRoss: https://en.wikipedia.org/wiki/English contains a link to Wikidata on the left toolbar. [19:33:40] I mean, if I am writing a module that takes a piece of information (like "English") and need to find out a related piece of information which is stored on Wikidata, how would I do that [19:33:58] I assumed it would involve getting the ID of the object and then getting the attribute from that [19:35:02] You can ask the api all sorts of things Dave, but I don't yet understand fully what you're trying to achieve so not sure in what direction I should point you [19:35:29] multichill: Or this https://angryloki.github.io/wikidata-graph-builder/?property=P355&item=Q4158548 [19:35:36] prtksxna: You have to manyally add those [19:35:48] multichill: I did :) [19:36:20] Thanks multichill o/ [19:36:51] prtksxna: You can use quick-statements to do it fast [19:38:16] can you make API calls to wikidata from modules on mediawiki? [19:38:47] If with modules you mean LUA modules, yes [19:39:04] interesting, is there a page about that I can read somewhere? [19:41:32] TheDaveRoss: https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua & https://www.wikidata.org/wiki/Module:Wikidata for starters [19:41:49] but Wikibase is not installed on Wikimedia wikis, right? [19:42:40] It's different parts. The client parts is on almost every project these days [19:44:32] as far as I could tell the wikibase stuff which allows for searching for an entity on Wikidata is not installed on Wikimedia wikis [19:44:42] and I couldn't find anything about the API [19:45:53] I gave you some pointers, but if you're not able to clearly explain what you're trying to do, I can't help you [19:48:12] I am trying to, from a Lua module on a Wikimedia wiki, find out the object id (e.g. Q1860) of a Wikidata object from some other known properties (e.g. ISO Code 639-1 'en') [19:49:00] Wikibase does not appear to be installed [19:50:40] Have a look at https://en.wikipedia.org/w/index.php?title=MediaWiki:Wdsearch.js [19:50:48] It's not LUA, but client side Javascript [19:51:15] that won't do it, it has to be on the wiki [19:51:31] It extends your search to also search Wikidata. It's available as a gadget on Commons [19:52:31] I am not trying to find it for the sake of finding it, I am trying to make use of Wikidata data on the local wiki [19:53:02] for instance, we have a module which translates an ISO 639 code into a language name [19:53:18] Wikidata could replace the giant flat-file modules we use currently to look that up [19:53:39] but I need to be able to query Wikidata in some way in order to get from 'en' to 'English [19:54:01] and that has to be within a module to be used in a template