marcmiquel added a comment.
I assumed that Categories and Wikipedia: pages coming from language editions
would maintain the ns from their origin wiki. We can close this. Now it is
clear. Thanks, Addshore.
TASK DETAIL
https://phabricator.wikimedia.org/T191639
EMAIL PREFERENCES
Addshore added a comment.
ns is not part of the data model for Wikidata / wikibase entities, which is
why it does not appear in the JSON dumps.
The docs on that page don't mention na other than in the example, which comes
from the API and does include the ns.
All Items on Wikidata org
marcmiquel added a comment.
The wikidata dump still does not include the namespace tag.
It is specified in the JSON DataModel and it would be useful for the same use
I explained in this task.
https://www.mediawiki.org/wiki/Wikibase/DataModel/JSON
Could you give me an update on
marcmiquel added a comment.
I need all the Wikidata qitems that relate to Wikipedia articles. If I understand it correctly, these are qitems that have namespace 0. Although not all qitems with namespace 0 necessarily have sitelinks (they could be just qitems without an article).
The thing is that
Addshore added a comment.
In T191639#4937630, @marcmiquel wrote:
The use case is to process the dumps and filter out qitems which do not relate to articles, this is why we put NS0.
That sounds like you are referring to the namespace of the sitelinks of the entity?
On wikidata.org all "qitems"
marcmiquel added a comment.
The use case is to process the dumps and filter out qitems which do not relate to articles, this is why we put NS0. The JSON dump sample says there is ns field but in the final dump there is no such field.TASK DETAILhttps://phabricator.wikimedia.org/T191639EMAIL
Addshore added a comment.
Hmm, what's the usecase here? Is this for wikidata dumps? Right now Items being in NS 0 is a pretty safe assumption, they don't appear anywhere else.TASK DETAILhttps://phabricator.wikimedia.org/T191639EMAIL