Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P11087
TermLookup not fetching descriptions in Beta Wikidata
Active
Public
Actions
Authored by
Tgr
on Apr 29 2020, 8:08 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F31787209: raw.txt
Apr 29 2020, 8:08 PM
2020-04-29 20:08:26 (UTC+0)
Subscribers
None
tgr@deployment-deploy01:~$ mwscript shell.php wikidatawiki
>>> $wikibaseClient = Wikibase\Client\WikibaseClient::getDefaultInstance()
=> Wikibase\Client\WikibaseClient {#5316}
>>> $termLookup = $wikibaseClient->getTermLookup()
=> Wikibase\DataAccess\ByTypeDispatchingPrefetchingTermLookup {#5390}
>>> $itemId = new Wikibase\DataModel\Entity\ItemId('Q500978')
=> Wikibase\DataModel\Entity\ItemId {#5379}
>>> $termLookup->prefetchTerms([$itemId], ['description'], ['en'])
=> null
>>> $termLookup->getDescription($itemId, 'en')
=> null
Event Timeline
Tgr
created this paste.
Apr 29 2020, 8:08 PM
2020-04-29 20:08:26 (UTC+0)
•
bearND
mentioned this in
T251550: Description property missing in beta cluster WP
.
Apr 30 2020, 6:00 PM
2020-04-30 18:00:21 (UTC+0)
•
Mholloway
changed the title of this paste from untitled to
TermLookup not fetching descriptions in Beta Wikidata
.
May 6 2020, 8:50 PM
2020-05-06 20:50:09 (UTC+0)
Log In to Comment