diff --git a/README.md b/README.md index 60b8e92..3a0f0ec 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Additional stylesheets can be applied to the output created by the basic transfo - `combine-continued.xsl` (or set parameter `combine=true()`) — try to combine entities that are split over a line break into one element - `simplify-coordinates.xsl` (parameter `bounding-rectangles=true()` by default) — convert polygons into bounding rectangles - `tokenize.xsl` (or set parameter `tokenize=true()`) — perform (very basic!) whitespace tokenization +- `resolve-wikiData-lobid.xsl` – a separate helper stylesheet that can be used to resolve WikiData named entities tagged in Transkribus against LOBID and returns `tei:idno` from GND, GeoNames, WikiData instead of `tei:rs/@wikiData`. ## Parameters You can set the following parameters when calling `page2tei-0.xsl` (via command line or via an oXygen scenario; in oXygen, the parameters should be marked as “XPath“): @@ -34,6 +35,7 @@ You can set the following parameters when calling `page2tei-0.xsl` (via command - @tboenig - @peterstadler - @tillgrallert +- @skurzinz --- diff --git a/resolve-wikiData-lobid.xsl b/resolve-wikiData-lobid.xsl new file mode 100644 index 0000000..a926b2d --- /dev/null +++ b/resolve-wikiData-lobid.xsl @@ -0,0 +1,146 @@ + + + + + Created on: 2025-06-04 + Author: stephan.kurz@oeaw.ac.at + resolve @wikiData against lobid and write into standOff + + + + + + + static parameter for base url + + + + + + return @ref instead of @wikiData, linking to entity in newly created tei:standOff + + + + + + + + + + + query lobid + the wikiData Q id + entity type (person|org|place) + + + + + + + + + + + + + + + + + + no match in GND + + + + + + + + + + + + + + no match in GND + + + + + + + + + + + + + + + no match in GND + + + + + + + + + + + + + Insert a change element into revisionDesc + + + + + + auto-resolved wikiData entities against lobid and generated standOff + + + + + + Default + + + + + + + + + + + + Person + + + + + + + PlaceOrGeographicName + + + + + + + OrganOfCorporateBody + + + + + + + + \ No newline at end of file