]> Lady’s Gitweb - Vocab/blobdiff - transforms/terms.xslt
Add .rsync-filter
[Vocab] / transforms / terms.xslt
index 9613e63990c344f176f6a3e6712306614d85a991..381c556777e3e635b72d9d8239d469e26bbeda88 100644 (file)
@@ -70,20 +70,27 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                <value-of select="$kind"/>
                                        </attribute>
                                        <attribute name="href">
                                                <value-of select="$kind"/>
                                        </attribute>
                                        <attribute name="href">
-                                               <text>/terms/</text>
                                                <choose>
                                                <choose>
-                                                       <when test="$kind='class'">
-                                                               <text>classes/</text>
-                                                       </when>
-                                                       <when test="$kind='property'">
-                                                               <text>properties/</text>
+                                                       <when test="$curie=string($resource)">
+                                                               <value-of select="$resource"/>
                                                        </when>
                                                        <otherwise>
                                                        </when>
                                                        <otherwise>
-                                                               <text>individuals/</text>
+                                                               <text>/terms/</text>
+                                                               <choose>
+                                                                       <when test="$kind='class'">
+                                                                               <text>classes/</text>
+                                                                       </when>
+                                                                       <when test="$kind='property'">
+                                                                               <text>properties/</text>
+                                                                       </when>
+                                                                       <otherwise>
+                                                                               <text>individuals/</text>
+                                                                       </otherwise>
+                                                               </choose>
+                                                               <value-of select="$localid"/>
+                                                               <text>.xhtml</text>
                                                        </otherwise>
                                                </choose>
                                                        </otherwise>
                                                </choose>
-                                               <value-of select="$localid"/>
-                                               <text>.xhtml</text>
                                        </attribute>
                                        <for-each select="key(concat('Vocab:named-', $kind), $resource)[1]">
                                                <if test="not($full)">
                                        </attribute>
                                        <for-each select="key(concat('Vocab:named-', $kind), $resource)[1]">
                                                <if test="not($full)">
@@ -263,6 +270,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
                                                <value-of select="rdfs:label[1]"/>
                                        </element>
                                        <element name="p" namespace="&xhtml;">
                                                <value-of select="rdfs:label[1]"/>
                                        </element>
                                        <element name="p" namespace="&xhtml;">
+                                               &en;
                                                <text>An ontology.</text>
                                        </element>
                                </element>
                                                <text>An ontology.</text>
                                        </element>
                                </element>
@@ -454,6 +462,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>
@@ -953,6 +962,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.028293 seconds and 4 git commands to generate.