Changes for page RDF-Predicates
Last modified by Ophion Admin on 2026/10/07 18:17
From version 1.2
edited by Ophion Admin
on 2026/10/07 15:55
on 2026/10/07 15:55
Change comment:
Updated application icon
To version 2.1
edited by Ophion Admin
on 2026/10/07 16:15
on 2026/10/07 16:15
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,4 +1,35 @@ 1 1 {{velocity}} 2 +## --- Configuration: adapt to your installation --- 3 +#set ($nsClass = 'RDF-Namespaces.Code.RDF-NamespacesClass') 4 +#set ($predTemplate = 'RDF-Predicates.Code.RDF-PredicatesTemplate') 5 + 6 +## All namespace entries, excluding the template in the Code space 7 +#set ($namespaces = $services.query.hql(", BaseObject as obj where doc.fullName = obj.name and obj.className = :cls and doc.space not like '%.Code' order by doc.fullName").bindValue('cls', $nsClass).execute()) 8 + 9 +{{html clean="false"}} 10 +<form action="$doc.getURL('create')" method="post" class="xform"> 11 + <input type="hidden" name="form_token" value="$services.csrf.token" /> 12 + <input type="hidden" name="template" value="$predTemplate" /> 13 + <input type="hidden" name="tocreate" value="terminal" /> 14 + <dl> 15 + <dt><label for="spaceReference">Namespace</label></dt> 16 + <dd> 17 + <select id="spaceReference" name="spaceReference"> 18 + #foreach ($n in $namespaces) 19 + ## The namespace page is <prefix>.WebHome, so its space is the storage location 20 + #set ($space = $services.model.resolveDocument($n).lastSpaceReference) 21 + <option value="$escapetool.xml($services.model.serialize($space, 'local'))">$escapetool.xml($space.name)</option> 22 + #end 23 + </select> 24 + </dd> 25 + <dt><label for="name">Predicate name</label></dt> 26 + <dd><input type="text" id="name" name="name" placeholder="creator" /></dd> 27 + </dl> 28 + <p><input type="submit" class="button" value="Create predicate" /></p> 29 +</form> 30 +{{/html}} 31 +{{/velocity}} 32 +{{velocity}} 2 2 #set ($columnsProperties = { 3 3 'doc.title': {"link":"view"}, 4 4 'doc.location': {"html":true},