]> Lady’s Gitweb - Vocab/blobdiff - transforms/terms.xslt
Make pcdm:File a siocactions:DigitalArtifact
[Vocab] / transforms / terms.xslt
index 20875c19c2b3134abb5b15ffb3d931d09df54ed5..796c55f7dc2edd531162b7012f1ef88ce1fd92ca 100644 (file)
@@ -257,149 +257,167 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                </copy>
        </template>
        <template match="html:article[rdf:RDF]">
                </copy>
        </template>
        <template match="html:article[rdf:RDF]">
-               <for-each select="rdf:RDF">
-                       <for-each select="//owl:Ontology[1]">
-                               <element name="hgroup" namespace="&xhtml;">
-                                       <element name="h1" namespace="&xhtml;">
+               <copy>
+                       <copy-of select="@*"/>
+                       <for-each select="rdf:RDF">
+                               <for-each select="//owl:Ontology[1]">
+                                       <element name="meta" namespace="&xhtml;">
+                                               <attribute name="itemprop">
+                                                       <text>urn:fdc:ladys.computer:20231231:Shu1She4:title</text>
+                                               </attribute>
                                                <attribute name="lang">
                                                        <value-of select="rdfs:label[1]/@xml:lang"/>
                                                </attribute>
                                                <attribute name="xml:lang">
                                                        <value-of select="rdfs:label[1]/@xml:lang"/>
                                                </attribute>
                                                <attribute name="lang">
                                                        <value-of select="rdfs:label[1]/@xml:lang"/>
                                                </attribute>
                                                <attribute name="xml:lang">
                                                        <value-of select="rdfs:label[1]/@xml:lang"/>
                                                </attribute>
-                                               <value-of select="rdfs:label[1]"/>
+                                               <attribute name="content">
+                                                       <value-of select="//owl:Ontology[1]/rdfs:label[1]"/>
+                                               </attribute>
                                        </element>
                                        </element>
-                                       <element name="p" namespace="&xhtml;">
-                                               <text>An ontology.</text>
+                                       <element name="hgroup" namespace="&xhtml;">
+                                               <element name="h1" namespace="&xhtml;">
+                                                       <attribute name="lang">
+                                                               <value-of select="rdfs:label[1]/@xml:lang"/>
+                                                       </attribute>
+                                                       <attribute name="xml:lang">
+                                                               <value-of select="rdfs:label[1]/@xml:lang"/>
+                                                       </attribute>
+                                                       <value-of select="rdfs:label[1]"/>
+                                               </element>
+                                               <element name="p" namespace="&xhtml;">
+                                                       &en;
+                                                       <text>An ontology.</text>
+                                               </element>
                                        </element>
                                        </element>
-                               </element>
-                               <element name="div" namespace="&xhtml;">
-                                       <attribute name="class">
-                                               <text>owl</text>
-                                       </attribute>
-                                       <element name="dl" namespace="&xhtml;">
-                                               <element name="div" namespace="&xhtml;">
-                                                       <element name="dt" namespace="&xhtml;">
-                                                               <element name="abbr" namespace="&xhtml;">
-                                                                       &en;
-                                                                       <attribute name="title">
-                                                                               <text>Internationalized Resource Identifier</text>
-                                                                       </attribute>
-                                                                       <text>I·R·I</text>
+                                       <element name="div" namespace="&xhtml;">
+                                               <attribute name="class">
+                                                       <text>owl</text>
+                                               </attribute>
+                                               <element name="dl" namespace="&xhtml;">
+                                                       <element name="div" namespace="&xhtml;">
+                                                               <element name="dt" namespace="&xhtml;">
+                                                                       <element name="abbr" namespace="&xhtml;">
+                                                                               &en;
+                                                                               <attribute name="title">
+                                                                                       <text>Internationalized Resource Identifier</text>
+                                                                               </attribute>
+                                                                               <text>I·R·I</text>
+                                                                       </element>
                                                                </element>
                                                                </element>
