mkroetzsch added a comment. The format should be the same as in JSON. If MathML is preferred there, then this is fine with me. If LaTeX is preferred, we can also use this. It seems that MathML would be a more reasonable data exchange format, but Moritz was suggesting in his emails that he does not think it to be usable enough today, so there might be practical reasons to avoid it.
In any case, I am strongly against using a different format in RDF and JSON. Otherwise any tool-chain that uses RDF and JSON (e.g., a bot that uses SPARQL to fetch relevant information) would have to implement this conversion, maybe even back and forth. Tools that do large-scale processing (e.g., Wikidata Toolkit generating custom RDF dumps from JSON) would need to implement this conversion internally, even if there would be a web service (latency). It would be really a lot of work, without a clear benefit. Indeed, whatever format you pick, for whatever reason you pick it, the same reason should apply to all exchange formats alike. If you use MathML but keep the TeX-like input syntax, then external users will also need a web service that can convert back and forth between these representations: - TeX->MathML is needed, e.g., for a query UI where users enter data to search for in SPARQL - MathML -> TeX is needed, e.g., to display the (raw) value of a math property to a user after it was returned from SPARQL The two conversions do not need to be exact inverses, but they should hopefully stabilise after one round-trip. I think using MathML as the main exchange format would be doable, given such tool support exists. In particular, I am not concerned about showing different things to users than we use in our exchange formats. We are doing similar things with other types (dates are also written in a user syntax and then converted into an internal data model). The representation of dates is not the same in RDF and in JSON either, but the data structure is the same (same components that make up a date), which is very different from the situation of TeX vs. MathML. TASK DETAIL https://phabricator.wikimedia.org/T126349 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Physikerwelt, mkroetzsch Cc: thiemowmde, mkroetzsch, fredw, gerritbot, daniel, Lydia_Pintscher, Tobias1984, Bene, Wikidata-bugs, Physikerwelt, Tpt, Liuxinyu970226, Rits, Ricordisamoa, Sannita, Micru, MGChecker, Aklapper, WickieTheViking, Llyrian, TomT0m, ArthurPSmith, Izno, Prod, aude, Pkra, scfc, Mbch331, Ltrlg _______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
