Wiki source code of ML Elements

Version 6.6 by Artur K. on 2026/05/15 19:23

Hide last authors
Artur K. 2.3 1 {{velocity output="false"}}
Artur K. 2.2 2 #set($children = $doc.getChildrenReferences())
3
4 ## Массивы по типам
5 #set($simpleTypes = [])
6 #set($complexTypes = [])
7 #set($elements = [])
8 #set($attributeGroups = [])
9
10 #foreach ($child in $children)
11 #set($rdoc = $xwiki.getDocument($child))
12 #set($xobject = $rdoc.getObject('SKMS.Ontology.Code.OntologyElementClass'))
13
14 #if($xobject)
15 #set($classType = $!xobject.get('classType'))
16 #set($link = "[[$rdoc.getTitle()>>$rdoc.getDocumentReference()]]")
17 #set($item = {"title": $rdoc.getTitle(), "link": $link})
18
19 #if($classType == 'simpleType')
20 #set($discard = $simpleTypes.add($item))
21 #elseif($classType == 'complexType')
22 #set($discard = $complexTypes.add($item))
23 #elseif($classType == 'element')
24 #set($discard = $elements.add($item))
25 #elseif($classType == 'attributeGroup')
26 #set($discard = $attributeGroups.add($item))
27 #end
28 #end
29 #end
Artur K. 2.3 30 {{/velocity}}{{velocity output="true"}}
Artur K. 2.2 31 #if($xcontext.action != 'edit')
Artur K. 2.5 32 == simpleType ==
Artur K. 2.2 33 #foreach ($str in $collectiontool.sort($simpleTypes, ['title']))
34 * $str.link
35 #end
Artur K. 2.5 36 == complexType ==
Artur K. 2.2 37 #foreach ($str in $collectiontool.sort($complexTypes, ['title']))
38 * $str.link
39 #end
Artur K. 4.1 40 == GlobalElements ==
Artur K. 2.2 41 #foreach ($str in $collectiontool.sort($elements, ['title']))
42 * $str.link
43 #end
Artur K. 2.5 44 == attributeGroup ==
Artur K. 2.2 45 #foreach ($str in $collectiontool.sort($attributeGroups, ['title']))
46 * $str.link
47 #end
48 #end
Artur K. 1.1 49 ----
50 [[Sandbox.Intersection table of ontology elements.WebHome||target="_blank"]]
Artur K. 2.2 51 {{/velocity}}
© Semantic R&D Group, 2026