-                                                       </element>
-                                                       <element name="dd" namespace="&xhtml;">
-                                                               <element name="a" namespace="&xhtml;">
-                                                                       <attribute name="href">
-                                                                               <value-of select="@rdf:about"/>
-                                                                       </attribute>
-                                                                       <element name="code" namespace="&xhtml;">
-                                                                               <value-of select="@rdf:about"/>
+                                                               <element name="dd" namespace="&xhtml;">
+                                                                       <element name="a" namespace="&xhtml;">
+                                                                               <attribute name="href">
+                                                                                       <value-of select="@rdf:about"/>
+                                                                               </attribute>
+                                                                               <element name="code" namespace="&xhtml;">
+                                                                                       <value-of select="@rdf:about"/>
+                                                                               </element>
                                                                        </element>
                                                                </element>
                                                        </element>
                                                </element>
                                        </element>
                                                                        </element>
                                                                </element>
                                                        </element>
                                                </element>
                                        </element>
-                               </element>
-                               <apply-templates select="rdfs:comment[1]/html:div" mode="Vocab:render-term"/>
-                               <element name="section" namespace="&xhtml;">
-                                       <element name="h2" namespace="&xhtml;">
-                                               &en;
-                                               <text>List of Name·spaces</text>
-                                       </element>
-                                       <element name="table" namespace="&xhtml;">
-                                               <element name="thead" namespace="&xhtml;">
-                                                       <element name="tr" namespace="&xhtml;">
-                                                               <element name="th" namespace="&xhtml;">
-                                                                       &en;
-                                                                       <attribute name="scope">
-                                                                               <text>col</text>
-                                                                       </attribute>
-                                                                       Prefix
-                                                               </element>
-                                                               <element name="th" namespace="&xhtml;">
-                                                                       &en;
-                                                                       <attribute name="scope">
-                                                                               <text>col</text>
-                                                                       </attribute>
-                                                                       Name·space I·R·I
-                                                               </element>
-                                                       </element>
+                                       <apply-templates select="rdfs:comment[1]/html:div" mode="Vocab:render-term"/>
+                                       <element name="section" namespace="&xhtml;">
+                                               <element name="h2" namespace="&xhtml;">
+                                                       &en;
+                                                       <text>List of Name·spaces</text>
                                                </element>
                                                </element>
-                                               <element name="tbody" namespace="&xhtml;">
-                                                       <for-each select="shacl:declare[shacl:prefix!='']">
-                                                               <sort select="shacl:prefix"/>
+                                               <element name="table" namespace="&xhtml;">
+                                                       <element name="thead" namespace="&xhtml;">
                                                                <element name="tr" namespace="&xhtml;">
                                                                        <element name="th" namespace="&xhtml;">
                                                                <element name="tr" namespace="&xhtml;">
                                                                        <element name="th" namespace="&xhtml;">
+                                                                               &en;
                                                                                <attribute name="scope">
                                                                                <attribute name="scope">
-                                                                                       <text>row</text>
+                                                                                       <text>col</text>
                                                                                </attribute>
                                                                                </attribute>
-                                                                               <element name="code" namespace="&xhtml;">
-                                                                                       <value-of select="shacl:prefix"/>
-                                                                                       <text>:</text>
-                                                                               </element>
+                                                                               Prefix
                                                                        </element>
                                                                        </element>
-                                                                       <element name="td" namespace="&xhtml;">
-                                                                               <element name="code" namespace="&xhtml;">
-                                                                                       <value-of select="shacl:namespace"/>
-                                                                               </element>
+                                                                       <element name="th" namespace="&xhtml;">
+                                                                               &en;
+                                                                               <attribute name="scope">
+                                                                                       <text>col</text>
+                                                                               </attribute>
+                                                                               Name·space I·R·I
                                                                        </element>
                                                                </element>
                                                                        </element>
                                                                </element>
