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">
74 <when test="$curie=string($resource)">
75 <value-of select="$resource"/>
80 <when test="$kind='class'">
83 <when test="$kind='property'">
84 <text>properties/</text>
87 <text>individuals/</text>
90 <value-of select="$localid"/>
95 <for-each select="key(concat('Vocab:named-', $kind), $resource)[1]">
96 <if test="not($full)">
97 <attribute name="title">
98 <value-of select="rdfs:label[1]"/>
100 <value-of select="$curie"/>
104 <variable name="wrappername">
106 <when test="substring($localid, 1, 1)='(' and substring($localid, string-length($localid), 1)=')'">
114 <element name="{$wrappername}" namespace="&xhtml;">
115 <attribute name="lang">
116 <value-of select="rdfs:label[1]/@xml:lang"/>
118 <attribute name="xml:lang">
119 <value-of select="rdfs:label[1]/@xml:lang"/>
121 <value-of select="rdfs:label[1]"/>
125 <element name="small" namespace="&xhtml;">
127 <element name="code" namespace="&xhtml;">
128 <value-of select="$curie"/>
136 <attribute name="href">
137 <value-of select="$resource"/>
139 <element name="code" namespace="&xhtml;">
140 <value-of select="$curie"/>
146 <template name="Vocab:list-all-terms">
147 <param name="source"/>
148 <call-template name="Vocab:list-terms">
149 <with-param name="source" select="$source"/>
150 <with-param name="selector" select="'Class'"/>
152 <call-template name="Vocab:list-terms">
153 <with-param name="source" select="$source"/>
154 <with-param name="selector" select="'Datatype'"/>
156 <call-template name="Vocab:list-terms">
157 <with-param name="source" select="$source"/>
158 <with-param name="selector" select="'AnnotationProperty'"/>
160 <call-template name="Vocab:list-terms">
161 <with-param name="source" select="$source"/>
162 <with-param name="selector" select="'ObjectProperty'"/>
164 <call-template name="Vocab:list-terms">
165 <with-param name="source" select="$source"/>
166 <with-param name="selector" select="'DatatypeProperty'"/>
168 <call-template name="Vocab:list-terms">
169 <with-param name="source" select="$source"/>
170 <with-param name="selector" select="'NamedIndividual'"/>
173 <template name="Vocab:list-terms">
174 <param name="source"/>
175 <param name="selector"/>
176 <variable name="base-iri">
177 <call-template name="Vocab:base"/>
179 <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])]"/>
180 <if test="$selection">
181 <element name="nav" namespace="&xhtml;">
182 <element name="h4" namespace="&xhtml;">
185 <when test="$selector='Class'">
188 <when test="$selector='Datatype'">
189 <text>Datatypes</text>
191 <when test="$selector='AnnotationProperty'">
192 <text>Annotation Properties</text>
194 <when test="$selector='ObjectProperty'">
195 <text>Object Properties</text>
197 <when test="$selector='DatatypeProperty'">
198 <text>Data Properties</text>
200 <when test="$selector='NamedIndividual'">
201 <text>Named Individuals</text>
205 <element name="ul" namespace="&xhtml;">
206 <for-each select="$selection">
207 <sort select="rdfs:label[1]" lang="en"/>
208 <element name="li" namespace="&xhtml;">
209 <call-template name="Vocab:link-to">
210 <with-param name="resource" select="string(@rdf:about)"/>
211 <with-param name="kind">
213 <when test="$selector='Class' or $selector='Datatype'">
216 <when test="$selector='AnnotationProperty' or $selector='ObjectProperty' or $selector='DatatypeProperty'">
217 <text>property</text>
220 <text>individual</text>
231 <template match="/书社:archive">
232 <variable name="base-iri">
233 <call-template name="Vocab:base"/>
236 <apply-templates select="@*"/>
237 <apply-templates select="*[@书社:archived-as]"/>
238 <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)]]">
239 <element name="article" namespace="&xhtml;">
240 <attribute name="class">
243 <attribute name="书社:archived-as">
244 <value-of select="translate(substring-after(rdfs:isDefinedBy[starts-with(@rdf:resource, $base-iri)]/@rdf:resource, $base-iri), ':[]', '¦__')"/>
246 <element name="header" namespace="&xhtml;">
247 <element name="a" namespace="&xhtml;">
248 <attribute name="href">
251 <text>Ladys Vocabulary</text>
254 <apply-templates select="." mode="Vocab:render-term"/>
259 <template match="html:article[rdf:RDF]">
260 <for-each select="rdf:RDF">
261 <for-each select="//owl:Ontology[1]">
262 <element name="hgroup" namespace="&xhtml;">
263 <element name="h1" namespace="&xhtml;">
264 <attribute name="lang">
265 <value-of select="rdfs:label[1]/@xml:lang"/>
267 <attribute name="xml:lang">
268 <value-of select="rdfs:label[1]/@xml:lang"/>
270 <value-of select="rdfs:label[1]"/>
272 <element name="p" namespace="&xhtml;">
274 <text>An ontology.</text>
277 <element name="div" namespace="&xhtml;">
278 <attribute name="class">
281 <element name="dl" namespace="&xhtml;">
282 <element name="div" namespace="&xhtml;">
283 <element name="dt" namespace="&xhtml;">
284 <element name="abbr" namespace="&xhtml;">
286 <attribute name="title">
287 <text>Internationalized Resource Identifier</text>
292 <element name="dd" namespace="&xhtml;">
293 <element name="a" namespace="&xhtml;">
294 <attribute name="href">
295 <value-of select="@rdf:about"/>
297 <element name="code" namespace="&xhtml;">
298 <value-of select="@rdf:about"/>
305 <apply-templates select="rdfs:comment[1]/html:div" mode="Vocab:render-term"/>
306 <element name="section" namespace="&xhtml;">
307 <element name="h2" namespace="&xhtml;">
309 <text>List of Name·spaces</text>
311 <element name="table" namespace="&xhtml;">
312 <element name="thead" namespace="&xhtml;">
313 <element name="tr" namespace="&xhtml;">
314 <element name="th" namespace="&xhtml;">
316 <attribute name="scope">
321 <element name="th" namespace="&xhtml;">
323 <attribute name="scope">
330 <element name="tbody" namespace="&xhtml;">
331 <for-each select="shacl:declare[shacl:prefix!='']">
332 <sort select="shacl:prefix"/>
333 <element name="tr" namespace="&xhtml;">
334 <element name="th" namespace="&xhtml;">
335 <attribute name="scope">
338 <element name="code" namespace="&xhtml;">
339 <value-of select="shacl:prefix"/>
343 <element name="td" namespace="&xhtml;">
344 <element name="code" namespace="&xhtml;">
345 <value-of select="shacl:namespace"/>
353 <element name="section" namespace="&xhtml;">
354 <element name="h2" namespace="&xhtml;">
356 <text>Terms Defined By </text>
357 <element name="cite" namespace="&xhtml;">
358 <attribute name="lang">
359 <value-of select="rdfs:label[1]/@xml:lang"/>
361 <attribute name="xml:lang">
362 <value-of select="rdfs:label[1]/@xml:lang"/>
364 <value-of select="rdfs:label[1]"/>
367 <call-template name="Vocab:list-all-terms"/>
370 <element name="section" namespace="&xhtml;">
371 <element name="h2" namespace="&xhtml;">
373 <text>Terms Defined Else·where</text>
375 <for-each select="//owl:NamedIndividual">
376 <sort select="rdfs:label" lang="en"/>
377 <if test="(//rdfs:isDefinedBy|//rdfs:isDefinedBy/anno:ResourceSelection/anno:hasSource)[string(@rdf:resource)=string(current()/@rdf:about)]">
378 <element name="section" namespace="&xhtml;">
379 <element name="h3" namespace="&xhtml;">
380 <element name="a" namespace="&xhtml;">
381 <attribute name="href">
382 <value-of select="@rdf:about"/>
384 <element name="cite" namespace="&xhtml;">
385 <attribute name="lang">
386 <value-of select="rdfs:label[1]/@xml:lang"/>
388 <attribute name="xml:lang">
389 <value-of select="rdfs:label[1]/@xml:lang"/>
391 <value-of select="rdfs:label[1]"/>
395 <apply-templates select="rdfs:comment[1]/html:div" mode="Vocab:render-term"/>
396 <call-template name="Vocab:list-all-terms">
397 <with-param name="source" select="@rdf:about"/>
405 <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">
406 <variable name="root" select="/"/>
407 <variable name="base-iri">
408 <call-template name="Vocab:base"/>
410 <variable name="kind">
412 <when test="self::owl:Class or self::rdfs:Datatype">
415 <when test="self::owl:AnnotationProperty or self::owl:ObjectProperty or self::owl:DatatypeProperty">
416 <text>property</text>
419 <text>individual</text>
423 <variable name="resource-context" select="string(@rdf:about)"/>
424 <variable name="equivalencies" select="Vocab:get-equivalents(., $kind)"/>
425 <variable name="supers" select="Vocab:get-transitives(., $kind, 'super')"/>
426 <variable name="inverses" select="Vocab:get-symmetrics(., $kind, 'inverse')"/>
427 <variable name="disjoints" select="Vocab:get-symmetrics(.|$supers, $kind, 'disjoint')"/>
428 <element name="meta" namespace="&xhtml;">
429 <attribute name="itemprop">
430 <text>urn:fdc:ladys.computer:20231231:Shu1She4:title</text>
432 <attribute name="content">
433 <value-of select="rdfs:label[1]"/>
435 <call-template name="Vocab:prefix">
436 <with-param name="unprefixed">
437 <value-of select="@rdf:about"/>
442 <value-of select="//rdf:RDF//owl:Ontology/rdfs:label"/>
445 <element name="hgroup" namespace="&xhtml;">
446 <element name="h1" namespace="&xhtml;">
447 <attribute name="lang">
448 <value-of select="rdfs:label[1]/@xml:lang"/>
450 <attribute name="xml:lang">
451 <value-of select="rdfs:label[1]/@xml:lang"/>
453 <value-of select="rdfs:label[1]"/>
455 <element name="p" namespace="&xhtml;">
457 <element name="code" namespace="&xhtml;">
458 <call-template name="Vocab:prefix">
459 <with-param name="unprefixed" select="@rdf:about"/>
464 <element name="p" namespace="&xhtml;">
467 <when test="self::owl:Class">
468 <text>A class.</text>
470 <when test="self::rdfs:Datatype">
471 <text>A datatype.</text>
473 <when test="self::owl:AnnotationProperty">
474 <text>An annotation property.</text>
476 <when test="self::owl:ObjectProperty">
477 <text>An object property.</text>
479 <when test="self::owl:DatatypeProperty">
480 <text>A data property.</text>
482 <when test="self::owl:NamedIndividual">
483 <text>A named individual.</text>
488 <element name="div" namespace="&xhtml;">
489 <attribute name="class">
492 <if test="self::owl:DatatypeProperty|self::owl:ObjectProperty">
493 <element name="table" namespace="&xhtml;">
494 <element name="tbody" namespace="&xhtml;">
495 <element name="tr" namespace="&xhtml;">
496 <element name="td" namespace="&xhtml;">
497 <element name="label" namespace="&xhtml;">
499 <text>Functional? </text>
500 <element name="input" namespace="&xhtml;">
501 <attribute name="type">
502 <text>checkbox</text>
504 <attribute name="aria-readonly">
507 <attribute name="onclick">
508 <text>return false</text>
510 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#FunctionalProperty']">
511 <attribute name="checked">
518 <if test="self::owl:ObjectProperty">
519 <element name="td" namespace="&xhtml;">
520 <element name="label" namespace="&xhtml;">
522 <text>Inverse Functional? </text>
523 <element name="input" namespace="&xhtml;">
524 <attribute name="type">
525 <text>checkbox</text>
527 <attribute name="aria-readonly">
530 <attribute name="onclick">
531 <text>return false</text>
533 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#InverseFunctionalProperty']">
534 <attribute name="checked">
541 <element name="td" namespace="&xhtml;">
542 <element name="label" namespace="&xhtml;">
544 <text>Reflexive? </text>
545 <element name="input" namespace="&xhtml;">
546 <attribute name="type">
547 <text>checkbox</text>
549 <attribute name="aria-readonly">
552 <attribute name="onclick">
553 <text>return false</text>
555 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#ReflexiveProperty']">
556 <attribute name="checked">
563 <element name="td" namespace="&xhtml;">
564 <element name="label" namespace="&xhtml;">
566 <text>Irreflexive? </text>
567 <element name="input" namespace="&xhtml;">
568 <attribute name="type">
569 <text>checkbox</text>
571 <attribute name="aria-readonly">
574 <attribute name="onclick">
575 <text>return false</text>
577 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#IrreflexiveProperty']">
578 <attribute name="checked">
585 <element name="td" namespace="&xhtml;">
586 <element name="label" namespace="&xhtml;">
588 <text>Symmetric? </text>
589 <element name="input" namespace="&xhtml;">
590 <attribute name="type">
591 <text>checkbox</text>
593 <attribute name="aria-readonly">
596 <attribute name="onclick">
597 <text>return false</text>
599 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#SymmetricProperty']">
600 <attribute name="checked">
607 <element name="td" namespace="&xhtml;">
608 <element name="label" namespace="&xhtml;">
610 <text>Asymmetric? </text>
611 <element name="input" namespace="&xhtml;">
612 <attribute name="type">
613 <text>checkbox</text>
615 <attribute name="aria-readonly">
618 <attribute name="onclick">
619 <text>return false</text>
621 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#AsymmetricProperty']">
622 <attribute name="checked">
629 <element name="td" namespace="&xhtml;">
630 <element name="label" namespace="&xhtml;">
632 <text>Transitive? </text>
633 <element name="input" namespace="&xhtml;">
634 <attribute name="type">
635 <text>checkbox</text>
637 <attribute name="aria-readonly">
640 <attribute name="onclick">
641 <text>return false</text>
643 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#TransitiveProperty']">
644 <attribute name="checked">
656 <element name="dl" namespace="&xhtml;">
657 <element name="div" namespace="&xhtml;">
658 <element name="dt" namespace="&xhtml;">
659 <element name="abbr" namespace="&xhtml;">
661 <attribute name="title">
662 <text>Internationalized Resource Identifier</text>
667 <element name="dd" namespace="&xhtml;">
668 <element name="a" namespace="&xhtml;">
669 <attribute name="href">
670 <value-of select="$resource-context"/>
672 <element name="code" namespace="&xhtml;">
673 <value-of select="$resource-context"/>
678 <if test="self::owl:NamedIndividual and rdf:type">
679 <element name="div" namespace="&xhtml;">
680 <element name="dt" namespace="&xhtml;">
684 <for-each select="rdf:type">
685 <element name="dd" namespace="&xhtml;">
686 <apply-templates select="(@rdf:resource|*)[1]" mode="Vocab:render-class"/>
691 <if test="$equivalencies">
692 <element name="div" namespace="&xhtml;">
694 <when test="self::rdfs:Datatype">
695 <element name="dt" namespace="&xhtml;">
697 <text>Equivalent Data Range</text>
699 <for-each select="$equivalencies">
700 <element name="dd" namespace="&xhtml;">
701 <apply-templates select="." mode="Vocab:render-class">
702 <with-param name="root" select="$root"/>
703 <with-param name="resource-context" select="$resource-context"/>
708 <when test="self::owl:Class">
709 <element name="dt" namespace="&xhtml;">
711 <text>Equivalent Class</text>
713 <for-each select="$equivalencies">
714 <element name="dd" namespace="&xhtml;">
715 <apply-templates select="." mode="Vocab:render-class">
716 <with-param name="root" select="$root"/>
717 <with-param name="resource-context" select="$resource-context"/>
722 <when test="$kind='property'">
723 <element name="dt" namespace="&xhtml;">
725 <text>Equivalent Property</text>
727 <for-each select="$equivalencies">
728 <element name="dd" namespace="&xhtml;">
729 <apply-templates select="." mode="Vocab:render-property">
730 <with-param name="root" select="$root"/>
731 <with-param name="resource-context" select="$resource-context"/>
737 <element name="dt" namespace="&xhtml;">
741 <for-each select="$equivalencies">
742 <element name="dd" namespace="&xhtml;">
743 <apply-templates select="." mode="Vocab:render-individual">
744 <with-param name="root" select="$root"/>
745 <with-param name="resource-context" select="$resource-context"/>
753 <if test="$inverses">
755 <when test="$kind='class'">
756 <element name="div" namespace="&xhtml;">
757 <element name="dt" namespace="&xhtml;">
759 <text>Complement Of</text>
761 <for-each select="$inverses">
762 <element name="dd" namespace="&xhtml;">
763 <apply-templates select="." mode="Vocab:render-class">
764 <with-param name="root" select="$root"/>
765 <with-param name="resource-context" select="$resource-context"/>
771 <when test="$kind='property'">
772 <element name="div" namespace="&xhtml;">
773 <element name="dt" namespace="&xhtml;">
775 <text>Inverse Of</text>
777 <for-each select="$inverses">
778 <element name="dd" namespace="&xhtml;">
779 <apply-templates select="." mode="Vocab:render-property">
780 <with-param name="root" select="$root"/>
781 <with-param name="resource-context" select="$resource-context"/>
791 <when test="$kind='class'">
792 <element name="div" namespace="&xhtml;">
793 <element name="dt" namespace="&xhtml;">
795 <text>Subclass Of</text>
797 <for-each select="$supers">
798 <element name="dd" namespace="&xhtml;">
799 <apply-templates select="." mode="Vocab:render-class">
800 <with-param name="root" select="$root"/>
801 <with-param name="resource-context" select="$resource-context"/>
807 <when test="$kind='property'">
808 <element name="div" namespace="&xhtml;">
809 <element name="dt" namespace="&xhtml;">
811 <text>Subproperty Of</text>
813 <for-each select="$supers">
814 <element name="dd" namespace="&xhtml;">
815 <apply-templates select="." mode="Vocab:render-property">
816 <with-param name="root" select="$root"/>
817 <with-param name="resource-context" select="$resource-context"/>
825 <if test="owl:hasKey">
826 <element name="div" namespace="&xhtml;">
827 <element name="dt" namespace="&xhtml;">
829 <text>Target For Key</text>
831 <for-each select="owl:hasKey">
832 <element name="dd" namespace="&xhtml;">
833 <for-each select="*">
834 <apply-templates select="." mode="Vocab:render-property"/>
835 <if test="position()<last()">
843 <if test="owl:propertyChainAxiom">
844 <element name="div" namespace="&xhtml;">
845 <element name="dt" namespace="&xhtml;">
847 <text>Property Chain</text>
849 <for-each select="owl:propertyChainAxiom">
850 <element name="dd" namespace="&xhtml;">
851 <for-each select="*">
852 <apply-templates select="." mode="Vocab:render-property"/>
853 <if test="position()<last()">
861 <if test="key('Vocab:subclass', @rdf:about)">
862 <element name="div" namespace="&xhtml;">
863 <element name="dt" namespace="&xhtml;">
865 <text>Superclass Of</text>
867 <for-each select="key('Vocab:subclass', @rdf:about)">
868 <element name="dd" namespace="&xhtml;">
869 <apply-templates select="." mode="Vocab:render-class"/>
874 <if test="key('Vocab:subproperty', @rdf:about)">
875 <element name="div" namespace="&xhtml;">
876 <element name="dt" namespace="&xhtml;">
878 <text>Superproperty Of</text>
880 <for-each select="key('Vocab:subproperty', @rdf:about)">
881 <element name="dd" namespace="&xhtml;">
882 <apply-templates select="." mode="Vocab:render-property"/>
887 <if test="rdfs:domain">
888 <element name="div" namespace="&xhtml;">
889 <element name="dt" namespace="&xhtml;">
893 <for-each select="rdfs:domain">
894 <element name="dd" namespace="&xhtml;">
895 <apply-templates select="(@rdf:resource|*)[1]" mode="Vocab:render-class"/>
900 <if test="rdfs:range">
901 <element name="div" namespace="&xhtml;">
902 <element name="dt" namespace="&xhtml;">
906 <for-each select="rdfs:range">
907 <element name="dd" namespace="&xhtml;">
908 <apply-templates select="(@rdf:resource|*)[1]" mode="Vocab:render-class"/>
913 <if test="$disjoints">
915 <when test="$kind='class'">
916 <element name="div" namespace="&xhtml;">
917 <element name="dt" namespace="&xhtml;">
919 <text>Disjoint With</text>
921 <for-each select="$disjoints">
922 <element name="dd" namespace="&xhtml;">
923 <apply-templates select="." mode="Vocab:render-class">
924 <with-param name="root" select="$root"/>
925 <with-param name="resource-context" select="$resource-context"/>
931 <when test="$kind='property'">
932 <element name="div" namespace="&xhtml;">
933 <element name="dt" namespace="&xhtml;">
935 <text>Property Disjoint With</text>
937 <for-each select="$disjoints">
938 <element name="dd" namespace="&xhtml;">
939 <apply-templates select="." mode="Vocab:render-property">
940 <with-param name="root" select="$root"/>
941 <with-param name="resource-context" select="$resource-context"/>
949 <if test="skos:inScheme">
950 <element name="div" namespace="&xhtml;">
951 <element name="dt" namespace="&xhtml;">
953 <text>In Scheme</text>
955 <for-each select="skos:inScheme">
956 <element name="dd" namespace="&xhtml;">
957 <call-template name="Vocab:link-to">
958 <with-param name="resource" select="string(@rdf:resource)"/>
959 <with-param name="kind" select="'individual'"/>
965 <if test="rdfs:isDefinedBy[not(starts-with(@rdf:resource, $base-iri))]">
966 <element name="div" namespace="&xhtml;">
967 <element name="dt" namespace="&xhtml;">
969 <text>Is Defined By</text>
971 <for-each select="rdfs:isDefinedBy[not(starts-with(@rdf:resource, $base-iri))]">
972 <element name="dd" namespace="&xhtml;">
974 <when test="@rdf:resource">
975 <call-template name="Vocab:link-to">
976 <with-param name="resource" select="string(@rdf:resource)"/>
977 <with-param name="kind" select="'individual'"/>
980 <when test="anno:ResourceSelection">
981 <variable name="base" select="string(anno:ResourceSelection/anno:hasSource/@rdf:resource)"/>
982 <element name="a" namespace="&xhtml;">
983 <attribute name="href">
985 <when test="not(anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector)">
986 <value-of select="$base"/>
988 <when test="contains($base, '#')">
989 <value-of select="substring-before($base, '#')"/>
992 <value-of select="$base"/>
995 <if test="anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector">
997 <value-of select="anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector/rdf:value"/>
1001 <when test="key('Vocab:named-individual', $base)">
1002 <element name="cite" namespace="&xhtml;">
1003 <for-each select="key('Vocab:named-individual', $base)[1]">
1004 <attribute name="lang">
1005 <value-of select="rdfs:label[1]/@xml:lang"/>
1007 <attribute name="xml:lang">
1008 <value-of select="rdfs:label[1]/@xml:lang"/>
1010 <value-of select="rdfs:label[1]"/>
1015 <element name="code" namespace="&xhtml;">
1016 <value-of select="$base"/>
1021 <if test="anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector">
1022 <element name="small" namespace="&xhtml;">
1024 <element name="code" namespace="&xhtml;">
1026 <value-of select="anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector/rdf:value"/>
1041 <if test="vocabstatus:term_status">
1042 <element name="div" namespace="&xhtml;">
1043 <element name="dt" namespace="&xhtml;">
1047 <for-each select="vocabstatus:term_status">
1048 <element name="dd" namespace="&xhtml;">
1049 <apply-templates select="." mode="Vocab:render-value"/>
1056 <apply-templates select="rdfs:comment[1]/html:div" mode="Vocab:render-term"/>
1057 <if test="self::owl:NamedIndividual and (//rdfs:isDefinedBy|//rdfs:isDefinedBy/anno:ResourceSelection/anno:hasSource)[string(@rdf:resource)=string(current()/@rdf:about)]">
1058 <call-template name="Vocab:list-all-terms">
1059 <with-param name="source" select="@rdf:about"/>
1063 <template match="html:a[@data-curie[not(contains(., '/'))]]/@href" mode="Vocab:render-term" priority="2">
1064 <variable name="base-prefix">
1065 <call-template name="Vocab:prefix">
1066 <with-param name="unprefixed">
1067 <call-template name="Vocab:base"/>
1071 <attribute name="href">
1072 <text>/terms/</text>
1074 <when test="../@data-kind='class'">
1075 <text>classes/</text>
1077 <when test="../@data-kind='property'">
1078 <text>properties/</text>
1081 <text>individuals/</text>
1085 <when test="starts-with(../@data-curie, $base-prefix)">
1086 <value-of select="substring-after(../@data-curie, $base-prefix)"/>
1089 <value-of name="identifier" select="../@data-curie"/>
1095 <template match="@*|node()" mode="Vocab:render-term" priority="0">
1097 <apply-templates select="@*|node()" mode="Vocab:render-term"/>