Page MenuHomePhabricator

Add support for EntitySchema URIs in the WDQS munger
Closed, InvalidPublic

Description

The WDQS munger should support wikibase RDF output that has an entity schema URI.

The current implementation does not recognize these objects and warns about them with:

17:30:06.215 [main] INFO  o.wikidata.query.rdf.tool.rdf.Munger - Unrecognized statement: s:http://www.wikidata.org/entity/statement/Q291-2e61d8df-4a70-a366-8dbe-7f3d0070a10e p:http://www.wikidata.org/prop/statement/P163 o:http://www.wikidata.org/entity/E1
17:30:06.215 [main] INFO  o.wikidata.query.rdf.tool.rdf.Munger - Unrecognized statement: s:http://www.wikidata.org/entity/statement/Q291-2e61d8df-4a70-a366-8dbe-7f3d0070a10e p:http://www.wikidata.org/prop/qualifier/P163 o:http://www.wikidata.org/entity/E1

See P49105 for an example output.

AC:

  • The WDQS munger should support this new entity schema when used as objects

Event Timeline

Change 928134 had a related patch set uploaded (by DCausse; author: DCausse):

[wikidata/query/rdf@master] Add tests for EntitySchema URIs appearing as objects

https://gerrit.wikimedia.org/r/928134

It should support such URIs already, the warnings I saw were because I setup the test improperly.

dcausse changed the task status from Declined to Invalid.Jun 7 2023, 7:59 PM

Change 928134 merged by jenkins-bot:

[wikidata/query/rdf@master] Add tests for EntitySchema URIs appearing as objects

https://gerrit.wikimedia.org/r/928134