-                                                       </for-each>
+                                                       </element>
+                                                       <element name="tbody" namespace="&xhtml;">
+                                                               <for-each select="shacl:declare[shacl:prefix!='']">
+                                                                       <sort select="shacl:prefix"/>
+                                                                       <element name="tr" namespace="&xhtml;">
+                                                                               <element name="th" namespace="&xhtml;">
+                                                                                       <attribute name="scope">
+                                                                                               <text>row</text>
+                                                                                       </attribute>
+                                                                                       <element name="code" namespace="&xhtml;">
+                                                                                               <value-of select="shacl:prefix"/>
+                                                                                               <text>:</text>
+                                                                                       </element>
+                                                                               </element>
+                                                                               <element name="td" namespace="&xhtml;">
+                                                                                       <element name="code" namespace="&xhtml;">
+                                                                                               <value-of select="shacl:namespace"/>
+                                                                                       </element>
+                                                                               </element>
+                                                                       </element>
+                                                               </for-each>
+                                                       </element>
                                                </element>
                                        </element>
                                                </element>
                                        </element>
-                               </element>
+                                       <element name="section" namespace="&xhtml;">
+                                               <element name="h2" namespace="&xhtml;">
+                                                       &en;
+                                                       <text>Terms Defined By </text>
+                                                       <element name="cite" namespace="&xhtml;">
+                                                               <attribute name="lang">
+                                                                       <value-of select="rdfs:label[1]/@xml:lang"/>
+                                                               </attribute>
+                                                               <attribute name="xml:lang">
+                                                                       <value-of select="rdfs:label[1]/@xml:lang"/>
+                                                               </attribute>
+                                                               <value-of select="rdfs:label[1]"/>
+                                                       </element>
+                                               </element>
+                                               <call-template name="Vocab:list-all-terms"/>
+                                       </element>
+                               </for-each>
                                <element name="section" namespace="&xhtml;">
                                        <element name="h2" namespace="&xhtml;">
                                                &en;
                                <element name="section" namespace="&xhtml;">
                                        <element name="h2" namespace="&xhtml;">
                                                &en;
-                                               <text>Terms Defined By </text>
-                                               <element name="cite" namespace="&xhtml;">
-                                                       <attribute name="lang">
-                                                               <value-of select="rdfs:label[1]/@xml:lang"/>
-                                                       </attribute>
-                                                       <attribute name="xml:lang">
-                                                               <value-of select="rdfs:label[1]/@xml:lang"/>
-                                                       </attribute>
-                                                       <value-of select="rdfs:label[1]"/>
-                                               </element>
+                                               <text>Terms Defined Else·where</text>
                                        </element>
                                        </element>
-                                       <call-template name="Vocab:list-all-terms"/>
-                               </element>
-                       </for-each>
-                       <element name="section" namespace="&xhtml;">
-                               <element name="h2" namespace="&xhtml;">
-                                       &en;
-                                       <text>Terms Defined Else·where</text>
-                               </element>
-                               <for-each select="//owl:NamedIndividual">
-                                       <sort select="rdfs:label" lang="en"/>
-                                       <if test="(//rdfs:isDefinedBy|//rdfs:isDefinedBy/anno:ResourceSelection/anno:hasSource)[string(@rdf:resource)=string(current()/@rdf:about)]">
-                                               <element name="section" namespace="&xhtml;">
-                                                       <element name="h3" namespace="&xhtml;">
-                                                               <element name="a" namespace="&xhtml;">
-                                                                       <attribute name="href">
-                                                                               <value-of select="@rdf:about"/>
-                                                                       </attribute>
-                                                                       <element name="cite" namespace="&xhtml;">
-                                                                               <attribute name="lang">
-                                                                                       <value-of select="rdfs:label[1]/@xml:lang"/>
-                                                                               </attribute>
-                                                                               <attribute name="xml:lang">
-                                                                                       <value-of select="rdfs:label[1]/@xml:lang"/>
+                                       <for-each select="//owl:NamedIndividual">
+                                               <sort select="rdfs:label" lang="en"/>
+                                               <if test="(//rdfs:isDefinedBy|//rdfs:isDefinedBy/anno:ResourceSelection/anno:hasSource)[string(@rdf:resource)=string(current()/@rdf:about)]">
+                                                       <element name="section" namespace="&xhtml;">
+                                                               <element name="h3" namespace="&xhtml;">
+                                                                       <element name="a" namespace="&xhtml;">
+                                                                               <attribute name="href">
+                                                                                       <value-of select="@rdf:about"/>
                                                                                </attribute>
                                                                                </attribute>
