As shown below, the text is displayed alongside a list of place names and person names, as well as a map.
It is described as follows:
A 20th century manuscript letter from Robert Graves where emphasis has been put on visualizing rich encoding of semantic information in the letter, in particular geographic and prosopographical data. The map is displayed with a pb-leaflet component.
Named entities in the body text use the <name> tag, with the ref attribute referencing the id specified in the above lists. The type attribute is used to distinguish between person names and place names.
The following section defines the use of italic styling.
Indeed, “Yug” written as follows is displayed in italics.
name - model [webcomponent] @type=‘place’ and id(substring-after(@ref, ‘#’), root($parameters?root))/location/geo#
There is also an entry with the above description.
First, I asked GPT-4 to explain the content starting with id(....
This is part of a query language called XPath, used to select specific elements and attributes within XML documents. Specifically, this XPath expression performs the following operations:
id(substring-after(@ref, '#'), root($parameters?root)): This part extracts the portion after the hash symbol (#) from the @ref attribute (using the substring-after function) and passes the result to the id function. The id function finds elements with the specified ID within the XML document. In this case, root($parameters?root) specifies the root element of the document in which to search.
/location/geo: Within the found element’s child elements, it searches for an element called location and selects its child element geo.
Overall, this XPath expression is used to find a specific element based on a reference ID and select its location and geo child elements. This can be useful for retrieving specific geographic location information within an XML document.
In other words, this applies to elements that reference a place name with a geo tag. In this case, the style is defined as follows:
This style is applied to place names like the following.
Additionally, Parameters are specified in the ODD as shown below.
As a result, the HTML tags were written as follows. The name tag has been converted to a pb-geolocation tag, with attributes set based on the above XPath (or XQuery?).
pb-view and pb-leaflet-map are used. The second pb-view subscribes to transcription and emits letter. The ODD graves is also specified. Additionally, pb-leaflet-map subscribes to letter.
Using the above relationships, it appears that geographic information including latitude and longitude from the TEI/XML is being exchanged.
In the next article, I will examine the contents of pb-view and pb-leaflet-map. While this article may be somewhat incomplete, I hope some parts serve as a helpful reference.