rdfs:label"Resource enum drop down editor"^^xsd:string;
...
...
@@ -5509,11 +5456,30 @@ app:Tree
spl:predicatearg:onSelect;
spl:valueTypexsd:string
];
spin:constraint
[rdf:typespl:Argument;
rdfs:comment"A root node that can overload the default root of the data provider. For example, app:ClassTreeDataProvider starts at rdfs:Resource by default - set arg:root to owl:Thing to start there instead."^^xsd:string;
rdfs:comment"The parent node to get the children of."^^xsd:string;
spl:predicatearg:parent;
spl:valueTyperdfs:Resource
].
app:TreeDataProvider
rdf:typeui:NodeClass;
rdfs:comment"Base class for various kinds of data providers implementing Ajax call-backs to app:Tree components."^^xsd:string;
rdfs:comment"A TreeDataProvider is backed by two SELECT queries - one to get the roots, and one to get the children of a given node."^^xsd:string;
rdfs:label"Tree data provider"^^xsd:string;
rdfs:subClassOfapp:TreeElements;
spin:constraint
...
...
@@ -5522,13 +5488,135 @@ app:TreeDataProvider
spl:predicatearg:id;
spl:valueTypexsd:string
];
ui:abstract"true"^^xsd:boolean.
spin:constraint
[rdf:typespl:Argument;
rdfs:comment"The root resource. If none is specified, then the system will use compute the root(s) from the roots template."^^xsd:string;
spl:optional"true"^^xsd:boolean;
spl:predicatearg:root;
spl:valueTyperdfs:Resource
];
spin:constraint
[rdf:typespl:Argument;
rdfs:comment"The subclass of app:TreeChildrenTemplates that delivers the children of a given parent node."^^xsd:string;
spl:predicatearg:treeChildrenTemplate;
spl:valueTypespin:Template
];
spin:constraint
[rdf:typespl:Argument;
rdfs:comment"A subclass of app:TreeRootsTemplates that delivers the roots of the tree. Will be bypassed if the tree itself defined an arg:rootResource."^^xsd:string;
spl:optional"true"^^xsd:boolean;
spl:predicatearg:treeRootsTemplate;
spl:valueTypespin:Template
];
ui:prototype
[rdf:typeui:group;
ui:child
[rdf:typeui:if;
ui:child
[rdf:typeui:call;
arg:root
[sp:varName"root"^^xsd:string
];
ui:child
[rdf:typeapp:TreeDataProviderHelper;
ui:childIndex0;
ui:resultSet
[sp:varName"rs"^^xsd:string
]
];
ui:childIndex0;
ui:template
[sp:varName"treeRootsTemplate"^^xsd:string
]
];
ui:childIndex0;
ui:condition
[rdf:typesp:or;
sp:arg1[rdf:typesp:eq;
sp:arg1[sp:varName"id"^^xsd:string
];
sp:arg2"1"
];
sp:arg2[rdf:typesp:not;
sp:arg1[rdf:typesp:bound;
sp:arg1[sp:varName"id"^^xsd:string
]
]
]
]
];
ui:child
[rdf:typeui:else;
ui:child
[rdf:typeui:call;
arg:parent
[rdf:typeui:decodeNode;
sp:arg1[rdf:typeapp:removeUniqueId;
sp:arg1[sp:varName"id"^^xsd:string
]
]
];
ui:child
[rdf:typeapp:TreeDataProviderHelper;
ui:childIndex0;
ui:resultSet
[sp:varName"rs"^^xsd:string
]
];
ui:childIndex0;
ui:template
[sp:varName"treeChildrenTemplate"^^xsd:string
]
];
ui:childIndex1
]
].
app:TreeDataProviderHelper
rdf:typeui:NodeClass;
rdfs:label"Tree data provider helper"^^xsd:string;
rdfs:comment"Abstract superclass for queries that can deliver the roots of a tree."^^xsd:string;
rdfs:label"Tree roots templates"^^xsd:string;
rdfs:subClassOfapp:TreeTemplates;
spin:constraint
[rdf:typespl:Argument;
rdfs:comment"The node to return as single root - this is bound by the tree if the tree has a dedicated arg:root. Otherwise the node is created by the WHERE clause."^^xsd:string;
spl:optional"true"^^xsd:boolean;
spl:predicatearg:root;
spl:valueTyperdfs:Resource
].
app:TreeTemplates
rdf:typespin:SelectTemplate;
rdfs:comment"""Base class for SELECT templates that are used to populate trees. There are two kinds of queries:
a) to find all root nodes
b) to find the children of a given parent node.
All SELECT queries in subclass of this must return the following result variables:
SELECT ?node ?label ?leaf ?icon
- ?node: the resource behind the node, e.g. an owl:Class or skos:Concept
- ?label (optional): the label for the resource - if not used, the system will call ui:label(?node)
- ?leaf: true means no children, i.e. the node cannot be expanded
- ?icon (optional): CSS class for the icon"""^^xsd:string;
rdfs:label"Tree templates"^^xsd:string;
rdfs:subClassOfspin:SelectTemplates.
app:URIResourceEditor
rdf:typeapp:ObjectEditorClass;
rdfs:comment"The default Editor for resources, consisting of a combo-box with auto-complete."^^xsd:string;