Include Work id in the metadata
Currently, there is no example in TGR of works refering to the work using an external ID (for example to Wikidata or GND). We would like to do start this with the import of the Shakespeare corpus. Let's take the example of Hamlet, with following ID in the GND: http://d-nb.info/gnd/4099350-4 and in Wikidata https://www.wikidata.org/wiki/Q41567
Currently, the Fluffy Import creates following file (a little bit simplified):
<?xml version="1.0" encoding="UTF-8"?>
<object xmlns="http://textgrid.info/namespaces/metadata/core/2010" xmlns:tg="http://textgrid.info/relation-ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:eltec="https://textgridrep.org/terminology/eltec/">
<generic>
<provided>
<title>Hamlet</title>
<format>text/tg.work+xml</format>
</provided>
</generic>
<work>
<agent role="author" id="gnd:118613723">Shakespeare, William</agent>
<dateOfCreation notBefore="1602" notAfter="1602">1602</dateOfCreation>
<subject>
<id type="http://uri.gbv.de/terminology/bk/">18.05</id>
<value>English literature</value>
</subject>
<subject>
<id type="https://d-nb.info/gnd/">4304080-9</id>
<value>drama</value>
</subject>
<genre>drama</genre>
</work>
</object>
Following the cheatsheet, the provided element can contain zero, one or more identifier elements. In the .xsd file, the element is defined as follows:
<xs:element name="identifier" type="tns:identifierType" minOccurs="0"
maxOccurs="unbounded"/>
I have two suggestions:
1st suggestion
<generic>
<provided>
<title>Hamlet</title>
<format>text/tg.work+xml</format>
<identifier>http://d-nb.info/gnd/4099350-4</identifier>
<identifier>https://www.wikidata.org/wiki/Q41567</identifier>
</provided>
</generic>
2nd suggestion
<generic>
<provided>
<title>Hamlet</title>
<format>text/tg.work+xml</format>
<identifier>gnd:4099350-4</identifier>
<identifier>wikidata:Q41567</identifier>
</provided>
</generic>
I prefer the second suggestion, I am open to other options.
Edited by Jose Calvo Tello