fechan / lestrade-tei-tagger

Mathematica-based TEI Tagger spun off from Audrey Holmes' Historical Markup Tool
GNU General Public License v3.0
0 stars 0 forks source link

Make @ref in TEI index default to Wikidata QID references #14

Closed fechan closed 3 years ago

fechan commented 3 years ago

In order to make the output more usable/open for developers, Lestrade should make the @ref attribute of an entity point to the Wikidata URL for that entity instead.

It would not be appropriate to include both, since according to TEI P5:

The value must point directly to one or more XML elements or other resources by means of one or more URIs, separated by whitespace. If more than one is supplied the implication is that the name identifies several distinct entities

fechan commented 3 years ago

Done. There is now an option in settings.json called "tei_index_ref_type" which defaults to "Wikidata QID." Setting it to anything else will result in the old behavior. This should get documented.