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;">
273 <text>An ontology.</text>
276 <element name="div" namespace="&xhtml;">
277 <attribute name="class">
280 <element name="dl" namespace="&xhtml;">
281 <element name="div" namespace="&xhtml;">
282 <element name="dt" namespace="&xhtml;">
283 <element name="abbr" namespace="&xhtml;">
285 <attribute name="title">
286 <text>Internationalized Resource Identifier</text>
291 <element name="dd" namespace="&xhtml;">
292 <element name="a" namespace="&xhtml;">
293 <attribute name="href">
294 <value-of select="@rdf:about"/>
296 <element name="code" namespace="&xhtml;">
297 <value-of select="@rdf:about"/>
304 <apply-templates select="rdfs:comment[1]/html:div" mode="Vocab:render-term"/>
305 <element name="section" namespace="&xhtml;">
306 <element name="h2" namespace="&xhtml;">
308 <text>List of Name·spaces</text>
310 <element name="table" namespace="&xhtml;">
311 <element name="thead" namespace="&xhtml;">
312 <element name="tr" namespace="&xhtml;">
313 <element name="th" namespace="&xhtml;">
315 <attribute name="scope">
320 <element name="th" namespace="&xhtml;">
322 <attribute name="scope">
329 <element name="tbody" namespace="&xhtml;">
330 <for-each select="shacl:declare[shacl:prefix!='']">
331 <sort select="shacl:prefix"/>
332 <element name="tr" namespace="&xhtml;">
333 <element name="th" namespace="&xhtml;">
334 <attribute name="scope">
337 <element name="code" namespace="&xhtml;">
338 <value-of select="shacl:prefix"/>
342 <element name="td" namespace="&xhtml;">
343 <element name="code" namespace="&xhtml;">
344 <value-of select="shacl:namespace"/>
352 <element name="section" namespace="&xhtml;">
353 <element name="h2" namespace="&xhtml;">
355 <text>Terms Defined By </text>
356 <element name="cite" namespace="&xhtml;">
357 <attribute name="lang">
358 <value-of select="rdfs:label[1]/@xml:lang"/>
360 <attribute name="xml:lang">
361 <value-of select="rdfs:label[1]/@xml:lang"/>
363 <value-of select="rdfs:label[1]"/>
366 <call-template name="Vocab:list-all-terms"/>
369 <element name="section" namespace="&xhtml;">
370 <element name="h2" namespace="&xhtml;">
372 <text>Terms Defined Else·where</text>
374 <for-each select="//owl:NamedIndividual">
375 <sort select="rdfs:label" lang="en"/>
376 <if test="(//rdfs:isDefinedBy|//rdfs:isDefinedBy/anno:ResourceSelection/anno:hasSource)[string(@rdf:resource)=string(current()/@rdf:about)]">
377 <element name="section" namespace="&xhtml;">
378 <element name="h3" namespace="&xhtml;">
379 <element name="a" namespace="&xhtml;">
380 <attribute name="href">
381 <value-of select="@rdf:about"/>
383 <element name="cite" namespace="&xhtml;">
384 <attribute name="lang">
385 <value-of select="rdfs:label[1]/@xml:lang"/>
387 <attribute name="xml:lang">
388 <value-of select="rdfs:label[1]/@xml:lang"/>
390 <value-of select="rdfs:label[1]"/>
394 <apply-templates select="rdfs:comment[1]/html:div" mode="Vocab:render-term"/>
395 <call-template name="Vocab:list-all-terms">
396 <with-param name="source" select="@rdf:about"/>
404 <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">
405 <variable name="root" select="/"/>
406 <variable name="base-iri">
407 <call-template name="Vocab:base"/>
409 <variable name="kind">
411 <when test="self::owl:Class or self::rdfs:Datatype">
414 <when test="self::owl:AnnotationProperty or self::owl:ObjectProperty or self::owl:DatatypeProperty">
415 <text>property</text>
418 <text>individual</text>
422 <variable name="resource-context" select="string(@rdf:about)"/>
423 <variable name="equivalencies" select="Vocab:get-equivalents(., $kind)"/>
424 <variable name="supers" select="Vocab:get-transitives(., $kind, 'super')"/>
425 <variable name="inverses" select="Vocab:get-symmetrics(., $kind, 'inverse')"/>
426 <variable name="disjoints" select="Vocab:get-symmetrics(.|$supers, $kind, 'disjoint')"/>
427 <element name="meta" namespace="&xhtml;">
428 <attribute name="itemprop">
429 <text>urn:fdc:ladys.computer:20231231:Shu1She4:title</text>
431 <attribute name="content">
432 <value-of select="rdfs:label[1]"/>
434 <call-template name="Vocab:prefix">
435 <with-param name="unprefixed">
436 <value-of select="@rdf:about"/>
441 <value-of select="//rdf:RDF//owl:Ontology/rdfs:label"/>
444 <element name="hgroup" namespace="&xhtml;">
445 <element name="h1" namespace="&xhtml;">
446 <attribute name="lang">
447 <value-of select="rdfs:label[1]/@xml:lang"/>
449 <attribute name="xml:lang">
450 <value-of select="rdfs:label[1]/@xml:lang"/>
452 <value-of select="rdfs:label[1]"/>
454 <element name="p" namespace="&xhtml;">
456 <element name="code" namespace="&xhtml;">
457 <call-template name="Vocab:prefix">
458 <with-param name="unprefixed" select="@rdf:about"/>
463 <element name="p" namespace="&xhtml;">
465 <when test="self::owl:Class">
466 <text>A class.</text>
468 <when test="self::rdfs:Datatype">
469 <text>A datatype.</text>
471 <when test="self::owl:AnnotationProperty">
472 <text>An annotation property.</text>
474 <when test="self::owl:ObjectProperty">
475 <text>An object property.</text>
477 <when test="self::owl:DatatypeProperty">
478 <text>A data property.</text>
480 <when test="self::owl:NamedIndividual">
481 <text>A named individual.</text>
486 <element name="div" namespace="&xhtml;">
487 <attribute name="class">
490 <if test="self::owl:DatatypeProperty|self::owl:ObjectProperty">
491 <element name="table" namespace="&xhtml;">
492 <element name="tbody" namespace="&xhtml;">
493 <element name="tr" namespace="&xhtml;">
494 <element name="td" namespace="&xhtml;">
495 <element name="label" namespace="&xhtml;">
497 <text>Functional? </text>
498 <element name="input" namespace="&xhtml;">
499 <attribute name="type">
500 <text>checkbox</text>
502 <attribute name="aria-readonly">
505 <attribute name="onclick">
506 <text>return false</text>
508 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#FunctionalProperty']">
509 <attribute name="checked">
516 <if test="self::owl:ObjectProperty">
517 <element name="td" namespace="&xhtml;">
518 <element name="label" namespace="&xhtml;">
520 <text>Inverse Functional? </text>
521 <element name="input" namespace="&xhtml;">
522 <attribute name="type">
523 <text>checkbox</text>
525 <attribute name="aria-readonly">
528 <attribute name="onclick">
529 <text>return false</text>
531 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#InverseFunctionalProperty']">
532 <attribute name="checked">
539 <element name="td" namespace="&xhtml;">
540 <element name="label" namespace="&xhtml;">
542 <text>Reflexive? </text>
543 <element name="input" namespace="&xhtml;">
544 <attribute name="type">
545 <text>checkbox</text>
547 <attribute name="aria-readonly">
550 <attribute name="onclick">
551 <text>return false</text>
553 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#ReflexiveProperty']">
554 <attribute name="checked">
561 <element name="td" namespace="&xhtml;">
562 <element name="label" namespace="&xhtml;">
564 <text>Irreflexive? </text>
565 <element name="input" namespace="&xhtml;">
566 <attribute name="type">
567 <text>checkbox</text>
569 <attribute name="aria-readonly">
572 <attribute name="onclick">
573 <text>return false</text>
575 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#IrreflexiveProperty']">
576 <attribute name="checked">
583 <element name="td" namespace="&xhtml;">
584 <element name="label" namespace="&xhtml;">
586 <text>Symmetric? </text>
587 <element name="input" namespace="&xhtml;">
588 <attribute name="type">
589 <text>checkbox</text>
591 <attribute name="aria-readonly">
594 <attribute name="onclick">
595 <text>return false</text>
597 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#SymmetricProperty']">
598 <attribute name="checked">
605 <element name="td" namespace="&xhtml;">
606 <element name="label" namespace="&xhtml;">
608 <text>Asymmetric? </text>
609 <element name="input" namespace="&xhtml;">
610 <attribute name="type">
611 <text>checkbox</text>
613 <attribute name="aria-readonly">
616 <attribute name="onclick">
617 <text>return false</text>
619 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#AsymmetricProperty']">
620 <attribute name="checked">
627 <element name="td" namespace="&xhtml;">
628 <element name="label" namespace="&xhtml;">
630 <text>Transitive? </text>
631 <element name="input" namespace="&xhtml;">
632 <attribute name="type">
633 <text>checkbox</text>
635 <attribute name="aria-readonly">
638 <attribute name="onclick">
639 <text>return false</text>
641 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#TransitiveProperty']">
642 <attribute name="checked">
654 <element name="dl" namespace="&xhtml;">
655 <element name="div" namespace="&xhtml;">
656 <element name="dt" namespace="&xhtml;">
657 <element name="abbr" namespace="&xhtml;">
659 <attribute name="title">
660 <text>Internationalized Resource Identifier</text>
665 <element name="dd" namespace="&xhtml;">
666 <element name="a" namespace="&xhtml;">
667 <attribute name="href">
668 <value-of select="$resource-context"/>
670 <element name="code" namespace="&xhtml;">
671 <value-of select="$resource-context"/>
676 <if test="self::owl:NamedIndividual and rdf:type">
677 <element name="div" namespace="&xhtml;">
678 <element name="dt" namespace="&xhtml;">
682 <for-each select="rdf:type">
683 <element name="dd" namespace="&xhtml;">
684 <apply-templates select="(@rdf:resource|*)[1]" mode="Vocab:render-class"/>
689 <if test="$equivalencies">
690 <element name="div" namespace="&xhtml;">
692 <when test="self::rdfs:Datatype">
693 <element name="dt" namespace="&xhtml;">
695 <text>Equivalent Data Range</text>
697 <for-each select="$equivalencies">
698 <element name="dd" namespace="&xhtml;">
699 <apply-templates select="." mode="Vocab:render-class">
700 <with-param name="root" select="$root"/>
701 <with-param name="resource-context" select="$resource-context"/>
706 <when test="self::owl:Class">
707 <element name="dt" namespace="&xhtml;">
709 <text>Equivalent Class</text>
711 <for-each select="$equivalencies">
712 <element name="dd" namespace="&xhtml;">
713 <apply-templates select="." mode="Vocab:render-class">
714 <with-param name="root" select="$root"/>
715 <with-param name="resource-context" select="$resource-context"/>
720 <when test="$kind='property'">
721 <element name="dt" namespace="&xhtml;">
723 <text>Equivalent Property</text>
725 <for-each select="$equivalencies">
726 <element name="dd" namespace="&xhtml;">
727 <apply-templates select="." mode="Vocab:render-property">
728 <with-param name="root" select="$root"/>
729 <with-param name="resource-context" select="$resource-context"/>
735 <element name="dt" namespace="&xhtml;">
739 <for-each select="$equivalencies">
740 <element name="dd" namespace="&xhtml;">
741 <apply-templates select="." mode="Vocab:render-individual">
742 <with-param name="root" select="$root"/>
743 <with-param name="resource-context" select="$resource-context"/>
751 <if test="$inverses">
753 <when test="$kind='class'">
754 <element name="div" namespace="&xhtml;">
755 <element name="dt" namespace="&xhtml;">
757 <text>Complement Of</text>
759 <for-each select="$inverses">
760 <element name="dd" namespace="&xhtml;">
761 <apply-templates select="." mode="Vocab:render-class">
762 <with-param name="root" select="$root"/>
763 <with-param name="resource-context" select="$resource-context"/>
769 <when test="$kind='property'">
770 <element name="div" namespace="&xhtml;">
771 <element name="dt" namespace="&xhtml;">
773 <text>Inverse Of</text>
775 <for-each select="$inverses">
776 <element name="dd" namespace="&xhtml;">
777 <apply-templates select="." mode="Vocab:render-property">
778 <with-param name="root" select="$root"/>
779 <with-param name="resource-context" select="$resource-context"/>
789 <when test="$kind='class'">
790 <element name="div" namespace="&xhtml;">
791 <element name="dt" namespace="&xhtml;">
793 <text>Subclass Of</text>
795 <for-each select="$supers">
796 <element name="dd" namespace="&xhtml;">
797 <apply-templates select="." mode="Vocab:render-class">
798 <with-param name="root" select="$root"/>
799 <with-param name="resource-context" select="$resource-context"/>
805 <when test="$kind='property'">
806 <element name="div" namespace="&xhtml;">
807 <element name="dt" namespace="&xhtml;">
809 <text>Subproperty Of</text>
811 <for-each select="$supers">
812 <element name="dd" namespace="&xhtml;">
813 <apply-templates select="." mode="Vocab:render-property">
814 <with-param name="root" select="$root"/>
815 <with-param name="resource-context" select="$resource-context"/>
823 <if test="owl:hasKey">
824 <element name="div" namespace="&xhtml;">
825 <element name="dt" namespace="&xhtml;">
827 <text>Target For Key</text>
829 <for-each select="owl:hasKey">
830 <element name="dd" namespace="&xhtml;">
831 <for-each select="*">
832 <apply-templates select="." mode="Vocab:render-property"/>
833 <if test="position()<last()">
841 <if test="owl:propertyChainAxiom">
842 <element name="div" namespace="&xhtml;">
843 <element name="dt" namespace="&xhtml;">
845 <text>Property Chain</text>
847 <for-each select="owl:propertyChainAxiom">
848 <element name="dd" namespace="&xhtml;">
849 <for-each select="*">
850 <apply-templates select="." mode="Vocab:render-property"/>
851 <if test="position()<last()">
859 <if test="key('Vocab:subclass', @rdf:about)">
860 <element name="div" namespace="&xhtml;">
861 <element name="dt" namespace="&xhtml;">
863 <text>Superclass Of</text>
865 <for-each select="key('Vocab:subclass', @rdf:about)">
866 <element name="dd" namespace="&xhtml;">
867 <apply-templates select="." mode="Vocab:render-class"/>
872 <if test="key('Vocab:subproperty', @rdf:about)">
873 <element name="div" namespace="&xhtml;">
874 <element name="dt" namespace="&xhtml;">
876 <text>Superproperty Of</text>
878 <for-each select="key('Vocab:subproperty', @rdf:about)">
879 <element name="dd" namespace="&xhtml;">
880 <apply-templates select="." mode="Vocab:render-property"/>
885 <if test="rdfs:domain">
886 <element name="div" namespace="&xhtml;">
887 <element name="dt" namespace="&xhtml;">
891 <for-each select="rdfs:domain">
892 <element name="dd" namespace="&xhtml;">
893 <apply-templates select="(@rdf:resource|*)[1]" mode="Vocab:render-class"/>
898 <if test="rdfs:range">
899 <element name="div" namespace="&xhtml;">
900 <element name="dt" namespace="&xhtml;">
904 <for-each select="rdfs:range">
905 <element name="dd" namespace="&xhtml;">
906 <apply-templates select="(@rdf:resource|*)[1]" mode="Vocab:render-class"/>
911 <if test="$disjoints">
913 <when test="$kind='class'">
914 <element name="div" namespace="&xhtml;">
915 <element name="dt" namespace="&xhtml;">
917 <text>Disjoint With</text>
919 <for-each select="$disjoints">
920 <element name="dd" namespace="&xhtml;">
921 <apply-templates select="." mode="Vocab:render-class">
922 <with-param name="root" select="$root"/>
923 <with-param name="resource-context" select="$resource-context"/>
929 <when test="$kind='property'">
930 <element name="div" namespace="&xhtml;">
931 <element name="dt" namespace="&xhtml;">
933 <text>Property Disjoint With</text>
935 <for-each select="$disjoints">
936 <element name="dd" namespace="&xhtml;">
937 <apply-templates select="." mode="Vocab:render-property">
938 <with-param name="root" select="$root"/>
939 <with-param name="resource-context" select="$resource-context"/>
947 <if test="skos:inScheme">
948 <element name="div" namespace="&xhtml;">
949 <element name="dt" namespace="&xhtml;">
951 <text>In Scheme</text>
953 <for-each select="skos:inScheme">
954 <element name="dd" namespace="&xhtml;">
955 <call-template name="Vocab:link-to">
956 <with-param name="resource" select="string(@rdf:resource)"/>
957 <with-param name="kind" select="'individual'"/>
963 <if test="rdfs:isDefinedBy[not(starts-with(@rdf:resource, $base-iri))]">
964 <element name="div" namespace="&xhtml;">
965 <element name="dt" namespace="&xhtml;">
967 <text>Is Defined By</text>
969 <for-each select="rdfs:isDefinedBy[not(starts-with(@rdf:resource, $base-iri))]">
970 <element name="dd" namespace="&xhtml;">
972 <when test="@rdf:resource">
973 <call-template name="Vocab:link-to">
974 <with-param name="resource" select="string(@rdf:resource)"/>
975 <with-param name="kind" select="'individual'"/>
978 <when test="anno:ResourceSelection">
979 <variable name="base" select="string(anno:ResourceSelection/anno:hasSource/@rdf:resource)"/>
980 <element name="a" namespace="&xhtml;">
981 <attribute name="href">
983 <when test="not(anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector)">
984 <value-of select="$base"/>
986 <when test="contains($base, '#')">
987 <value-of select="substring-before($base, '#')"/>
990 <value-of select="$base"/>
993 <if test="anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector">
995 <value-of select="anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector/rdf:value"/>
999 <when test="key('Vocab:named-individual', $base)">
1000 <element name="cite" namespace="&xhtml;">
1001 <for-each select="key('Vocab:named-individual', $base)[1]">
1002 <attribute name="lang">
1003 <value-of select="rdfs:label[1]/@xml:lang"/>
1005 <attribute name="xml:lang">
1006 <value-of select="rdfs:label[1]/@xml:lang"/>
1008 <value-of select="rdfs:label[1]"/>
1013 <element name="code" namespace="&xhtml;">
1014 <value-of select="$base"/>
1019 <if test="anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector">
1020 <element name="small" namespace="&xhtml;">
1022 <element name="code" namespace="&xhtml;">
1024 <value-of select="anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector/rdf:value"/>
1039 <if test="vocabstatus:term_status">
1040 <element name="div" namespace="&xhtml;">
1041 <element name="dt" namespace="&xhtml;">
1045 <for-each select="vocabstatus:term_status">
1046 <element name="dd" namespace="&xhtml;">
1047 <apply-templates select="." mode="Vocab:render-value"/>
1054 <apply-templates select="rdfs:comment[1]/html:div" mode="Vocab:render-term"/>
1055 <if test="self::owl:NamedIndividual and (//rdfs:isDefinedBy|//rdfs:isDefinedBy/anno:ResourceSelection/anno:hasSource)[string(@rdf:resource)=string(current()/@rdf:about)]">
1056 <call-template name="Vocab:list-all-terms">
1057 <with-param name="source" select="@rdf:about"/>
1061 <template match="html:a[@data-curie[not(contains(., '/'))]]/@href" mode="Vocab:render-term" priority="2">
1062 <variable name="base-prefix">
1063 <call-template name="Vocab:prefix">
1064 <with-param name="unprefixed">
1065 <call-template name="Vocab:base"/>
1069 <attribute name="href">
1070 <text>/terms/</text>
1072 <when test="../@data-kind='class'">
1073 <text>classes/</text>
1075 <when test="../@data-kind='property'">
1076 <text>properties/</text>
1079 <text>individuals/</text>
1083 <when test="starts-with(../@data-curie, $base-prefix)">
1084 <value-of select="substring-after(../@data-curie, $base-prefix)"/>
1087 <value-of name="identifier" select="../@data-curie"/>
1093 <template match="@*|node()" mode="Vocab:render-term" priority="0">
1095 <apply-templates select="@*|node()" mode="Vocab:render-term"/>