Page MenuHomePhabricator

Missing infobox in data-parsoid result
Closed, ResolvedPublic

Description

In the RDFa of
https://en.wikipedia.org/api/rest_v1/page/html/Potato, there is an infobox , there is an infobox

<span about="#mwt124" typeof="mw:Transclusion" id="mwlg" data-mw="{&quot;parts&quot;:[{&quot;template&quot;:{&quot;target&quot;:{&quot;wt&quot;:&quot;Agricultural production box\n&quot;,&quot;href&quot;:&quot;./Template:Agricultural_production_box&quot;},&quot;params&quot;:{&quot;year&quot;:{&quot;wt&quot;:&quot;2013&quot;},&quot;plant&quot;:{&quot;wt&quot;:&quot;potato&quot;},&quot;country1&quot;:{&quot;wt&quot;:&quot;{{PRC}}&quot;},&quot;amount1&quot;:{&quot;wt&quot;:&quot;88.9&quot;},&quot;country2&quot;:{&quot;wt&quot;:&quot;{{IND}}&quot;},&quot;amount2&quot;:{&quot;wt&quot;:&quot;45.3&quot;},&quot;country3&quot;:{&quot;wt&quot;:&quot;{{RUS}}&quot;},&quot;amount3&quot;:{&quot;wt&quot;:&quot;30.2&quot;},&quot;country4&quot;:{&quot;wt&quot;:&quot;{{UKR}}&quot;},&quot;amount4&quot;:{&quot;wt&quot;:&quot;22.3&quot;},&quot;country5&quot;:{&quot;wt&quot;:&quot;{{USA}}&quot;},&quot;amount5&quot;:{&quot;wt&quot;:&quot;19.8&quot;},&quot;country6&quot;:{&quot;wt&quot;:&quot;{{GER}}&quot;},&quot;amount6&quot;:{&quot;wt&quot;:&quot;9.7&quot;},&quot;country7&quot;:{&quot;wt&quot;:&quot;{{BGD}}&quot;},&quot;amount7&quot;:{&quot;wt&quot;:&quot;8.6&quot;},&quot;country8&quot;:{&quot;wt&quot;:&quot;{{FRA}}&quot;},&quot;amount8&quot;:{&quot;wt&quot;:&quot;7.0&quot;},&quot;country9&quot;:{&quot;wt&quot;:&quot;{{NLD}}&quot;},&quot;amount9&quot;:{&quot;wt&quot;:&quot;6.8&quot;},&quot;country10&quot;:{&quot;wt&quot;:&quot;{{POL}}&quot;},&quot;amount10&quot;:{&quot;wt&quot;:&quot;6.3&quot;},&quot;world&quot;:{&quot;wt&quot;:&quot;368.1&quot;}},&quot;i&quot;:0}}]}">
</span>

But when looking at the data-parsoid, there is no info about "mwt124":

https://en.wikipedia.org/api/rest_v1/page/data-parsoid/Potato

Is this expected?

Event Timeline

Bianjiang created this task.Jan 6 2016, 5:22 PM
Bianjiang raised the priority of this task from to Needs Triage.
Bianjiang updated the task description. (Show Details)
Bianjiang added a project: Parsoid.
Bianjiang added a subscriber: Bianjiang.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptJan 6 2016, 5:22 PM
Arlolra closed this task as Resolved.Jan 6 2016, 8:18 PM
Arlolra claimed this task.
Arlolra added a subscriber: Arlolra.

Is this expected?

Yup, data-parsoid is keyed on the element id attribute, not about. The info for the element in question is available at mwlg,

"mwlg": {
"pi": [
[
{
"k": "year",
"named": true,
"spc": [
"",
"",
"",
"\n"
]
},
{
"k": "plant",
"named": true,
"spc": [
"",
"",
"",
"\n"
]
},
...