Stanislav Malyshev
5e5179e857
Do not generate negative page counts in dump
...
Due to T201119, some counts are not in sync. We are assuming
that in this case page count is just 0.
Change-Id: Iffd24270db6d852839d6922aa492c1975bf185e0
2018-08-02 18:01:11 -07:00
Stanislav Malyshev
dc2fd34eb1
Add more data to categories dump
...
Hidden category: <cat> a mediawiki:HiddenCategory .
Pages count: <cat> mediawiki:pages 10 .
Subcats count: <cat> mediawiki:subcategories 5 .
Note that pages count includes only actual articles, unlike mediawiki
table.
Bug: T173980
Change-Id: I6d34c58f844411f891195776406e11acd2aef7b1
2018-01-17 00:40:16 +00:00
Stanislav Malyshev
bb2453fa7c
Port categories dump header fix
...
This fix is ported from https://gerrit.wikimedia.org/r/#/c/372905
since it does not belong to SPARQL updates really.
It changes main node for category dump to
<http://acme.test/wiki/Special:CategoryDump >
thus allowing to support multiple wikis living on the same domain.w
Change-Id: Ie1ac5ddf6b3b73f3966274f90abc1db50061b494
2017-11-28 18:04:43 -08:00
Stanislav Malyshev
d9bb673b72
Produce RDF dump of all categories and subcategories in a wiki.
...
Example:
http://en.wiki.local.wmftest.net:8080/wiki/Category:Ducks > a mediawiki:Category ;
rdfs:label "Ducks" ;
mediawiki:isInCategory <http://en.wiki.local.wmftest.net:8080/wiki/Category:Birds > .
Bug: T157676
Change-Id: I59b9603581b37af59d17dd6c38247c85aee44911
2017-08-28 00:30:35 -07:00