Hi Moritz,
I must say that this is not very reassuring. So basically what we have
in this datatype now is a "LaTeX-like" markup language that is only
supported by one implementation that was created for MediaWiki, and
partially by a LaTeX package that you created.
Why did you not just use LaTeX? Do we really need additional commands
here? Just think about the interoperability of the data you are
creating. Just because some command alias is used on Wikipedia does not
mean we need it -- we can simply translate it to standard LaTeX on import.
The question about MathJax I asked because consumers of the data clearly
need some way to display this markup. MathJax is a widely used library
that can support this. Or maybe MathJax already supports your custom
extensions somehow (I am not that familiar with it)? If not, then what
other ways are there of embedding your custom math markup language into
my application?
Cheers,
Markus
On 03.02.2016 13:52, Schubotz, Moritz wrote:
Hi Markus,
it's not exactly a subset of LaTeX. Some commands were added some were removed. A
large portion of those parts are documented here
https://en.wikipedia.org/wiki/Help:Displaying_a_formula , and a complete list is
available from
http://1drv.ms/1RtoZoW
For LaTeX users I created a LaTeX macro package so that they can copy and paste texvc
style LaTeX code to regular LaTeX documents
https://www.ctan.org/pkg/texvc
However, there are two issues with this package: \and and \or are not supported by my
LaTeX package since redefining those commands caused internal problems. However, most of
the time people use the standard LaTeX command \lor and \land anyhow. Altogether, enwiki
contains 969 \lor and 1581 \land.
Statistics on the usage frequencies are available from
https://gitlab.tubit.tu-berlin.de/data/wikiFormulae/tree/master
w.r.t 2) I have no idea how that relates to MathJax? Can you explain the background of
your question?
Best
Moritz
Moritz Schubotz
TU Berlin, Fakultät IV
DIMA - Sekr. EN7
Raum E-N 741
Einsteinufer 17
D-10587 Berlin
Germany
Tel.: +49 30 314 22784
Mobil:+49 1578 047 1397
E-Mail: schubotz(a)tu-berlin.de
Skype: Schubi87
ICQ: 200302764
Msn: Moritz(a)Schubotz.de
-----Ursprüngliche Nachricht-----
Von: Markus Krötzsch [mailto:markus@semantic-mediawiki.org]
Gesendet: Mittwoch, 3. Februar 2016 12:06
An: Discussion list for the Wikidata project.; Lydia Pintscher
Cc: Schubotz, Moritz
Betreff: Re: [Wikidata] upcoming deployments/features
For a consumer, the main practical questions would be:
(1) What subset of LaTeX exactly do you need to support to display the math expressions
in Wikidata?
(2) As a follow up: does MathJAX work to display this? If not, what does?
Cheers,
Markus
On 02.02.2016 10:01, Moritz Schubotz wrote:
The string is interpreted by the math extension
in the same way as the
Math extension interprets the text between the <math /> tags.
There is an API to extract identifiers and the packages required to
render the input with regular latex from here:
http://api.formulasearchengine.com/v1/?doc
or also
https://en.wikipedia.org/api/rest_v1/?doc#!/Math/post_media_math_check
_type (The wikipedia endpoint has been opened to the public just
moments ago) In the future, we are planning to provide additional
semantics from there.
If you have additional questions, please contact me directly, since
I'm not a member on the list.
Moritz
On Tue, Feb 2, 2016 at 8:53 AM, Lydia Pintscher
<Lydia.Pintscher(a)wikimedia.de <mailto:Lydia.Pintscher@wikimedia.de>> wrote:
On Mon, Feb 1, 2016 at 8:44 PM Markus Krötzsch
<markus(a)semantic-mediawiki.org
<mailto:markus@semantic-mediawiki.org>> wrote:
On 01.02.2016 17:14, Lydia Pintscher wrote:
Hey folks :)
I just sat down with Katie to plan the next important feature
deployments that are coming up this month. Here is the plan:
* new datatype for mathematical expressions: We'll get it live on
test.wikidata.org <http://test.wikidata.org>
<http://test.wikidata.org> tomorrow and then bring it
to
wikidata.org <http://wikidata.org>
<http://wikidata.org>
on the 9th
Documentation? What will downstream users like us need to do to
support
this? How is this mapped to JSON? How is this mapped to RDF?
It is a string representing markup for the Math extension. You can
already test it here:
http://wikidata.beta.wmflabs.org/wiki/Q117940.
See also
https://en.wikipedia.org/wiki/Help:Displaying_a_formula.
Maybe Moritz wants to say bit more as his students created the
datatype.
Cheers
Lydia
--
Lydia Pintscher -
http://about.me/lydia.pintscher
Product Manager for Wikidata
Wikimedia Deutschland e.V.
Tempelhofer Ufer 23-24
10963 Berlin
www.wikimedia.de <http://www.wikimedia.de>
Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.
Eingetragen im Vereinsregister des Amtsgerichts
Berlin-Charlottenburg unter der Nummer 23855 Nz. Als gemeinnützig
anerkannt durch das Finanzamt für Körperschaften I Berlin,
Steuernummer 27/029/42207.
--
Moritz Schubotz
TU Berlin, Fakultät IV
DIMA - Sekr. EN7
Raum EN742
Einsteinufer 17
D-10587 Berlin
Germany
Tel.: +49 30 314 22784
Mobil.: +49 1578 047 1397
Fax: +49 30 314 21601
E-Mail: schubotz(a)tu-berlin.de <mailto:schubotz@tu-berlin.de>
Skype: Schubi87
ICQ: 200302764
Msn: Moritz(a)Schubotz.de
_______________________________________________
Wikidata mailing list
Wikidata(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata