Skip to content
Snippets Groups Projects
Commit a593e531 authored by Martin de la Iglesia's avatar Martin de la Iglesia
Browse files

https in URIs

parent 7b05d801
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:bf="http://id.loc.gov/ontologies/bibframe/" xmlns:ecrm="http://erlangen-crm.org/current/" xmlns:edm="http://www.europeana.eu/schemas/edm/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:frbr="http://purl.org/vocab/frbr/core#" xmlns:gndo="https://d-nb.info/standards/elementset/gnd#" xmlns:owl ="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:schema="http://schema.org/" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:wdt="http://www.wikidata.org/prop/direct/" exclude-result-prefixes="xs tei" version="2.0">
<xsl:template match="/">
<xsl:result-document indent="yes" href="hainhofer-lod_psn.xml"> <!-- Dateinamen ggf. hier anpassen. -->
<xsl:result-document indent="yes" href="hainhofer-lod_plc.xml"> <!-- Dateinamen ggf. hier anpassen. -->
<rdf:RDF
xmlns:bf="http://id.loc.gov/ontologies/bibframe/"
xmlns:dcterms="http://purl.org/dc/terms/"
......@@ -34,17 +34,17 @@
<!-- Wenn die Transformation zu lange dauert, jedes Register einzeln transformieren und die jeweils anderen auskommentieren: -->
<!-- Personengruppen (tei:personGrp) sind unten noch nicht berücksichtigt, daher hier nur tei:person: -->
<xsl:apply-templates select="collection('file://///C:/Users/iglesia/Documents/Register/register-person?select=*.xml;recurse=no')//tei:person[tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]]"/>
<!--<xsl:apply-templates select="collection('file://///C:/Users/iglesia/Documents/Register/register-person?select=*.xml;recurse=no')//tei:person[tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]]"/>-->
<!--<xsl:apply-templates select=" collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/') or contains(.,'ta.sandrart.net')]]">
<!--<xsl:apply-templates select=" collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/') or contains(.,'ta.sandrart.net')]]">
<!-\-<xsl:sort select="tei:name[@type='preferred']/tei:term/@sortKey"/>-\->
</xsl:apply-templates>-->
<!--<xsl:apply-templates select=" collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[tei:idno[@type='URI']]">
<xsl:apply-templates select=" collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[tei:idno[@type='URI']]">
<xsl:sort select="tei:placeName[@type = 'preferred']/tei:term/@sortKey"/>
</xsl:apply-templates>-->
</xsl:apply-templates>
<!--<xsl:apply-templates select=" collection('file://///C:/Users/iglesia/Documents/Register/register-org?select=*.xml;recurse=no')//tei:org[tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/') or starts-with(.,'http://www.wikidata.org/')]]"/>-->
<!--<xsl:apply-templates select=" collection('file://///C:/Users/iglesia/Documents/Register/register-org?select=*.xml;recurse=no')//tei:org[tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/') or contains(.,'://www.wikidata.org/')]]"/>-->
<!--<xsl:call-template name="hasmet"/>-->
......@@ -58,11 +58,11 @@
<rdf:Description>
<xsl:attribute name="rdf:about">
<xsl:choose>
<xsl:when test="tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]">
<xsl:value-of select="tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:when test="tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]">
<xsl:value-of select="tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:when>
<xsl:when test="tei:idno[@type='URI'][starts-with(.,'http://sws.geonames.org/')]">
<xsl:value-of select="tei:idno[@type='URI'][starts-with(.,'http://sws.geonames.org/')][1]"/>
<xsl:when test="tei:idno[@type='URI'][contains(.,'://sws.geonames.org/')]">
<xsl:value-of select="tei:idno[@type='URI'][contains(.,'://sws.geonames.org/')][1]"/>
</xsl:when>
<xsl:when test="tei:idno[@type='URI'][starts-with(.,'http://vocab.getty.edu/tgn/')]">
<xsl:value-of select="tei:idno[@type='URI'][starts-with(.,'http://vocab.getty.edu/tgn/')][1]"/>
......@@ -73,11 +73,11 @@
</xsl:choose>
</xsl:attribute>
<xsl:if test="tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]">
<xsl:if test="tei:idno[@type='URI'][starts-with(.,'http://sws.geonames.org/')]">
<xsl:if test="tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]">
<xsl:if test="tei:idno[@type='URI'][contains(.,'://sws.geonames.org/')]">
<owl:sameAs>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="tei:idno[@type='URI'][starts-with(.,'http://sws.geonames.org/')][1]"/>
<xsl:value-of select="tei:idno[@type='URI'][contains(.,'://sws.geonames.org/')][1]"/>
</xsl:attribute>
</owl:sameAs>
</xsl:if>
......@@ -96,7 +96,7 @@
</owl:sameAs>
</xsl:if>
</xsl:if>
<xsl:if test="not(tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]) and tei:idno[@type='URI'][starts-with(.,'http://sws.geonames.org/')]">
<xsl:if test="not(tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]) and tei:idno[@type='URI'][contains(.,'://sws.geonames.org/')]">
<xsl:if test="tei:idno[@type='URI'][starts-with(.,'http://vocab.getty.edu/tgn/')]">
<owl:sameAs>
<xsl:attribute name="rdf:resource">
......@@ -112,7 +112,7 @@
</owl:sameAs>
</xsl:if>
</xsl:if>
<xsl:if test="not(tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]) and not(tei:idno[@type='URI'][starts-with(.,'http://vocab.getty.edu/tgn/')]) and tei:idno[@type='URI'][starts-with(.,'http://sws.geonames.org/')]">
<xsl:if test="not(tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]) and not(tei:idno[@type='URI'][starts-with(.,'http://vocab.getty.edu/tgn/')]) and tei:idno[@type='URI'][contains(.,'://sws.geonames.org/')]">
<xsl:if test="tei:idno[@type='URI'][starts-with(.,'http://ta.sandrart.net/')]">
<owl:sameAs>
<xsl:attribute name="rdf:resource">
......@@ -165,17 +165,17 @@
<xsl:for-each select="tei:linkGrp/tei:link[@ana = 'http://erlangen-crm.org/current/P89_falls_within']">
<xsl:variable name="plcid" select="substring-after(@target,' #')"/>
<xsl:choose>
<xsl:when test="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid][tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]]">
<xsl:when test="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid][tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]]">
<ecrm:P89_falls_within>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
</ecrm:P89_falls_within>
</xsl:when>
<xsl:when test="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid][tei:idno[@type='URI'][starts-with(.,'http://sws.geonames.org/')]]">
<xsl:when test="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid][tei:idno[@type='URI'][contains(.,'://sws.geonames.org/')]]">
<ecrm:P89_falls_within>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][starts-with(.,'http://sws.geonames.org/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][contains(.,'://sws.geonames.org/')][1]"/>
</xsl:attribute>
</ecrm:P89_falls_within>
</xsl:when>
......@@ -197,10 +197,10 @@
<!-- dauert lang; ggf. auskommentieren: -->
<xsl:variable name="wrkid" select="substring-after(@target,' wrk:')"/>
<xsl:choose>
<xsl:when test="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid][tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]]">
<xsl:when test="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid][tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]]">
<ecrm:P89_falls_within>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
</ecrm:P89_falls_within>
</xsl:when>
......@@ -225,11 +225,11 @@
<rdf:Description>
<xsl:attribute name="rdf:about">
<xsl:choose>
<xsl:when test="tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]">
<xsl:value-of select="tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:when test="tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]">
<xsl:value-of select="tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:when>
<xsl:when test="tei:idno[@type='URI'][starts-with(.,'http://www.wikidata.org/')]">
<xsl:value-of select="tei:idno[@type='URI'][starts-with(.,'http://www.wikidata.org/')][1]"/>
<xsl:when test="tei:idno[@type='URI'][contains(.,'://www.wikidata.org/')]">
<xsl:value-of select="tei:idno[@type='URI'][contains(.,'://www.wikidata.org/')][1]"/>
</xsl:when>
</xsl:choose>
</xsl:attribute>
......@@ -249,10 +249,10 @@
<!-- dauert lang; ggf. auskommentieren: -->
<xsl:for-each select="tei:linkGrp/tei:link[@ana = 'http://erlangen-crm.org/current/P107_has_current_or_former_member']">
<xsl:variable name="psnid" select="substring-after(@target,' psn:')"/>
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-person?select=*.xml;recurse=no')//tei:person[@xml:id eq $psnid][tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]]">
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-person?select=*.xml;recurse=no')//tei:person[@xml:id eq $psnid][tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]]">
<ecrm:P107_has_current_or_former_member>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-person?select=*.xml;recurse=no')//tei:person[@xml:id eq $psnid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-person?select=*.xml;recurse=no')//tei:person[@xml:id eq $psnid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
</ecrm:P107_has_current_or_former_member>
</xsl:if>
......@@ -260,10 +260,10 @@
<xsl:for-each select="tei:linkGrp/tei:link[@ana = 'http://erlangen-crm.org/current/P74_has_current_or_former_residence']">
<xsl:variable name="plcid" select="substring-after(@target,' plc:')"/>
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid][tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]]">
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid][tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]]">
<ecrm:P74_has_current_or_former_residence>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
</ecrm:P74_has_current_or_former_residence>
</xsl:if>
......@@ -273,10 +273,10 @@
<xsl:for-each select="tei:linkGrp/tei:link[@ana = 'http://purl.org/dc/elements/1.1/creator']">
<xsl:variable name="wrkid" select="substring-after(substring-before(@target,' '),'wrk:')"/>
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid][tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]]">
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid][tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]]">
<foaf:made>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
</foaf:made>
</xsl:if>
......@@ -290,10 +290,10 @@
<xsl:template match="tei:person[tei:idno[@type='URI']]">
<rdf:Description>
<xsl:attribute name="rdf:about">
<xsl:value-of select="tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
<xsl:if test="tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]">
<xsl:if test="tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]">
<xsl:if test="tei:idno[@type='URI'][starts-with(.,'http://vocab.getty.edu/ulan/')]">
<owl:sameAs>
<xsl:attribute name="rdf:resource">
......@@ -317,7 +317,7 @@
</xsl:if>
</xsl:if>
<xsl:for-each select="tei:idno[@type='URI'][not(starts-with(.,'http://d-nb.info/gnd/'))][not(contains(.,'ta.sandrart.net'))][not(starts-with(.,'http://www.wikidata.org/'))][not(starts-with(.,'http://vocab.getty.edu/ulan/'))][not(starts-with(.,'https://rkd.nl/'))]">
<xsl:for-each select="tei:idno[@type='URI'][not(contains(.,'://d-nb.info/gnd/'))][not(contains(.,'ta.sandrart.net'))][not(contains(.,'://www.wikidata.org/'))][not(starts-with(.,'http://vocab.getty.edu/ulan/'))][not(starts-with(.,'https://rkd.nl/'))]">
<foaf:page>
<xsl:attribute name="rdf:resource" select="."/>
</foaf:page>
......@@ -466,10 +466,10 @@
<!-- dauert lang; ggf. auskommentieren: -->
<xsl:for-each select="tei:linkGrp/tei:link[@ana = 'http://purl.org/dc/elements/1.1/creator']">
<xsl:variable name="wrkid" select="substring-after(substring-before(@target,' '),'wrk:')"/>
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')/tei:TEI/tei:text/tei:body/tei:list/tei:item[@xml:id eq $wrkid][tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]]">
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')/tei:TEI/tei:text/tei:body/tei:list/tei:item[@xml:id eq $wrkid][tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]]">
<foaf:made>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')/tei:TEI/tei:text/tei:body/tei:list/tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')/tei:TEI/tei:text/tei:body/tei:list/tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
</foaf:made>
</xsl:if>
......@@ -484,8 +484,8 @@
<rdf:Description>
<xsl:attribute name="rdf:about">
<xsl:choose>
<xsl:when test="tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]">
<xsl:value-of select="tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:when test="tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]">
<xsl:value-of select="tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:when>
<xsl:when test="tei:idno[@type='URI'][contains(.,'ta.sandrart.net')]">
<xsl:value-of select="tei:idno[@type='URI'][contains(.,'ta.sandrart.net')][1]"/>
......@@ -493,7 +493,7 @@
</xsl:choose>
</xsl:attribute>
<xsl:if test="tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]">
<xsl:if test="tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]">
<xsl:if test="tei:idno[@type='URI'][contains(.,'ta.sandrart.net')]">
<owl:sameAs>
<xsl:attribute name="rdf:resource">
......@@ -503,7 +503,7 @@
</xsl:if>
</xsl:if>
<xsl:for-each select="tei:idno[@type='URI'][not(starts-with(.,'http://d-nb.info/gnd/'))][not(contains(.,'ta.sandrart.net'))][not(starts-with(.,'http://www.wikidata.org/'))]">
<xsl:for-each select="tei:idno[@type='URI'][not(contains(.,'://d-nb.info/gnd/'))][not(contains(.,'ta.sandrart.net'))][not(contains(.,'://www.wikidata.org/'))]">
<foaf:page>
<xsl:attribute name="rdf:resource" select="."/>
</foaf:page>
......@@ -607,20 +607,20 @@
<xsl:choose>
<xsl:when test="starts-with(substring-after(@target, ' '), 'plc:')">
<xsl:variable name="plcid" select="substring-after(@target, ' plc:')"/>
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]">
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]">
<ecrm:P53_has_former_or_current_location>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
</ecrm:P53_has_former_or_current_location>
</xsl:if>
</xsl:when>
<xsl:when test="starts-with(substring-after(@target, ' '), '#')">
<xsl:variable name="wrkid" select="substring-after(@target, ' #')"/>
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]">
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]">
<ecrm:P53_has_former_or_current_location>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
</ecrm:P53_has_former_or_current_location>
</xsl:if>
......@@ -634,20 +634,20 @@
<xsl:choose>
<xsl:when test="starts-with(substring-after(@target, ' '), 'plc:')">
<xsl:variable name="plcid" select="substring-after(@target, ' plc:')"/>
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]">
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]">
<ecrm:P53i_is_former_or_current_location_of>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
</ecrm:P53i_is_former_or_current_location_of>
</xsl:if>
</xsl:when>
<xsl:when test="starts-with(substring-after(@target, ' '), '#')">
<xsl:variable name="wrkid" select="substring-after(@target, ' #')"/>
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]">
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]">
<ecrm:P53i_is_former_or_current_location_of>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
</ecrm:P53i_is_former_or_current_location_of>
</xsl:if>
......@@ -661,30 +661,30 @@
<xsl:choose>
<xsl:when test="starts-with(substring-after(@target, ' '), 'plc:')">
<xsl:variable name="plcid" select="substring-after(@target, ' plc:')"/>
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]">
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]">
<ecrm:P62_depicts>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//tei:place[@xml:id eq $plcid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
</ecrm:P62_depicts>
</xsl:if>
</xsl:when>
<xsl:when test="starts-with(substring-after(@target, ' '), '#')">
<xsl:variable name="wrkid" select="substring-after(@target, ' #')"/>
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]">
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]">
<ecrm:P62_depicts>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//tei:item[@xml:id eq $wrkid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
</ecrm:P62_depicts>
</xsl:if>
</xsl:when>
<xsl:when test="starts-with(substring-after(@target, ' '), 'psn:')">
<xsl:variable name="psnid" select="substring-after(@target, ' psn:')"/>
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-person?select=*.xml;recurse=no')//*[@xml:id eq $psnid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]">
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-person?select=*.xml;recurse=no')//*[@xml:id eq $psnid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]">
<ecrm:P62_depicts>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-person?select=*.xml;recurse=no')//*[@xml:id eq $psnid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-person?select=*.xml;recurse=no')//*[@xml:id eq $psnid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
</ecrm:P62_depicts>
</xsl:if>
......@@ -767,20 +767,20 @@
<xsl:variable name="objectid" select="substring-after(@ref,':')"/>
<xsl:choose>
<xsl:when test="@type eq 'person'">
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-person?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]">
<xsl:if test="collection('file://///C:/Users/iglesia/Documents/Register/register-person?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]">
<edm:hasMet>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-person?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-person?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
</edm:hasMet>
</xsl:if>
</xsl:when>
<xsl:when test="@type eq 'work'">
<xsl:choose>
<xsl:when test="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]">
<xsl:when test="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]">
<edm:hasMet>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-work?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
</edm:hasMet>
</xsl:when>
......@@ -795,17 +795,17 @@
</xsl:when>
<xsl:when test="@type eq 'org'">
<xsl:choose>
<xsl:when test="collection('file://///C:/Users/iglesia/Documents/Register/register-org?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]">
<xsl:when test="collection('file://///C:/Users/iglesia/Documents/Register/register-org?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]">
<edm:hasMet>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-org?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-org?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
</edm:hasMet>
</xsl:when>
<xsl:when test="collection('file://///C:/Users/iglesia/Documents/Register/register-org?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][starts-with(.,'http://www.wikidata.org/')]">
<xsl:when test="collection('file://///C:/Users/iglesia/Documents/Register/register-org?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][contains(.,'://www.wikidata.org/')]">
<edm:hasMet>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-org?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][starts-with(.,'http://www.wikidata.org/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-org?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][contains(.,'://www.wikidata.org/')][1]"/>
</xsl:attribute>
</edm:hasMet>
</xsl:when>
......@@ -813,17 +813,17 @@
</xsl:when>
<xsl:when test="@type eq 'place'">
<xsl:choose>
<xsl:when test="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')]">
<xsl:when test="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')]">
<edm:hasMet>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][starts-with(.,'http://d-nb.info/gnd/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][contains(.,'://d-nb.info/gnd/')][1]"/>
</xsl:attribute>
</edm:hasMet>
</xsl:when>
<xsl:when test="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][starts-with(.,'http://sws.geonames.org/')]">
<xsl:when test="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][contains(.,'://sws.geonames.org/')]">
<edm:hasMet>
<xsl:attribute name="rdf:resource">
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][starts-with(.,'http://sws.geonames.org/')][1]"/>
<xsl:value-of select="collection('file://///C:/Users/iglesia/Documents/Register/register-place?select=*.xml;recurse=no')//*[@xml:id eq $objectid]/tei:idno[@type='URI'][contains(.,'://sws.geonames.org/')][1]"/>
</xsl:attribute>
</edm:hasMet>
</xsl:when>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment