Hi,
let me start by clarifying that SWA search forms are phasing out. Almost
all of the editors of 6.2 already include the newer tabular search
component, and with 6.3 even the Ontology editors will use such search
components. I assume you are referring to the Ontology editor?
To answer your specific question, the choice of object facets is based
on the swa:objectWidgetWeight that each component declares. Look at the
examples of the built-in ObjectFacet subclasses. The higher the value,
the more likely the component will be used.
You can add extra weighted expressions with higher values, e.g. to
return a different value depending on the ?predicate. You could also add
some kind of indirection here, if you want this to be declared per
property, if you define a widget weight expression that looks for the
presence of certain marker properties at the RDF property. So for
example, in some ui.ttlx file, declare something like (untested):
swa:ContainsStringFacet
swa:objectWidgetWeight [
rdf:type swa:WeightedExpression ;
swa:weight 100 ;
swa:expression [ ... SPIN syntax of EXISTS { ?predicate
ex:preferContainsFacet true } ]
and then in your model add
rdfs:label ex:preferContainsFacet true .
HTH
Holger
On 28/08/2019 23:49, [email protected] wrote:
I would like certain properties on our EDG 6.2 search forms to default
to certain filter types; for example, rdfs:label should always default
to "contains."
I suspect that this can be done in the definition of property shapes,
by choosing an appropriate swa:ObjectFacetClass widget. But I can't
find any documentation on this. Can anyone point me to anything that
explains/depicts the various
swa:ObjectViewerClass/ObjectEditorClass/ObjectFacetClass instances
that are available as view/edit/search widgets, respectively?
--
You received this message because you are subscribed to the Google
Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/3c8453c6-3916-4d8d-967d-c778bae55952%40googlegroups.com
<https://groups.google.com/d/msgid/topbraid-users/3c8453c6-3916-4d8d-967d-c778bae55952%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups "TopBraid
Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/2b681cb2-dd92-2f7d-4485-d1d19fbfaffe%40topquadrant.com.