Stanislav Malyshev
bc9e1a086e
Create update SPARQL for category changes
...
This script creates SPARQL UPDATE statements for changes in a given time
period. These statements can be applied to an existing database to
update it.
See tests for examples of how the statements look like.
Bug: T173774
Change-Id: I9867ad566c0619b55a48a011bd3c55321b1bfcff
2018-04-20 16:40:35 -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