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]">
261 <copy-of select="@*"/>
262 <for-each select="rdf:RDF">
263 <for-each select="//owl:Ontology[1]">
264 <element name="meta" namespace="&xhtml;">
265 <attribute name="itemprop">
266 <text>urn:fdc:ladys.computer:20231231:Shu1She4:title</text>
268 <attribute name="lang">
269 <value-of select="rdfs:label[1]/@xml:lang"/>
271 <attribute name="xml:lang">
272 <value-of select="rdfs:label[1]/@xml:lang"/>
274 <attribute name="content">
275 <value-of select="//owl:Ontology[1]/rdfs:label[1]"/>
278 <element name="hgroup" namespace="&xhtml;">
279 <element name="h1" namespace="&xhtml;">
280 <attribute name="lang">
281 <value-of select="rdfs:label[1]/@xml:lang"/>
283 <attribute name="xml:lang">
284 <value-of select="rdfs:label[1]/@xml:lang"/>
286 <value-of select="rdfs:label[1]"/>
288 <element name="p" namespace="&xhtml;">
290 <text>An ontology.</text>
293 <element name="div" namespace="&xhtml;">
294 <attribute name="class">
297 <element name="dl" namespace="&xhtml;">
298 <element name="div" namespace="&xhtml;">
299 <element name="dt" namespace="&xhtml;">
300 <element name="abbr" namespace="&xhtml;">
302 <attribute name="title">
303 <text>Internationalized Resource Identifier</text>
308 <element name="dd" namespace="&xhtml;">
309 <element name="a" namespace="&xhtml;">
310 <attribute name="href">
311 <value-of select="@rdf:about"/>
313 <element name="code" namespace="&xhtml;">
314 <value-of select="@rdf:about"/>
321 <apply-templates select="rdfs:comment[1]/html:div" mode="Vocab:render-term"/>
322 <element name="section" namespace="&xhtml;">
323 <element name="h2" namespace="&xhtml;">
325 <text>List of Name·spaces</text>
327 <element name="table" namespace="&xhtml;">
328 <element name="thead" namespace="&xhtml;">
329 <element name="tr" namespace="&xhtml;">
330 <element name="th" namespace="&xhtml;">
332 <attribute name="scope">
337 <element name="th" namespace="&xhtml;">
339 <attribute name="scope">
346 <element name="tbody" namespace="&xhtml;">
347 <for-each select="shacl:declare[shacl:prefix!='']">
348 <sort select="shacl:prefix"/>
349 <element name="tr" namespace="&xhtml;">
350 <element name="th" namespace="&xhtml;">
351 <attribute name="scope">
354 <element name="code" namespace="&xhtml;">
355 <value-of select="shacl:prefix"/>
359 <element name="td" namespace="&xhtml;">
360 <element name="code" namespace="&xhtml;">
361 <value-of select="shacl:namespace"/>
369 <element name="section" namespace="&xhtml;">
370 <element name="h2" namespace="&xhtml;">
372 <text>Terms Defined By </text>
373 <element name="cite" namespace="&xhtml;">
374 <attribute name="lang">
375 <value-of select="rdfs:label[1]/@xml:lang"/>
377 <attribute name="xml:lang">
378 <value-of select="rdfs:label[1]/@xml:lang"/>
380 <value-of select="rdfs:label[1]"/>
383 <call-template name="Vocab:list-all-terms"/>
386 <element name="section" namespace="&xhtml;">
387 <element name="h2" namespace="&xhtml;">
389 <text>Terms Defined Else·where</text>
391 <for-each select="//owl:NamedIndividual">
392 <sort select="rdfs:label" lang="en"/>
393 <if test="(//rdfs:isDefinedBy|//rdfs:isDefinedBy/anno:ResourceSelection/anno:hasSource)[string(@rdf:resource)=string(current()/@rdf:about)]">
394 <element name="section" namespace="&xhtml;">
395 <element name="h3" namespace="&xhtml;">
396 <element name="a" namespace="&xhtml;">
397 <attribute name="href">
398 <value-of select="@rdf:about"/>
400 <element name="cite" namespace="&xhtml;">
401 <attribute name="lang">
402 <value-of select="rdfs:label[1]/@xml:lang"/>
404 <attribute name="xml:lang">
405 <value-of select="rdfs:label[1]/@xml:lang"/>
407 <value-of select="rdfs:label[1]"/>
411 <apply-templates select="rdfs:comment[1]/html:div" mode="Vocab:render-term"/>
412 <call-template name="Vocab:list-all-terms">
413 <with-param name="source" select="@rdf:about"/>
422 <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">
423 <variable name="root" select="/"/>
424 <variable name="base-iri">
425 <call-template name="Vocab:base"/>
427 <variable name="kind">
429 <when test="self::owl:Class or self::rdfs:Datatype">
432 <when test="self::owl:AnnotationProperty or self::owl:ObjectProperty or self::owl:DatatypeProperty">
433 <text>property</text>
436 <text>individual</text>
440 <variable name="resource-context" select="string(@rdf:about)"/>
441 <variable name="equivalencies" select="Vocab:get-equivalents(., $kind)"/>
442 <variable name="supers" select="Vocab:get-transitives(., $kind, 'super')"/>
443 <variable name="inverses" select="Vocab:get-symmetrics(., $kind, 'inverse')"/>
444 <variable name="disjoints" select="Vocab:get-symmetrics(.|$supers, $kind, 'disjoint')"/>
445 <element name="meta" namespace="&xhtml;">
446 <attribute name="itemprop">
447 <text>urn:fdc:ladys.computer:20231231:Shu1She4:title</text>
449 <attribute name="content">
450 <value-of select="rdfs:label[1]"/>
452 <call-template name="Vocab:prefix">
453 <with-param name="unprefixed">
454 <value-of select="@rdf:about"/>
459 <value-of select="//rdf:RDF//owl:Ontology/rdfs:label"/>
462 <element name="hgroup" namespace="&xhtml;">
463 <element name="h1" namespace="&xhtml;">
464 <attribute name="lang">
465 <value-of select="rdfs:label[1]/@xml:lang"/>
467 <attribute name="xml:lang">
468 <value-of select="rdfs:label[1]/@xml:lang"/>
470 <value-of select="rdfs:label[1]"/>
472 <element name="p" namespace="&xhtml;">
474 <element name="code" namespace="&xhtml;">
475 <call-template name="Vocab:prefix">
476 <with-param name="unprefixed" select="@rdf:about"/>
481 <element name="p" namespace="&xhtml;">
484 <when test="self::owl:Class">
485 <text>A class.</text>
487 <when test="self::rdfs:Datatype">
488 <text>A datatype.</text>
490 <when test="self::owl:AnnotationProperty">
491 <text>An annotation property.</text>
493 <when test="self::owl:ObjectProperty">
494 <text>An object property.</text>
496 <when test="self::owl:DatatypeProperty">
497 <text>A data property.</text>
499 <when test="self::owl:NamedIndividual">
500 <text>A named individual.</text>
505 <element name="div" namespace="&xhtml;">
506 <attribute name="class">
509 <if test="self::owl:DatatypeProperty|self::owl:ObjectProperty">
510 <element name="table" namespace="&xhtml;">
511 <element name="tbody" namespace="&xhtml;">
512 <element name="tr" namespace="&xhtml;">
513 <element name="td" namespace="&xhtml;">
514 <element name="label" namespace="&xhtml;">
516 <text>Functional? </text>
517 <element name="input" namespace="&xhtml;">
518 <attribute name="type">
519 <text>checkbox</text>
521 <attribute name="aria-readonly">
524 <attribute name="onclick">
525 <text>return false</text>
527 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#FunctionalProperty']">
528 <attribute name="checked">
535 <if test="self::owl:ObjectProperty">
536 <element name="td" namespace="&xhtml;">
537 <element name="label" namespace="&xhtml;">
539 <text>Inverse Functional? </text>
540 <element name="input" namespace="&xhtml;">
541 <attribute name="type">
542 <text>checkbox</text>
544 <attribute name="aria-readonly">
547 <attribute name="onclick">
548 <text>return false</text>
550 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#InverseFunctionalProperty']">
551 <attribute name="checked">
558 <element name="td" namespace="&xhtml;">
559 <element name="label" namespace="&xhtml;">
561 <text>Reflexive? </text>
562 <element name="input" namespace="&xhtml;">
563 <attribute name="type">
564 <text>checkbox</text>
566 <attribute name="aria-readonly">
569 <attribute name="onclick">
570 <text>return false</text>
572 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#ReflexiveProperty']">
573 <attribute name="checked">
580 <element name="td" namespace="&xhtml;">
581 <element name="label" namespace="&xhtml;">
583 <text>Irreflexive? </text>
584 <element name="input" namespace="&xhtml;">
585 <attribute name="type">
586 <text>checkbox</text>
588 <attribute name="aria-readonly">
591 <attribute name="onclick">
592 <text>return false</text>
594 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#IrreflexiveProperty']">
595 <attribute name="checked">
602 <element name="td" namespace="&xhtml;">
603 <element name="label" namespace="&xhtml;">
605 <text>Symmetric? </text>
606 <element name="input" namespace="&xhtml;">
607 <attribute name="type">
608 <text>checkbox</text>
610 <attribute name="aria-readonly">
613 <attribute name="onclick">
614 <text>return false</text>
616 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#SymmetricProperty']">
617 <attribute name="checked">
624 <element name="td" namespace="&xhtml;">
625 <element name="label" namespace="&xhtml;">
627 <text>Asymmetric? </text>
628 <element name="input" namespace="&xhtml;">
629 <attribute name="type">
630 <text>checkbox</text>
632 <attribute name="aria-readonly">
635 <attribute name="onclick">
636 <text>return false</text>
638 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#AsymmetricProperty']">
639 <attribute name="checked">
646 <element name="td" namespace="&xhtml;">
647 <element name="label" namespace="&xhtml;">
649 <text>Transitive? </text>
650 <element name="input" namespace="&xhtml;">
651 <attribute name="type">
652 <text>checkbox</text>
654 <attribute name="aria-readonly">
657 <attribute name="onclick">
658 <text>return false</text>
660 <if test="rdf:type/@rdf:resource[string()='http://www.w3.org/2002/07/owl#TransitiveProperty']">
661 <attribute name="checked">
673 <element name="dl" namespace="&xhtml;">
674 <element name="div" namespace="&xhtml;">
675 <element name="dt" namespace="&xhtml;">
676 <element name="abbr" namespace="&xhtml;">
678 <attribute name="title">
679 <text>Internationalized Resource Identifier</text>
684 <element name="dd" namespace="&xhtml;">
685 <element name="a" namespace="&xhtml;">
686 <attribute name="href">
687 <value-of select="$resource-context"/>
689 <element name="code" namespace="&xhtml;">
690 <value-of select="$resource-context"/>
695 <if test="self::owl:NamedIndividual and rdf:type">
696 <element name="div" namespace="&xhtml;">
697 <element name="dt" namespace="&xhtml;">
701 <for-each select="rdf:type">
702 <element name="dd" namespace="&xhtml;">
703 <apply-templates select="(@rdf:resource|*)[1]" mode="Vocab:render-class"/>
708 <if test="$equivalencies">
709 <element name="div" namespace="&xhtml;">
711 <when test="self::rdfs:Datatype">
712 <element name="dt" namespace="&xhtml;">
714 <text>Equivalent Data Range</text>
716 <for-each select="$equivalencies">
717 <element name="dd" namespace="&xhtml;">
718 <apply-templates select="." mode="Vocab:render-class">
719 <with-param name="root" select="$root"/>
720 <with-param name="resource-context" select="$resource-context"/>
725 <when test="self::owl:Class">
726 <element name="dt" namespace="&xhtml;">
728 <text>Equivalent Class</text>
730 <for-each select="$equivalencies">
731 <element name="dd" namespace="&xhtml;">
732 <apply-templates select="." mode="Vocab:render-class">
733 <with-param name="root" select="$root"/>
734 <with-param name="resource-context" select="$resource-context"/>
739 <when test="$kind='property'">
740 <element name="dt" namespace="&xhtml;">
742 <text>Equivalent Property</text>
744 <for-each select="$equivalencies">
745 <element name="dd" namespace="&xhtml;">
746 <apply-templates select="." mode="Vocab:render-property">
747 <with-param name="root" select="$root"/>
748 <with-param name="resource-context" select="$resource-context"/>
754 <element name="dt" namespace="&xhtml;">
758 <for-each select="$equivalencies">
759 <element name="dd" namespace="&xhtml;">
760 <apply-templates select="." mode="Vocab:render-individual">
761 <with-param name="root" select="$root"/>
762 <with-param name="resource-context" select="$resource-context"/>
770 <if test="owl:disjointUnionOf">
771 <element name="div" namespace="&xhtml;">
772 <element name="dt" namespace="&xhtml;">
774 <text>Disjoint Union Of</text>
776 <for-each select="owl:disjointUnionOf">
777 <element name="dd" namespace="&xhtml;">
778 <for-each select="*">
779 <apply-templates select="." mode="Vocab:render-class"/>
780 <if test="position()<last()">
788 <if test="$inverses">
790 <when test="$kind='class'">
791 <element name="div" namespace="&xhtml;">
792 <element name="dt" namespace="&xhtml;">
794 <text>Complement Of</text>
796 <for-each select="$inverses">
797 <element name="dd" namespace="&xhtml;">
798 <apply-templates select="." mode="Vocab:render-class">
799 <with-param name="root" select="$root"/>
800 <with-param name="resource-context" select="$resource-context"/>
806 <when test="$kind='property'">
807 <element name="div" namespace="&xhtml;">
808 <element name="dt" namespace="&xhtml;">
810 <text>Inverse Of</text>
812 <for-each select="$inverses">
813 <element name="dd" namespace="&xhtml;">
814 <apply-templates select="." mode="Vocab:render-property">
815 <with-param name="root" select="$root"/>
816 <with-param name="resource-context" select="$resource-context"/>
826 <when test="$kind='class'">
827 <element name="div" namespace="&xhtml;">
828 <element name="dt" namespace="&xhtml;">
830 <text>Subclass Of</text>
832 <for-each select="$supers">
833 <element name="dd" namespace="&xhtml;">
834 <apply-templates select="." mode="Vocab:render-class">
835 <with-param name="root" select="$root"/>
836 <with-param name="resource-context" select="$resource-context"/>
842 <when test="$kind='property'">
843 <element name="div" namespace="&xhtml;">
844 <element name="dt" namespace="&xhtml;">
846 <text>Subproperty Of</text>
848 <for-each select="$supers">
849 <element name="dd" namespace="&xhtml;">
850 <apply-templates select="." mode="Vocab:render-property">
851 <with-param name="root" select="$root"/>
852 <with-param name="resource-context" select="$resource-context"/>
860 <if test="owl:hasKey">
861 <element name="div" namespace="&xhtml;">
862 <element name="dt" namespace="&xhtml;">
864 <text>Target For Key</text>
866 <for-each select="owl:hasKey">
867 <element name="dd" namespace="&xhtml;">
868 <for-each select="*">
869 <apply-templates select="." mode="Vocab:render-property"/>
870 <if test="position()<last()">
878 <if test="owl:propertyChainAxiom">
879 <element name="div" namespace="&xhtml;">
880 <element name="dt" namespace="&xhtml;">
882 <text>Property Chain</text>
884 <for-each select="owl:propertyChainAxiom">
885 <element name="dd" namespace="&xhtml;">
886 <for-each select="*">
887 <apply-templates select="." mode="Vocab:render-property"/>
888 <if test="position()<last()">
896 <if test="key('Vocab:subclass', @rdf:about)">
897 <element name="div" namespace="&xhtml;">
898 <element name="dt" namespace="&xhtml;">
900 <text>Superclass Of</text>
902 <for-each select="key('Vocab:subclass', @rdf:about)">
903 <element name="dd" namespace="&xhtml;">
904 <apply-templates select="." mode="Vocab:render-class"/>
909 <if test="key('Vocab:subproperty', @rdf:about)">
910 <element name="div" namespace="&xhtml;">
911 <element name="dt" namespace="&xhtml;">
913 <text>Superproperty Of</text>
915 <for-each select="key('Vocab:subproperty', @rdf:about)">
916 <element name="dd" namespace="&xhtml;">
917 <apply-templates select="." mode="Vocab:render-property"/>
922 <if test="$disjoints">
924 <when test="$kind='class'">
925 <element name="div" namespace="&xhtml;">
926 <element name="dt" namespace="&xhtml;">
928 <text>Disjoint With</text>
930 <for-each select="$disjoints">
931 <element name="dd" namespace="&xhtml;">
932 <apply-templates select="." mode="Vocab:render-class">
933 <with-param name="root" select="$root"/>
934 <with-param name="resource-context" select="$resource-context"/>
940 <when test="$kind='property'">
941 <element name="div" namespace="&xhtml;">
942 <element name="dt" namespace="&xhtml;">
944 <text>Property Disjoint With</text>
946 <for-each select="$disjoints">
947 <element name="dd" namespace="&xhtml;">
948 <apply-templates select="." mode="Vocab:render-property">
949 <with-param name="root" select="$root"/>
950 <with-param name="resource-context" select="$resource-context"/>
958 <if test="rdfs:domain">
959 <element name="div" namespace="&xhtml;">
960 <element name="dt" namespace="&xhtml;">
964 <for-each select="rdfs:domain">
965 <element name="dd" namespace="&xhtml;">
966 <apply-templates select="(@rdf:resource|*)[1]" mode="Vocab:render-class"/>
971 <if test="rdfs:range">
972 <element name="div" namespace="&xhtml;">
973 <element name="dt" namespace="&xhtml;">
977 <for-each select="rdfs:range">
978 <element name="dd" namespace="&xhtml;">
979 <apply-templates select="(@rdf:resource|*)[1]" mode="Vocab:render-class"/>
984 <if test="skos:inScheme">
985 <element name="div" namespace="&xhtml;">
986 <element name="dt" namespace="&xhtml;">
988 <text>In Scheme</text>
990 <for-each select="skos:inScheme">
991 <element name="dd" namespace="&xhtml;">
992 <call-template name="Vocab:link-to">
993 <with-param name="resource" select="string(@rdf:resource)"/>
994 <with-param name="kind" select="'individual'"/>
1000 <if test="skos:broader">
1001 <element name="div" namespace="&xhtml;">
1002 <element name="dt" namespace="&xhtml;">
1004 <text>Has Broader</text>
1006 <for-each select="skos:broader">
1007 <element name="dd" namespace="&xhtml;">
1008 <call-template name="Vocab:link-to">
1009 <with-param name="resource" select="string(@rdf:resource)"/>
1010 <with-param name="kind" select="'individual'"/>
1016 <if test="skos:narrower">
1017 <element name="div" namespace="&xhtml;">
1018 <element name="dt" namespace="&xhtml;">
1020 <text>Has Narrower</text>
1022 <for-each select="skos:narrower">
1023 <element name="dd" namespace="&xhtml;">
1024 <call-template name="Vocab:link-to">
1025 <with-param name="resource" select="string(@rdf:resource)"/>
1026 <with-param name="kind" select="'individual'"/>
1032 <if test="rdfs:isDefinedBy[not(starts-with(@rdf:resource, $base-iri))]">
1033 <element name="div" namespace="&xhtml;">
1034 <element name="dt" namespace="&xhtml;">
1036 <text>Is Defined By</text>
1038 <for-each select="rdfs:isDefinedBy[not(starts-with(@rdf:resource, $base-iri))]">
1039 <element name="dd" namespace="&xhtml;">
1041 <when test="@rdf:resource">
1042 <call-template name="Vocab:link-to">
1043 <with-param name="resource" select="string(@rdf:resource)"/>
1044 <with-param name="kind" select="'individual'"/>
1047 <when test="anno:ResourceSelection">
1048 <variable name="base" select="string(anno:ResourceSelection/anno:hasSource/@rdf:resource)"/>
1049 <element name="a" namespace="&xhtml;">
1050 <attribute name="href">
1052 <when test="not(anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector)">
1053 <value-of select="$base"/>
1055 <when test="contains($base, '#')">
1056 <value-of select="substring-before($base, '#')"/>
1059 <value-of select="$base"/>
1062 <if test="anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector">
1064 <value-of select="anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector/rdf:value"/>
1068 <when test="key('Vocab:named-individual', $base)">
1069 <element name="cite" namespace="&xhtml;">
1070 <for-each select="key('Vocab:named-individual', $base)[1]">
1071 <attribute name="lang">
1072 <value-of select="rdfs:label[1]/@xml:lang"/>
1074 <attribute name="xml:lang">
1075 <value-of select="rdfs:label[1]/@xml:lang"/>
1077 <value-of select="rdfs:label[1]"/>
1082 <element name="code" namespace="&xhtml;">
1083 <value-of select="$base"/>
1088 <if test="anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector">
1089 <element name="small" namespace="&xhtml;">
1091 <element name="code" namespace="&xhtml;">
1093 <value-of select="anno:ResourceSelection/anno:hasSelector/anno:FragmentSelector/rdf:value"/>
1108 <if test="vocabstatus:term_status">
1109 <element name="div" namespace="&xhtml;">
1110 <element name="dt" namespace="&xhtml;">
1114 <for-each select="vocabstatus:term_status">
1115 <element name="dd" namespace="&xhtml;">
1116 <apply-templates select="." mode="Vocab:render-value"/>
1123 <apply-templates select="rdfs:comment[1]/html:div" mode="Vocab:render-term"/>
1124 <if test="self::owl:NamedIndividual and (//rdfs:isDefinedBy|//rdfs:isDefinedBy/anno:ResourceSelection/anno:hasSource)[string(@rdf:resource)=string(current()/@rdf:about)]">
1125 <call-template name="Vocab:list-all-terms">
1126 <with-param name="source" select="@rdf:about"/>
1130 <template match="html:a[@data-curie[not(contains(., '/'))]]/@href" mode="Vocab:render-term" priority="2">
1131 <variable name="base-prefix">
1132 <call-template name="Vocab:prefix">
1133 <with-param name="unprefixed">
1134 <call-template name="Vocab:base"/>
1138 <attribute name="href">
1139 <text>/terms/</text>
1141 <when test="../@data-kind='class'">
1142 <text>classes/</text>
1144 <when test="../@data-kind='property'">
1145 <text>properties/</text>
1148 <text>individuals/</text>
1152 <when test="starts-with(../@data-curie, $base-prefix)">
1153 <value-of select="substring-after(../@data-curie, $base-prefix)"/>
1156 <value-of name="identifier" select="../@data-curie"/>
1162 <template match="@*|node()" mode="Vocab:render-term" priority="0">
1164 <apply-templates select="@*|node()" mode="Vocab:render-term"/>