-                                                                               <value-of select="rdfs:label[1]"/>
+                                                                               <element name="cite" namespace="&xhtml;">
+                                                                                       <attribute name="lang">
+                                                                                               <value-of select="rdfs:label[1]/@xml:lang"/>
+                                                                                       </attribute>
+                                                                                       <attribute name="xml:lang">
+                                                                                               <value-of select="rdfs:label[1]/@xml:lang"/>
+                                                                                       </attribute>
+                                                                                       <value-of select="rdfs:label[1]"/>
+                                                                               </element>
                                                                        </element>
                                                                </element>
                                                                        </element>
                                                                </element>
+                                                               <apply-templates select="rdfs:comment[1]/html:div" mode="Vocab:render-term"/>
+                                                               <call-template name="Vocab:list-all-terms">
+                                                                       <with-param name="source" select="@rdf:about"/>
+                                                               </call-template>
                                                        </element>
                                                        </element>
-                                                       <apply-templates select="rdfs:comment[1]/html:div" mode="Vocab:render-term"/>
-                                                       <call-template name="Vocab:list-all-terms">
-                                                               <with-param name="source" select="@rdf:about"/>
-                                                       </call-template>
-                                               </element>
-                                       </if>
-                               </for-each>
-                       </element>
-               </for-each>
+                                               </if>
+                                       </for-each>
+                               </element>
+                       </for-each>
+               </copy>
        </template>
        <template match="*[@rdf:about and (self::owl:AnnotationProperty or self::owl:Class or self::owl:DatatypeProperty or self::owl:NamedIndividual or self::owl:ObjectProperty or self::rdfs:Datatype)]" mode="Vocab:render-term" priority="2">
                <variable name="root" select="/"/>
        </template>
        <template match="*[@rdf:about and (self::owl:AnnotationProperty or self::owl:Class or self::owl:DatatypeProperty or self::owl:NamedIndividual or self::owl:ObjectProperty or self::rdfs:Datatype)]" mode="Vocab:render-term" priority="2">
                <variable name="root" select="/"/>
@@ -461,6 +479,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                <text>)</text>
                        </element>
                        <element name="p" namespace="&xhtml;">
                                <text>)</text>
                        </element>
                        <element name="p" namespace="&xhtml;">
+                               &en;
                                <choose>
                                        <when test="self::owl:Class">
                                                <text>A class.</text>
                                <choose>
                                        <when test="self::owl:Class">
                                                <text>A class.</text>
@@ -748,6 +767,24 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                </choose>
                                        </element>
                                </if>
                                                </choose>
                                        </element>
                                </if>
+                               <if test="owl:disjointUnionOf">
+                                       <element name="div" namespace="&xhtml;">
+                                               <element name="dt" namespace="&xhtml;">
+                                                       &en;
+                                                       <text>Disjoint Union Of</text>
+                                               </element>
+                                               <for-each select="owl:disjointUnionOf">
+                                                       <element name="dd" namespace="&xhtml;">
+                                                               <for-each select="*">
+                                                                       <apply-templates select="." mode="Vocab:render-class"/>
+                                                                       <if test="position()&lt;last()">
+                                                                               <text>, </text>
+                                                                       </if>
+                                                               </for-each>
+                                                       </element>
+                                               </for-each>
+                                       </element>
+                               </if>
                                <if test="$inverses">
                                        <choose>
                                                <when test="$kind='class'">
                                <if test="$inverses">
                                        <choose>
                                                <when test="$kind='class'">
@@ -882,32 +919,6 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                </for-each>
                                        </element>
                                </if>
                                                </for-each>
                                        </element>
                                </if>
