[Wikidata-tech] Re: From JSON to RDF dumps

2024-02-25 Thread Antonin Delpeuch (lists)
Hi all, The Wikidata-Toolkit Java library has been doing that for a while, but I think there has been some changes in the RDF format that have not been reflected in Wikidata-Toolkit yet. https://github.com/Wikidata/Wikidata-Toolkit/ There is an example Java application taking a JSON dump and

[Wikidata-tech] Re: Request to whitelist domain for CORS

2023-04-02 Thread Antonin Delpeuch (lists)
Hi, If you are only fetching data via the API, then you should only be making GET requests, right? In that case, did you try setting the "origin=*" GET parameter? That should be enough to set the appropriate CORS headers on the response. See: https://www.mediawiki.org/wiki/API:Cross-site_req

[Wikidata-tech] Re: Cirrus Search on Wikidata

2021-08-15 Thread Antonin Delpeuch (lists)
ricator Advanced Search to say, only > those after the date of Stas' post. > > Thad > https://www.linkedin.com/in/thadguidry/ > <https://www.linkedin.com/in/thadguidry/> > https://calendly.com/thadguidry/ <https://calendly.com/thadguidry/> > > > On Sun, Aug 15,

[Wikidata-tech] Re: Cirrus Search on Wikidata

2021-08-14 Thread Antonin Delpeuch (lists)
Hi Thad, This suggestion box does not use ElasticSearch, it uses a simple prefix search on labels and aliases, run directly against the SQL database, I think. ElasticSearch is only used when you go to Special:Search. Best, Antonin On 15/08/2021 04:25, Thad Guidry wrote: > I thought that "," com

[Wikidata-tech] Best practices to poll the recent changes feed

2020-05-06 Thread Antonin Delpeuch (lists)
Hi, I wonder if there is any guidance about how to poll the recent changes feed of a MediaWiki instance (in particular of a Wikibase one) to keep up with its stream of edits? In particular, how to do this responsibly (without hammering the server) and how to ensure that all changes are seen by the

Re: [Wikidata-tech] Improved edit summaries for edits coming from wbeditentity API

2019-10-11 Thread Antonin Delpeuch (lists)
On 11/10/2019 16:11, Lydia Pintscher wrote: > We hadn't looked at edits other than terms as part of the change but > it's something I agree we should have. I'll bump it up and see what we > can do. Awesome! I understand that this might require complicated refactoring on your side, it's probably ea

Re: [Wikidata-tech] Improved edit summaries for edits coming from wbeditentity API

2019-10-03 Thread Antonin Delpeuch (lists)
In Phabricator terms, this corresponds to the following tickets: https://phabricator.wikimedia.org/T191885 https://phabricator.wikimedia.org/T67846 Antonin On 02/10/2019 09:52, Antonin Delpeuch (lists) wrote: > Hi Léa, > > Sorry, my question was not very clear. Let us take the e

Re: [Wikidata-tech] Improved edit summaries for edits coming from wbeditentity API

2019-10-02 Thread Antonin Delpeuch (lists)
gt; : > # Does that answer your question or did you mean something else? :) > # Cheers, > # Léa > > On Mon, 30 Sep 2019 at 16:23, Antonin Delpeuch (lists) > mailto:li...@antonin.delpeuch.eu>> wrote: > > This is great news! Thank you so much for working on this!

Re: [Wikidata-tech] Improved edit summaries for edits coming from wbeditentity API

2019-09-30 Thread Antonin Delpeuch (lists)
This is great news! Thank you so much for working on this! It must be hard to figure out how to generate summaries for a wide range of edit shapes, but it is definitely useful. I cannot tell from the Phab ticket whether you considered to reuse existing summaries from atomic actions (such as addit

Re: [Wikidata-tech] Create a claim with a reference

2019-07-17 Thread Antonin Delpeuch (lists)
Hi Denny, You are correct that wbsetclaim can create a claim with a reference. You just need to pass the entire JSON serialization of the claim, including the reference. If you are trying to create a new statement, you will need to generate a fresh statement id client-side and include it in the JS

Re: [Wikidata-tech] Missing documentation of Wikibase Lexeme data model

2018-12-11 Thread Antonin Delpeuch (lists)
On 12/11/18 7:38 AM, Jakob Voß wrote: > A more formal document (e.g. JSON Schema) may help to detect when > implementation and documentatation get out of sync. One way to generate a JSON schema would be to use Wikidata-Toolkit's implementation, which can generate a JSON schema via Jackson. It coul