Page MenuHomePhabricator

Expose wikibase page properties to abusefilter for Wikidata
Open, Needs TriagePublic

Description

To make abusefilter a bit more useful on Wikidata, it would be nice to expose the page properties in the abusefilter. Example:

MariaDB [wikidatawiki_p]> SELECT * FROM page_props WHERE pp_page=111 LIMIT 100;
+---------+-----------------+-----------+------------+

pp_pagepp_propnamepp_valuepp_sortkey

+---------+-----------------+-----------+------------+

111page_image_freeEgypt.jpgNULL
111wb-claims122122
111wb-identifiers4545
111wb-sitelinks335335

+---------+-----------------+-----------+------------+
4 rows in set (0.00 sec)

Especially the items with a high number of sitelinks seem to be vandalism targets. The RDF already contains this data so maybe it can be exposed in a similar format in the wikitext that serves as input for the abusefilter.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 20 2018, 6:08 PM

The RDF already contains this data so maybe it can be exposed in a similar format in the wikitext that serves as input for the abusefilter.

How is it represented in rdf?
The easiest way to represent this in abusefilter would probably be something like "pp:wb-claims:122" or something similar.

The RDF already contains this data so maybe it can be exposed in a similar format in the wikitext that serves as input for the abusefilter.

How is it represented in rdf?
The easiest way to represent this in abusefilter would probably be something like "pp:wb-claims:122" or something similar.

See for example https://www.wikidata.org/wiki/Special:EntityData/Q28094801.rdf :

<wikibase:statements rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">12</wikibase:statements>
<wikibase:identifiers rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</wikibase:identifiers>
<wikibase:sitelinks rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</wikibase:sitelinks>