-                               <if test="rdfs:domain">
-                                       <element name="div" namespace="&xhtml;">
-                                               <element name="dt" namespace="&xhtml;">
-                                                       &en;
-                                                       <text>Domain</text>
-                                               </element>
-                                               <for-each select="rdfs:domain">
-                                                       <element name="dd" namespace="&xhtml;">
-                                                               <apply-templates select="(@rdf:resource|*)[1]" mode="Vocab:render-class"/>
-                                                       </element>
-                                               </for-each>
-                                       </element>
-                               </if>
-                               <if test="rdfs:range">
-                                       <element name="div" namespace="&xhtml;">
-                                               <element name="dt" namespace="&xhtml;">
-                                                       &en;
-                                                       <text>Range</text>
-                                               </element>
-                                               <for-each select="rdfs:range">
-                                                       <element name="dd" namespace="&xhtml;">
-                                                               <apply-templates select="(@rdf:resource|*)[1]" mode="Vocab:render-class"/>
-                                                       </element>
-                                               </for-each>
-                                       </element>
-                               </if>
                                <if test="$disjoints">
                                        <choose>
                                                <when test="$kind='class'">
                                <if test="$disjoints">
                                        <choose>
                                                <when test="$kind='class'">
@@ -944,6 +955,32 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                </when>
                                        </choose>
                                </if>
                                                </when>
                                        </choose>
                                </if>
+                               <if test="rdfs:domain">
+                                       <element name="div" namespace="&xhtml;">
+                                               <element name="dt" namespace="&xhtml;">
+                                                       &en;
+                                                       <text>Domain</text>
+                                               </element>
+                                               <for-each select="rdfs:domain">
+                                                       <element name="dd" namespace="&xhtml;">
+                                                               <apply-templates select="(@rdf:resource|*)[1]" mode="Vocab:render-class"/>
+                                                       </element>
+                                               </for-each>
+                                       </element>
+                               </if>
+                               <if test="rdfs:range">
+                                       <element name="div" namespace="&xhtml;">
+                                               <element name="dt" namespace="&xhtml;">
+                                                       &en;
+                                                       <text>Range</text>
+                                               </element>
+                                               <for-each select="rdfs:range">
+                                                       <element name="dd" namespace="&xhtml;">
+                                                               <apply-templates select="(@rdf:resource|*)[1]" mode="Vocab:render-class"/>
+                                                       </element>
+                                               </for-each>
+                                       </element>
+                               </if>
                                <if test="skos:inScheme">
                                        <element name="div" namespace="&xhtml;">
                                                <element name="dt" namespace="&xhtml;">
                                <if test="skos:inScheme">
                                        <element name="div" namespace="&xhtml;">
                                                <element name="dt" namespace="&xhtml;">
@@ -960,6 +997,38 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                </for-each>
                                        </element>
                                </if>
                                                </for-each>
                                        </element>
                                </if>
+                               <if test="skos:broader">
+                                       <element name="div" namespace="&xhtml;">
+                                               <element name="dt" namespace="&xhtml;">
+                                                       &en;
+                                                       <text>Has Broader</text>
+                                               </element>
+                                               <for-each select="skos:broader">
+                                                       <element name="dd" namespace="&xhtml;">
+                                                               <call-template name="Vocab:link-to">
+                                                                       <with-param name="resource" select="string(@rdf:resource)"/>
+                                                                       <with-param name="kind" select="'individual'"/>
+                                                               </call-template>
+                                                       </element>
+                                               </for-each>
+                                       </element>
+                               </if>
+                               <if test="skos:narrower">
+                                       <element name="div" namespace="&xhtml;">
+                                               <element name="dt" namespace="&xhtml;">
+                                                       &en;
+                                                       <text>Has Narrower</text>
+                                               </element>
+                                               <for-each select="skos:narrower">
+                                                       <element name="dd" namespace="&xhtml;">
+                                                               <call-template name="Vocab:link-to">
+                                                                       <with-param name="resource" select="string(@rdf:resource)"/>
+                                                                       <with-param name="kind" select="'individual'"/>
+                                                               </call-template>
+                                                       </element>
+                                               </for-each>
+                                       </element>
+                               </if>
                                <if test="rdfs:isDefinedBy[not(starts-with(@rdf:resource, $base-iri))]">
                                        <element name="div" namespace="&xhtml;">
                                                <element name="dt" namespace="&xhtml;">
                                <if test="rdfs:isDefinedBy[not(starts-with(@rdf:resource, $base-iri))]">
                                        <element name="div" namespace="&xhtml;">
                                                <element name="dt" namespace="&xhtml;">
This page took 0.200953 seconds and 4 git commands to generate.