3 SPDX-FileCopyrightText: 2024, 2025 Lady <https://www.ladys.computer/about/#lady>
4 SPDX-License-Identifier: MPL-2.0
7 © 2024–2025 Lady [@ Ladys Computer].
9 This Source Code Form is subject to the terms of the Mozilla Public License, v 2.0.
10 If a copy of the M·P·L was not distributed with this file, You can obtain one at <https://mozilla.org/MPL/2.0/>.
13 <!ENTITY en '<attribute xmlns="http://www.w3.org/1999/XSL/Transform" name="lang"><text>en</text></attribute><attribute xmlns="http://www.w3.org/1999/XSL/Transform" name="xml:lang"><text>en</text></attribute>'>
14 <!ENTITY xhtml 'http://www.w3.org/1999/xhtml'>
17 xmlns="http://www.w3.org/1999/XSL/Transform"
18 xmlns:Vocab="urn:fdc:vocab.ladys.computer:20240731:ns"
19 xmlns:anno="http://www.w3.org/ns/oa#"
20 xmlns:html="http://www.w3.org/1999/xhtml"
21 xmlns:owl="http://www.w3.org/2002/07/owl#"
22 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
23 xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
24 xmlns:shacl="http://www.w3.org/ns/shacl#"
25 xmlns:skos="http://www.w3.org/2004/02/skos/core#"
26 xmlns:vocabstatus="http://www.w3.org/2003/06/sw-vocab-status/ns#"
27 xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
28 exclude-result-prefixes="Vocab"
31 <书社:id>urn:fdc:vocab.ladys.computer:20240731:transforms:terms.xslt</书社:id>
32 <key name="Vocab:named-class" match="owl:Class|rdfs:Datatype" use="@rdf:about"/>
33 <key name="Vocab:named-property" match="owl:AnnotationProperty|owl:DatatypeProperty|owl:ObjectProperty" use="@rdf:about"/>
34 <key name="Vocab:named-individual" match="owl:NamedIndividual" use="@rdf:about|owl:sameAs/@rdf:resource"/>
35 <key name="Vocab:subclass" match="owl:Class|owl:Restriction" use="rdfs:subClassOf/@rdf:resource"/>
36 <key name="Vocab:subproperty" match="owl:AnnotationProperty|owl:DatatypeProperty|owl:ObjectProperty" use="rdfs:subPropertyOf/@rdf:resource"/>
37 <template name="Vocab:link-to">
38 <param name="resource"/>
39 <param name="kind" select="'individual'"/>
40 <param name="full" select="true()"/>
41 <variable name="base-prefix">
42 <call-template name="Vocab:prefix">
43 <with-param name="unprefixed">
44 <call-template name="Vocab:base"/>
48 <variable name="curie">
49 <call-template name="Vocab:prefix">
50 <with-param name="unprefixed" select="string($resource)"/>
53 <variable name="localid">
55 <when test="starts-with($curie, $base-prefix)">
56 <value-of select="substring-after($curie, $base-prefix)"/>
59 <value-of select="$curie"/>
63 <element name="a" namespace="&xhtml;">
65 <when test="key(concat('Vocab:named-', $kind), $resource)">
66 <attribute name="data-curie">
67 <value-of select="$curie"/>
69 <attribute name="data-kind">
70 <value-of select="$kind"/>
72 <attribute name="href">
75 <when test="$kind='class'">
78 <when test="$kind='property'">
79 <text>properties/</text>
82 <text>individuals/</text>
85 <value-of select="$localid"/>
88 <for-each select="key(concat('Vocab:named-', $kind), $resource)[1]">
89 <if test="not($full)">
90 <attribute name="title">
91 <value-of select="rdfs:label[1]"/>
93 <value-of select="$curie"/>
97 <variable name="wrappername">
99 <when test="substring($localid, 1, 1)='(' and substring($localid, string-length($localid), 1)=')'">
107 <element name="{$wrappername}" namespace="&xhtml;">
108 <attribute name="lang">
109 <value-of select="rdfs:label[1]/@xml:lang"/>
111 <attribute name="xml:lang">
112 <value-of select="rdfs:label[1]/@xml:lang"/>
114 <value-of select="rdfs:label[1]"/>
118 <element name="small" namespace="&xhtml;">
120 <element name="code" namespace="&xhtml;">
121 <value-of select="$curie"/>
129 <attribute name="href">
130 <value-of select="$resource"/>
132 <element name="code" namespace="&xhtml;">
133 <value-of select="$curie"/>
139 <template name="Vocab:list-all-terms">
140 <param name="source"/>
141 <call-template name="Vocab:list-terms">
142 <with-param name="source" select="$source"/>
143 <with-param name="selector" select="'Class'"/>
145 <call-template name="Vocab:list-terms">
146 <with-param name="source" select="$source"/>
147 <with-param name="selector" select="'Datatype'"/>
149 <call-template name="Vocab:list-terms">
150 <with-param name="source" select="$source"/>
151 <with-param name="selector" select="'AnnotationProperty'"/>
153 <call-template name="Vocab:list-terms">
154 <with-param name="source" select="$source"/>
155 <with-param name="selector" select="'ObjectProperty'"/>
157 <call-template name="Vocab:list-terms">
158 <with-param name="source" select="$source"/>
159 <with-param name="selector" select="'DatatypeProperty'"/>
161 <call-template name="Vocab:list-terms">
162 <with-param name="source" select="$source"/>
163 <with-param name="selector" select="'NamedIndividual'"/>
166 <template name="Vocab:list-terms">
167 <param name="source"/>
168 <param name="selector"/>
169 <variable name="base-iri">
170 <call-template name="Vocab:base"/>
172 <variable name="selection" select="//rdf:RDF//*[@rdf:about and local-name()=$selector and ($selector='Datatype' and namespace-uri()='http://www.w3.org/2000/01/rdf-schema#' or $selector!='Datatype' and namespace-uri()='http://www.w3.org/2002/07/owl#') and rdfs:isDefinedBy[starts-with(@rdf:resource, $base-iri)] and ($source='' and starts-with(@rdf:about, $base-iri) or (rdfs:isDefinedBy|rdfs:isDefinedBy/anno:ResourceSelection/anno:hasSource)[@rdf:resource=$source])]"/>
173 <if test="$selection">
174 <element name="nav" namespace="&xhtml;">
175 <element name="h4" namespace="&xhtml;">
178 <when test="$selector='Class'">
181 <when test="$selector='Datatype'">
182 <text>Datatypes</text>
184 <when test="$selector='AnnotationProperty'">
185 <text>Annotation Properties</text>
187 <when test="$selector='ObjectProperty'">
188 <text>Object Properties</text>
190 <when test="$selector='DatatypeProperty'">
191 <text>Data Properties</text>
193 <when test="$selector='NamedIndividual'">
194 <text>Named Individuals</text>
198 <element name="ul" namespace="&xhtml;">
199 <for-each select="$selection">
200 <sort select="rdfs:label[1]" lang="en"/>
201 <element name="li" namespace="&xhtml;">
202 <call-template name="Vocab:link-to">
203 <with-param name="resource" select="string(@rdf:about)"/>
204 <with-param name="kind">
206 <when test="$selector='Class' or $selector='Datatype'">
209 <when test="$selector='AnnotationProperty' or $selector='ObjectProperty' or $selector='DatatypeProperty'">
210 <text>property</text>
213 <text>individual</text>
224 <template match="/书社:archive">
225 <variable name="base-iri">
226 <call-template name="Vocab:base"/>
229 <apply-templates select="@*"/>
230 <apply-templates select="*[@书社:archived-as]"/>
231 <for-each select="rdf:RDF//*[(self::owl:AnnotationProperty or self::owl:Class or self::owl:DatatypeProperty or self::owl:NamedIndividual or self::owl:ObjectProperty or self::rdfs:Datatype) and rdfs:isDefinedBy[starts-with(@rdf:resource, $base-iri)]]">
232 <element name="article" namespace="&xhtml;">
233 <attribute name="class">
236 <attribute name="书社:archived-as">
237 <value-of select="translate(substring-after(rdfs:isDefinedBy[starts-with(@rdf:resource, $base-iri)]/@rdf:resource, $base-iri), ':[]', '¦__')"/>
239 <element name="header" namespace="&xhtml;">
240 <element name="a" namespace="&xhtml;">
241 <attribute name="href">
244 <text>Ladys Vocabulary</text>
247 <apply-templates select="." mode="Vocab:render-term"/>
252 <template match="html:article[rdf:RDF]">
253 <for-each select="rdf:RDF">
254 <for-each select="//owl:Ontology[1]">
255 <element name="hgroup" namespace="&xhtml;">
256 <element name="h1" namespace="&xhtml;">
257 <attribute name="lang">
258 <value-of select="rdfs:label[1]/@xml:lang"/>
260 <attribute name="xml:lang">
261 <value-of select="rdfs:label[1]/@xml:lang"/>
263 <value-of select="rdfs:label[1]"/>
265 <element name="p" namespace="&xhtml;">
266 <text>An ontology.</text>
269 <element name="div" namespace="&xhtml;">
270 <attribute name="class">
273 <element name="dl" namespace="&xhtml;">
274 <element name="div" namespace="&xhtml;">
275 <element name="dt" namespace="&xhtml;">
276 <element name="abbr" namespace="&xhtml;">
278 <attribute name="title">
279 <text>Internationalized Resource Identifier</text>
284 <element name="dd" namespace="&xhtml;">
285 <element name="a" namespace="&xhtml;">
286 <attribute name="href">
287 <value-of select="@rdf:about"/>
289 <element name="code" namespace="&xhtml;">
290 <value-of select="@rdf:about"/>
297 <apply-templates select="rdfs:comment[1]/html:div" mode="Vocab:render-term"/>
298 <element name="section" namespace="&xhtml;">
299 <element name="h2" namespace="&xhtml;">
301 <text>List of Name·spaces</text>
303 <element name="table" namespace="&xhtml;">
304 <element name="thead" namespace="&xhtml;">
305 <element name="tr" namespace="&xhtml;">
306 <element name="th" namespace="&xhtml;">
308 <attribute name="scope">
313 <element name="th" namespace="&xhtml;">
315 <attribute name="scope">
322 <element name="tbody" namespace="&xhtml;">
323 <for-each select="shacl:declare[shacl:prefix!='']">
324 <sort select="shacl:prefix"/>
325 <element name="tr" namespace="&xhtml;">
326 <element name="th" namespace="&xhtml;">
327 <attribute name="scope">
330 <element name="code" namespace="&xhtml;">
331 <value-of select="shacl:prefix"/>
335 <element name="td" namespace="&xhtml;">
336 <element name="code" namespace="&xhtml;">
337 <value-of select="shacl:namespace"/>
345 <element name="section" namespace="&xhtml;">
346 <element name="h2" namespace="&xhtml;">
348 <text>Terms Defined By </text>
349 <element name="cite" namespace="&xhtml;">
350 <attribute name="lang">
351 <value-of select="rdfs:label[1]/@xml:lang"/>
353 <attribute name="xml:lang">
354 <value-of select="rdfs:label[1]/@xml:lang"/>
356 <value-of select="rdfs:label[1]"/>
359 <call-template name="Vocab:list-all-terms"/>
362 <element name="section" namespace="&xhtml;">
363 <element name="h2" namespace="&xhtml;">
365 <text>Terms Defined Else·where</text>
367 <for-each select="//owl:NamedIndividual">
368 <sort select="rdfs:label" lang="en"/>
369 <if test="(//rdfs:isDefinedBy|//rdfs:isDefinedBy/anno:ResourceSelection/anno:hasSource)[string(@rdf:resource)=string(current()/@rdf:about)]">
370 <element name="section" namespace="&xhtml;">
371 <element name="h3" namespace="&xhtml;">
372 <element name="a" namespace="&xhtml;">
373 <attribute name="href">
374 <value-of select="@rdf:about"/>
376 <element name="cite" namespace="&xhtml;">
377 <attribute name="lang">
378 <value-of select="rdfs:label[1]/@xml:lang"/>
380 <attribute name="xml:lang">
381 <value-of select="rdfs:label[1]/@xml:lang"/>
383 <value-of select="rdfs:label[1]"/>
387 <apply-templates select="rdfs:comment[1]/html:div" mode="Vocab:render-term"/>
388 <call-template name="Vocab:list-all-terms">
389 <with-param name="source" select="@rdf:about"/>
397 <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">
398 <variable name="root" select="/"/>
399 <variable name="base-iri">
400 <call-template name="Vocab:base"/>
402 <variable name="kind">
404 <when test="self::owl:Class or self::rdfs:Datatype">
407 <when test="self::owl:AnnotationProperty or self::owl:ObjectProperty or self::owl:DatatypeProperty">
408 <text>property</text>
411 <text>individual</text>
415 <variable name="resource-context" select="string(@rdf:about)"/>
416 <variable name="equivalencies" select="Vocab:get-equivalents(., $kind)"/>
417 <variable name="supers" select="Vocab:get-transitives(., $kind, 'super')"/>
418 <variable name="inverses" select="Vocab:get-symmetrics(., $kind, 'inverse')"/>
419 <variable name="disjoints" select="Vocab:get-symmetrics(.|$supers, $kind, 'disjoint')"/>
420 <element name="meta" namespace="&xhtml;">
421 <attribute name="itemprop">
422 <text>urn:fdc:ladys.computer:20231231:Shu1She4:title</text>
424 <attribute name="content">
425 <value-of select="rdfs:label[1]"/>
427 <call-template name="Vocab:prefix">
428 <with-param name="unprefixed">
429 <value-of select="@rdf:about"/>
434 <value-of select="//rdf:RDF//owl:Ontology/rdfs:label"/>
437 <element name="hgroup" namespace="&xhtml;">
438 <element name="h1" namespace="&xhtml;">
439 <attribute name="lang">
440 <value-of select="rdfs:label[1]/@xml:lang"/>
442 <attribute name="xml:lang">
443 <value-of select="rdfs:label[1]/@xml:lang"/>
445 <value-of select="rdfs:label[1]"/>
447 <element name="p" namespace="&xhtml;">
449 <element name="code" namespace="&xhtml;">
450 <call-template name="Vocab:prefix">
451 <with-param name="unprefixed" select="@rdf:about"/>
456 <element name="p" namespace="&xhtml;">
458 <when test="self::owl:Class">
459 <text>A class.</text>
461 <when test="self::rdfs:Datatype">
462 <text>A datatype.</text>
464 <when test="self::owl:AnnotationProperty">
465 <text>An annotation property.</text>
467 <when test="self::owl:ObjectProperty">
468 <text>An object property.</text>
470 <when test="self::owl:DatatypeProperty">
471 <text>A data property.</text>
473 <when test="self::owl:NamedIndividual">
474 <text>A named individual.</text>
479 <element name="div" namespace="&xhtml;">
480 <attribute name="class">
483 <if test="self::owl:DatatypeProperty|self::owl:ObjectProperty">
484 <element name="table" namespace="&xhtml;">
485 <element name="tbody" namespace="&xhtml;">
486 <element name="tr" namespace="&xhtml;">
487 <element name="td" namespace="&xhtml;">
488 <element name="label" namespace="&xhtml;">
490 <text>Functional? </text>
491 <element name="input" namespace="&xhtml;">
492 <attribute name="type">
493 <text>checkbox</text>
495 <attribute name="aria-readonly">
498 <attribute name="onclick">
499 <text>return false</text>
501 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#FunctionalProperty']">
502 <attribute name="checked">
509 <if test="self::owl:ObjectProperty">
510 <element name="td" namespace="&xhtml;">
511 <element name="label" namespace="&xhtml;">
513 <text>Inverse Functional? </text>
514 <element name="input" namespace="&xhtml;">
515 <attribute name="type">
516 <text>checkbox</text>
518 <attribute name="aria-readonly">
521 <attribute name="onclick">
522 <text>return false</text>
524 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#InverseFunctionalProperty']">
525 <attribute name="checked">
532 <element name="td" namespace="&xhtml;">
533 <element name="label" namespace="&xhtml;">
535 <text>Reflexive? </text>
536 <element name="input" namespace="&xhtml;">
537 <attribute name="type">
538 <text>checkbox</text>
540 <attribute name="aria-readonly">
543 <attribute name="onclick">
544 <text>return false</text>
546 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#ReflexiveProperty']">
547 <attribute name="checked">
554 <element name="td" namespace="&xhtml;">
555 <element name="label" namespace="&xhtml;">
557 <text>Irreflexive? </text>
558 <element name="input" namespace="&xhtml;">
559 <attribute name="type">
560 <text>checkbox</text>
562 <attribute name="aria-readonly">
565 <attribute name="onclick">
566 <text>return false</text>
568 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#IrreflexiveProperty']">
569 <attribute name="checked">
576 <element name="td" namespace="&xhtml;">
577 <element name="label" namespace="&xhtml;">
579 <text>Symmetric? </text>
580 <element name="input" namespace="&xhtml;">
581 <attribute name="type">
582 <text>checkbox</text>
584 <attribute name="aria-readonly">
587 <attribute name="onclick">
588 <text>return false</text>
590 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#SymmetricProperty']">
591 <attribute name="checked">
598 <element name="td" namespace="&xhtml;">
599 <element name="label" namespace="&xhtml;">
601 <text>Asymmetric? </text>
602 <element name="input" namespace="&xhtml;">
603 <attribute name="type">
604 <text>checkbox</text>
606 <attribute name="aria-readonly">
609 <attribute name="onclick">
610 <text>return false</text>
612 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#AsymmetricProperty']">
613 <attribute name="checked">
620 <element name="td" namespace="&xhtml;">
621 <element name="label" namespace="&xhtml;">
623 <text>Transitive? </text>
624 <element name="input" namespace="&xhtml;">
625 <attribute name="type">
626 <text>checkbox</text>
628 <attribute name="aria-readonly">
631 <attribute name="onclick">
632 <text>return false</text>
634 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#TransitiveProperty']">
635 <attribute name="checked">
647 <element name="dl" namespace="&xhtml;">
648 <element name="div" namespace="&xhtml;">
649 <element name="dt" namespace="&xhtml;">
650 <element name="abbr" namespace="&xhtml;">
652 <attribute name="title">
653 <text>Internationalized Resource Identifier</text>
658 <element name="dd" namespace="&xhtml;">
659 <element name="a" namespace="&xhtml;">
660 <attribute name="href">
661 <value-of select="$resource-context"/>
663 <element name="code" namespace="&xhtml;">
664 <value-of select="$resource-context"/>
669 <if test="self::owl:NamedIndividual and rdf:type">
670 <element name="div" namespace="&xhtml;">
671 <element name="dt" namespace="&xhtml;">
675 <for-each select="rdf:type">
676 <element name="dd" namespace="&xhtml;">
677 <apply-templates select="(@rdf:resource|*)[1]" mode="Vocab:render-class"/>
682 <if test="$equivalencies">
683 <element name="div" namespace="&xhtml;">
685 <when test="self::rdfs:Datatype">
686 <element name="dt" namespace="&xhtml;">
688 <text>Equivalent Data Range</text>
690 <for-each select="$equivalencies">
691 <element name="dd" namespace="&xhtml;">
692 <apply-templates select="." mode="Vocab:render-class">
693 <with-param name="root" select="$root"/>
694 <with-param name="resource-context" select="$resource-context"/>
699 <when test="self::owl:Class">
700 <element name="dt" namespace="&xhtml;">
702 <text>Equivalent Class</text>
704 <for-each select="$equivalencies">
705 <element name="dd" namespace="&xhtml;">
706 <apply-templates select="." mode="Vocab:render-class">
707 <with-param name="root" select="$root"/>
708 <with-param name="resource-context" select="$resource-context"/>
713 <when test="$kind='property'">
714 <element name="dt" namespace="&xhtml;">
716 <text>Equivalent Property</text>
718 <for-each select="$equivalencies">
719 <element name="dd" namespace="&xhtml;">
720 <apply-templates select="." mode="Vocab:render-property">
721 <with-param name="root" select="$root"/>
722 <with-param name="resource-context" select="$resource-context"/>
728 <element name="dt" namespace="&xhtml;">
732 <for-each select="$equivalencies">
733 <element name="dd" namespace="&xhtml;">
734 <apply-templates select="." mode="Vocab:render-individual">
735 <with-param name="root" select="$root"/>
736 <with-param name="resource-context" select="$resource-context"/>
744 <if test="$inverses">
746 <when test="$kind='class'">
747 <element name="div" namespace="&xhtml;">
748 <element name="dt" namespace="&xhtml;">
750 <text>Complement Of</text>
752 <for-each select="$inverses">
753 <element name="dd" namespace="&xhtml;">
754 <apply-templates select="." mode="Vocab:render-class">
755 <with-param name="root" select="$root"/>
756 <with-param name="resource-context" select="$resource-context"/>
762 <when test="$kind='property'">
763 <element name="div" namespace="&xhtml;">
764 <element name="dt" namespace="&xhtml;">
766 <text>Inverse Of</text>
768 <for-each select="$inverses">
769 <element name="dd" namespace="&xhtml;">
770 <apply-templates select="." mode="Vocab:render-property">
771 <with-param name="root" select="$root"/>
772 <with-param name="resource-context" select="$resource-context"/>
782 <when test="$kind='class'">
783 <element name="div" namespace="&xhtml;">
784 <element name="dt" namespace="&xhtml;">
786 <text>Subclass Of</text>
788 <for-each select="$supers">
789 <element name="dd" namespace="&xhtml;">
790 <apply-templates select="." mode="Vocab:render-class">
791 <with-param name="root" select="$root"/>
792 <with-param name="resource-context" select="$resource-context"/>
798 <when test="$kind='property'">
799 <element name="div" namespace="&xhtml;">
800 <element name="dt" namespace="&xhtml;">
802 <text>Subproperty Of</text>
804 <for-each select="$supers">
805 <element name="dd" namespace="&xhtml;">
806 <apply-templates select="." mode="Vocab:render-property">
807 <with-param name="root" select="$root"/>
808 <with-param name="resource-context" select="$resource-context"/>
816 <if test="owl:hasKey">
817 <element name="div" namespace="&xhtml;">
818 <element name="dt" namespace="&xhtml;">
820 <text>Target For Key</text>
822 <for-each select="owl:hasKey">
823 <element name="dd" namespace="&xhtml;">
824 <for-each select="*">
825 <apply-templates select="." mode="Vocab:render-property"/>
826 <if test="position()<last()">
834 <if test="owl:propertyChainAxiom">
835 <element name="div" namespace="&xhtml;">
836 <element name="dt" namespace="&xhtml;">
838 <text>Property Chain</text>
840 <for-each select="owl:propertyChainAxiom">
841 <element name="dd" namespace="&xhtml;">
842 <for-each select="*">
843 <apply-templates select="." mode="Vocab:render-property"/>
844 <if test="position()<last()">
852 <if test="key('Vocab:subclass', @rdf:about)">
853 <element name="div" namespace="&xhtml;">
854 <element name="dt" namespace="&xhtml;">
856 <text>Superclass Of</text>
858 <for-each select="key('Vocab:subclass', @rdf:about)">
859 <element name="dd" namespace="&xhtml;">
860 <apply-templates select="." mode="Vocab:render-class"/>
865 <if test="key('Vocab:subproperty', @rdf:about)">
866 <element name="div" namespace="&xhtml;">
867 <element name="dt" namespace="&xhtml;">
869 <text>Superproperty Of</text>
871 <for-each select="key('Vocab:subproperty', @rdf:about)">
872 <element name="dd" namespace="&xhtml;">
873 <apply-templates select="." mode="Vocab:render-property"/>
878 <if test="rdfs:domain">
879 <element name="div" namespace="&xhtml;">
880 <element name="dt" namespace="&xhtml;">
884 <for-each select="rdfs:domain">
885 <element name="dd" namespace="&xhtml;">
886 <apply-templates select="(@rdf:resource|*)[1]" mode="Vocab:render-class"/>
891 <if test="rdfs:range">
892 <element name="div" namespace="&xhtml;">
893 <element name="dt" namespace="&xhtml;">
897 <for-each select="rdfs:range">
898 <element name="dd" namespace="&xhtml;">
899 <apply-templates select="(@rdf:resource|*)[1]" mode="Vocab:render-class"/>
904 <if test="$disjoints">
906 <when test="$kind='class'">
907 <element name="div" namespace="&xhtml;">
908 <element name="dt" namespace="&xhtml;">
910 <text>Disjoint With</text>
912 <for-each select="$disjoints">
913 <element name="dd" namespace="&xhtml;">
914 <apply-templates select="." mode="Vocab:render-class">
915 <with-param name="root" select="$root"/>
916 <with-param name="resource-context" select="$resource-context"/>
922 <when test="$kind='property'">
923 <element name="div" namespace="&xhtml;">
924 <element name="dt" namespace="&xhtml;">
926 <text>Property Disjoint With</text>
928 <for-each select="$disjoints">
929 <element name="dd" namespace="&xhtml;">
930 <apply-templates select="." mode="Vocab:render-property">
931 <with-param name="root" select="$root"/>
932 <with-param name="resource-context" select="$resource-context"/>
940 <if test="skos:inScheme">
941 <element name="div" namespace="&xhtml;">
942 <element name="dt" namespace="&xhtml;">
944 <text>In Scheme</text>
946 <for-each select="skos:inScheme">
947 <element name="dd" namespace="&xhtml;">
948 <call-template name="Vocab:link-to">
949 <with-param name="resource" select="string(@rdf:resource)"/>
950 <with-param name="kind" select="'individual'"/>
956 <if test="rdfs:isDefinedBy[not(starts-with(@rdf:resource, $base-iri))]">
957 <element name="div" namespace="&xhtml;">
958 <element name="dt" namespace="&xhtml;">
960 <text>Is Defined By</text>
962 <for-each select="rdfs:isDefinedBy[not(starts-with(@rdf:resource, $base-iri))]">
963 <element name="dd" namespace="&xhtml;">
965 <when test="@rdf:resource">
966 <call-template name="Vocab:link-to">
967 <with-param name="resource" select="string(@rdf:resource)"/>
968 <with-param name="kind" select="'individual'"/>
971 <when test="anno:ResourceSelection">
972 <variable name="base" select="string(anno:ResourceSelection/anno:hasSource/@rdf:resource)"/>
973 <element name="a" namespace="&xhtml;">
974 <attribute name="href">
976 <when test="not(anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector)">
977 <value-of select="$base"/>
979 <when test="contains($base, '#')">
980 <value-of select="substring-before($base, '#')"/>
983 <value-of select="$base"/>
986 <if test="anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector">
988 <value-of select="anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector/rdf:value"/>
992 <when test="key('Vocab:named-individual', $base)">
993 <element name="cite" namespace="&xhtml;">
994 <for-each select="key('Vocab:named-individual', $base)[1]">
995 <attribute name="lang">
996 <value-of select="rdfs:label[1]/@xml:lang"/>
998 <attribute name="xml:lang">
999 <value-of select="rdfs:label[1]/@xml:lang"/>
1001 <value-of select="rdfs:label[1]"/>
1006 <element name="code" namespace="&xhtml;">
1007 <value-of select="$base"/>
1012 <if test="anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector">
1013 <element name="small" namespace="&xhtml;">
1015 <element name="code" namespace="&xhtml;">
1017 <value-of select="anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector/rdf:value"/>
1032 <if test="vocabstatus:term_status">
1033 <element name="div" namespace="&xhtml;">
1034 <element name="dt" namespace="&xhtml;">
1038 <for-each select="vocabstatus:term_status">
1039 <element name="dd" namespace="&xhtml;">
1040 <apply-templates select="." mode="Vocab:render-value"/>
1047 <apply-templates select="rdfs:comment[1]/html:div" mode="Vocab:render-term"/>
1048 <if test="self::owl:NamedIndividual and (//rdfs:isDefinedBy|//rdfs:isDefinedBy/anno:ResourceSelection/anno:hasSource)[string(@rdf:resource)=string(current()/@rdf:about)]">
1049 <call-template name="Vocab:list-all-terms">
1050 <with-param name="source" select="@rdf:about"/>
1054 <template match="html:a[@data-curie[not(contains(., '/'))]]/@href" mode="Vocab:render-term" priority="2">
1055 <variable name="base-prefix">
1056 <call-template name="Vocab:prefix">
1057 <with-param name="unprefixed">
1058 <call-template name="Vocab:base"/>
1062 <attribute name="href">
1063 <text>/terms/</text>
1065 <when test="../@data-kind='class'">
1066 <text>classes/</text>
1068 <when test="../@data-kind='property'">
1069 <text>properties/</text>
1072 <text>individuals/</text>
1076 <when test="starts-with(../@data-curie, $base-prefix)">
1077 <value-of select="substring-after(../@data-curie, $base-prefix)"/>
1080 <value-of name="identifier" select="../@data-curie"/>
1086 <template match="@*|node()" mode="Vocab:render-term" priority="0">
1088 <apply-templates select="@*|node()" mode="Vocab:render-term"/>