Changes for page ML Elements

Last modified by Artur K. on 2026/06/24 15:27

From version 2.1
edited by Artur K.
on 2026/03/20 14:40
Change comment: There is no comment for this version
To version 6.4
edited by Artur K.
on 2026/05/15 11:36
Change comment: Update property SKMS.Ontology.Code.MLElementsSectionClass[0].vesrion

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Elements
1 +ML Elements
Content
... ... @@ -1,3 +1,51 @@
1 -{{children/}}
1 +{{velocity output="false"}}
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
30 +{{/velocity}}{{velocity output="true"}}
31 +#if($xcontext.action != 'edit')
32 +== simpleType ==
33 + #foreach ($str in $collectiontool.sort($simpleTypes, ['title']))
34 + * $str.link
35 + #end
36 +== complexType ==
37 + #foreach ($str in $collectiontool.sort($complexTypes, ['title']))
38 + * $str.link
39 + #end
40 +== GlobalElements ==
41 + #foreach ($str in $collectiontool.sort($elements, ['title']))
42 + * $str.link
43 + #end
44 +== attributeGroup ==
45 + #foreach ($str in $collectiontool.sort($attributeGroups, ['title']))
46 + * $str.link
47 + #end
48 +#end
2 2  ----
3 3  [[Sandbox.Intersection table of ontology elements.WebHome||target="_blank"]]
51 +{{/velocity}}
SKMS.Ontology.Code.MLElementsSectionClass[0]
URI
... ... @@ -1,0 +1,1 @@
1 +https://purl.semanticip.org/linked-data/sdmx/MLElements/0.1
Preferred Namespace URI
... ... @@ -1,0 +1,1 @@
1 +https://purl.semanticip.org/linked-data/sdmx/MLElements/
vesrion
... ... @@ -1,0 +1,1 @@
1 +0.1
© Semantic R&D Group, 2026