Bugreporter added a comment.

If you want to export categories metadata as RDF in MediaWiki core there're much more that can exposed: size, number of links, last edits and whether it is flagged/make by bot, the redirect/disambig status, and even pages links to or transcluded. All are supported in PetScan.

Possible example:

<http://somewiki/wiki/Animal> a mediawiki:Page ;
        rdfs:label "Animals" ;
        mediawiki:size "12345"^^xsd:integer ;
        mediawiki:numberoflinks "123"^^xsd:integer ;
        mediawiki:firstedit <http://somewiki/w/index.php?oldid=12345> ;
        mediawiki:lastedit <http://somewiki/w/index.php?oldid=7777777> ;
        mediawiki:revisions <http://somewiki/w/index.php?oldid=6666666> ;
        mediawiki:revisions <http://somewiki/w/index.php?oldid=4444444> ;
        mediawiki:linkto <http://somewiki/wiki/Bird> ;
        mediawiki:transcludes <http://somewiki/wiki/Template:Example> ;
        mediawiki:incategory <http://somewiki/wiki/Category:Animals> .

<http://somewiki/w/index.php?oldid=7777777> a mediawiki:Revision ;
        mediawiki:by <http://somewiki/wiki/Special:Contributions/Example> ;
        mediawiki:time "+2010-04-12T00:00:00Z"^^xsd:dateTime ;
        mediawiki:flagged  "true"^^xsd:boolean .

<http://somewiki/wiki/Special:Contributions/Example> a mediawiki:User ;
        mediawiki:inusergroup  <http://somewiki/wiki/Special:ListUsers/sysop>; 
        mediawiki:usercreated "+2004-04-12T00:00:00Z"^^xsd:dateTime ;
        mediawiki:numberofedits "88888"^^xsd:integer .

We may finally get rid of PetScan, and than rename WDQS to Wikimedia Query Service.


TASK DETAIL
https://phabricator.wikimedia.org/T157676

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Bugreporter
Cc: Smalyshev, Bugreporter, Aklapper, Jheald, EBjune, merbst, Avner, debt, Gehel, D3r1ck01, Jonas, FloNight, Xmlizer, Izno, jkroll, Wikidata-bugs, Jdouglas, aude, Deskana, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to