Page MenuHomePhabricator

PHP Warning: No RDF builder defined for data type wikibase-form nor for value type bad.
Open, HighPublic

Description

Error

MediaWiki version: 1.35.0-wmf.36

message
PHP Warning: Wikibase\Rdf\DispatchingValueSnakRdfBuilder::getValueBuilder: No RDF builder defined for data type wikibase-form nor for value type bad. [Called from Wikibase\Rdf\DispatchingValueSnakRdfBuilder::getValueBuilder in /srv/mediawiki/php-1.35.0-wmf.36/extensions/Wikibase/repo/includes/Rdf/DispatchingValueSnakRdfBuilder.php at line 76]

Impact

4 messages in the log, may be the same request.

Notes

Details

Request ID
d424bf4d-eb55-47b2-adac-4738149023aa
Request URL
https://www.wikidata.org/wiki/Special:EntityData/Q316064.ttl?flavor=dump&revision=1201276478
Stack Trace
exception.trace
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /srv/mediawiki/php-1.35.0-wmf.36/includes/debug/MWDebug.php(393): trigger_error(string, integer)
#2 /srv/mediawiki/php-1.35.0-wmf.36/includes/debug/MWDebug.php(196): MWDebug::sendMessage(string, string, integer)
#3 /srv/mediawiki/php-1.35.0-wmf.36/includes/GlobalFunctions.php(1064): MWDebug::warning(string, integer, integer, string)
#4 /srv/mediawiki/php-1.35.0-wmf.36/extensions/Wikibase/repo/includes/Rdf/DispatchingValueSnakRdfBuilder.php(76): wfLogWarning(string)
#5 /srv/mediawiki/php-1.35.0-wmf.36/extensions/Wikibase/repo/includes/Rdf/DispatchingValueSnakRdfBuilder.php(51): Wikibase\Rdf\DispatchingValueSnakRdfBuilder->getValueBuilder(string, string)
#6 /srv/mediawiki/php-1.35.0-wmf.36/extensions/Wikibase/repo/includes/Rdf/SnakRdfBuilder.php(138): Wikibase\Rdf\DispatchingValueSnakRdfBuilder->addValue(Wikimedia\Purtle\TurtleRdfWriter, string, string, string, string, Wikibase\DataModel\Snak\PropertyValueSnak)
#7 /srv/mediawiki/php-1.35.0-wmf.36/extensions/Wikibase/repo/includes/Rdf/SnakRdfBuilder.php(86): Wikibase\Rdf\SnakRdfBuilder->addSnakValue(Wikimedia\Purtle\TurtleRdfWriter, string, Wikibase\DataModel\Snak\PropertyValueSnak, string)
#8 /srv/mediawiki/php-1.35.0-wmf.36/extensions/Wikibase/repo/includes/Rdf/FullStatementRdfBuilder.php(251): Wikibase\Rdf\SnakRdfBuilder->addSnak(Wikimedia\Purtle\TurtleRdfWriter, string, Wikibase\DataModel\Snak\PropertyValueSnak, string, string)
#9 /srv/mediawiki/php-1.35.0-wmf.36/extensions/Wikibase/repo/includes/Rdf/FullStatementRdfBuilder.php(142): Wikibase\Rdf\FullStatementRdfBuilder->addMainSnak(Wikibase\DataModel\Entity\ItemId, string, Wikibase\DataModel\Statement\Statement, boolean)
#10 /srv/mediawiki/php-1.35.0-wmf.36/extensions/Wikibase/repo/includes/Rdf/FullStatementRdfBuilder.php(126): Wikibase\Rdf\FullStatementRdfBuilder->addStatement(Wikibase\DataModel\Entity\ItemId, Wikibase\DataModel\Statement\Statement, boolean)
#11 /srv/mediawiki/php-1.35.0-wmf.36/extensions/Wikibase/repo/includes/Rdf/FullStatementRdfBuilder.php(266): Wikibase\Rdf\FullStatementRdfBuilder->addStatements(Wikibase\DataModel\Entity\ItemId, Wikibase\DataModel\Statement\StatementList)
#12 /srv/mediawiki/php-1.35.0-wmf.36/extensions/Wikibase/repo/includes/Rdf/RdfBuilder.php(430): Wikibase\Rdf\FullStatementRdfBuilder->addEntity(Wikibase\DataModel\Entity\Item)
#13 /srv/mediawiki/php-1.35.0-wmf.36/extensions/Wikibase/repo/includes/Rdf/RdfBuilder.php(411): Wikibase\Rdf\RdfBuilder->addSingleEntity(Wikibase\DataModel\Entity\Item)
#14 /srv/mediawiki/php-1.35.0-wmf.36/extensions/Wikibase/repo/includes/LinkedData/EntityDataSerializationService.php(236): Wikibase\Rdf\RdfBuilder->addEntity(Wikibase\DataModel\Entity\Item)
#15 /srv/mediawiki/php-1.35.0-wmf.36/extensions/Wikibase/repo/includes/LinkedData/EntityDataSerializationService.php(182): Wikibase\Repo\LinkedData\EntityDataSerializationService->rdfSerialize(Wikibase\Lib\Store\EntityRevision, NULL, array, Wikibase\Rdf\RdfBuilder, string)
#16 /srv/mediawiki/php-1.35.0-wmf.36/extensions/Wikibase/repo/includes/LinkedData/EntityDataRequestHandler.php(527): Wikibase\Repo\LinkedData\EntityDataSerializationService->getSerializedData(string, Wikibase\Lib\Store\EntityRevision, NULL, array, string)
#17 /srv/mediawiki/php-1.35.0-wmf.36/extensions/Wikibase/repo/includes/LinkedData/EntityDataRequestHandler.php(276): Wikibase\Repo\LinkedData\EntityDataRequestHandler->showData(WebRequest, OutputPage, string, Wikibase\DataModel\Entity\ItemId, integer)
#18 /srv/mediawiki/php-1.35.0-wmf.36/extensions/Wikibase/repo/includes/Specials/SpecialEntityData.php(157): Wikibase\Repo\LinkedData\EntityDataRequestHandler->handleRequest(string, WebRequest, OutputPage)
#19 /srv/mediawiki/php-1.35.0-wmf.36/includes/specialpage/SpecialPage.php(580): Wikibase\Repo\Specials\SpecialEntityData->execute(string)
#20 /srv/mediawiki/php-1.35.0-wmf.36/includes/specialpage/SpecialPageFactory.php(634): SpecialPage->run(string)
#21 /srv/mediawiki/php-1.35.0-wmf.36/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#22 /srv/mediawiki/php-1.35.0-wmf.36/includes/MediaWiki.php(986): MediaWiki->performRequest()
#23 /srv/mediawiki/php-1.35.0-wmf.36/includes/MediaWiki.php(543): MediaWiki->main()
#24 /srv/mediawiki/php-1.35.0-wmf.36/index.php(47): MediaWiki->run()
#25 /srv/mediawiki/w/index.php(3): require(string)
#26 {main}

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 10 2020, 6:18 PM
Krinkle renamed this task from PHP Warning: Wikibase\Rdf\DispatchingValueSnakRdfBuilder::getValueBuilder: No RDF builder defined for data type wikibase-form nor for value type bad. [Called from Wikibase\Rdf\DispatchingValueSnakRdfBuilder::getValueBuilder in /srv/mediawiki/php-1.35.0-wmf.36/extensions/Wikibase/repo/includes/Rdf/DispatchingValueSnakRdfBuilder.php at line 76] to PHP Warning: No RDF builder defined for data type wikibase-form nor for value type bad..Jun 10 2020, 6:43 PM
claims
  P8017
    0
      mainsnak	
        snaktype	"value"
        property	"P8017"
        datavalue
          value	
            entity-type	"form"
            id	"L252247-F2"	
          type	"wikibase-entityid"
          error	"Can not parse id 'L252247-F2' to build EntityIdValue with"
        datatype     "wikibase-form"
      type	"statement"
      id	"Q316064$A4FE59BA-21B1-4A4A-B504-E0ECAFCB537E"
      rank	"normal"

"Sub-entities" need more love I guess.

WMDE-leszek triaged this task as High priority.Jun 11 2020, 2:21 PM

Might be a duplicate of T240675 or T251421. (We seem to have a few copies of these tasks going around…)

Change 616167 had a related patch set uploaded (by Ladsgroup; owner: Ladsgroup):
[mediawiki/extensions/WikibaseLexeme@master] [WIP] Add rdf-data-type for entity property types

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