Page MenuHomePhabricator

A new datatype for XML text in Wikibase (and Wikidata)
Open, Needs TriagePublicFeature

Description

Feature summary: as of now Wikibase has a datatype "string" allowing to store plain text; it misses a datatype capable of interpreting XML markup; this presupposes T323705

Use case(s): if a text is encoded in XML markup, importing it to a property with datatype string or monolingual text loses all its markup, transforming it into plain text; if the original XML markup is copied and pasted into such properties, it is just interpreted as plain text

Benefits: having a datatype that stores XML markup (when adding/editing values) and shows the XML markup appropriately rendered would e.g. allow to encode correctly the texts of inscriptions, that are stored in XML-TEI format in academic databases - cf. https://www.wikidata.org/wiki/Wikidata_talk:WikiProject_Epigraphy#Use_of_quotation_or_excerpt_(P7081)_and_inscription_(P1684) -, whilst Wikidata presently uses https://www.wikidata.org/wiki/Property:P1684 (monolingual text datatype, so no possibility of using XML markup)