Closed PietroLiuzzo closed 5 years ago
this will require a code freeze and batch upload of the files
https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-refsDecl.html is also needed, especially in manuscript transcriptions and editions. Once this information is there, then the scripts can rely on that information, instead of hardcoding a generic xpath and regex to match the patterns in the xquery (e.g. dts, etc.)
turns out SdC: is no valid namespace. needs to be sdc: https://tei-c.org/release/doc/tei-p5-doc/en/html/ref-teidata.prefix.html
needs to prefix wikidata and update scripts using Q needs to change all SdC and update scripts using SdC needs to retransform all data in RDF to update these namespaces there
update guidelines accordingly
needs also to update the guidelines for this ids
can use https://exist-db.org/exist/apps/doc/xinclude
to include taxonomy and prefDecl so that the content is not repeated.
needs also xml:base
but not in TEI element. for now adding it to teiHeader
https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-att.global.html#tei_att.xml-base
XSLT tranformation will not add xi:include (tried already with prefixes in header and constructing element, it either includes directly or construct an unusable element) in the event a xi:include is there (e.g. RIE 189.xml) then the transformations will always result in the elements being included from the external source. So, this needs me to understand much better how xi:include works, and is then deferred to the next release
now the post.xsl is fixed and returns both the xml with xi:include
I am still not sure what the impact on the processing is and need to test locally before doing this change
The XSLT committed above only partially addresses this because
The example of how to use this was taken from the RIB files.
save-new-entity.xql had the wrong processing instruction for the schema. This still redirect, but although the file has already been fixed, there are plenty of files which have the wrong one. they all need to be updated
The above Xquery solves the problem of how to add the xi:include, because that works nicely done wit XQuery. An issue with the integration with oXygen however, which adds the elements twice does not allow to run this in oxygen, it needs to be run in exist, with exide or with the atom integration. this must happen at data freeze as it will affect all files with no exceptions, and should be tested locally for both the data entry TEI and the canonicalized TEI.
this commit https://github.com/BetaMasaheft/BetMas/commit/a544568ff2571231a9fdd122133c140e5913644b which assumes that there is prefixDef included in the files, fixes int he postprocessed file
a prefix bm is used in cases like bm:LandGrant, for BM concepts. these need to be prefixed differently, like betmas: because bm: is already used for zotero
We should add to all files
<prefixDef>
in case of users of the non transformed TEI. https://tei-c.org/release/doc/tei-p5-doc/en/html/ref-prefixDef.htmlthe post.xsl should be updated to use this as well this will require also prefixing of wikidata ids, and potentially of instances of @ref and @corresp