Page MenuHomePhabricator

Display mathematical formula correctly in the query service
Closed, DeclinedPublic

Description

Currently, the query https://query.wikidata.org/#SELECT%20%3Fitem%20%3FitemLabel%20%3Fvalue%20%3FvalueLabel%0A%7B%0A%09%3Fitem%20wdt%3AP4020%20%3Fvalue%20.%0A%09SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%2Cen%22%20%20%7D%20%20%20%20%0A%7D%0ALIMIT%201000 shows:

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <msup> <mi>L</mi> <mrow class="MJX-TeXAtom-ORD"> <mn>3</mn> </mrow> </msup> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle L^{3}}</annotation> </semantics> </math>

instead of rendering the formula.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 24 2017, 4:05 PM

When I run the query I see 4 columns. Item, Itemlabel, value and valuelabel. The value for me shows the rendered formula and value label shows the mathml code.

Restricted Application added a project: Discovery. · View Herald TranscriptJun 25 2017, 12:32 PM

MathML only works in Firefox

Jonas closed this task as Declined.Jun 26 2017, 8:03 PM

Sorry, you have to use Firefox or wait till your browser supports MathML.