Setting custom display order for top levels of a concept scheme

23 views
Skip to first unread message

Jessica Cleary-Kemp

unread,
Jul 23, 2025, 12:30:49 PMJul 23
to TopBraid Suite Users
Hi Holger,

I am wondering if there is a simple way to create a custom display order to view top levels of a concept scheme in the nav pane within a taxonomy. Right now they order themselves alphabetically, so as a workaround we sometimes prepend a number to the skos:prefLabel to get them to display how we want. But I suspect there is a better way. Any tips?

e.g., if I have the two top level concepts "High school diploma" and "Bachelor's Degree" I don't want them to display in the navigation pane in alphabetical order because it's counter intuitive. So right now I would name them "1. High school diploma" and "2. Bachelor's Degree", for example.

Holger Knublauch

unread,
Jul 24, 2025, 2:04:39 AMJul 24
to topbrai...@googlegroups.com
Hi Jessica,

Yes it is possible, see the property

teamwork:taxonomyTreeOrderByExpr
  a rdf:Property ;
  rdfs:comment """A SPARQL expression that is used to order the nodes in a Taxonomy tree. The expression is evaluated with $value as a pre-bound value as the URI of the current tree node - note this is an xsd:string literal, not a IRI node. The expression can return any RDF node that can be compared to the results of other calls. For example, use COALESCE(<http://spinrdf.org/spl#object>(IRI($value), <http://example.org/property>), <http://uispin.org/ui#label>(IRI($value))) to sort by the values of a given example property, falling back to the display label (ui:label) if absent.

Values of this property are expected to be attached to the owl:Ontology instance of the master graph of a taxonomy. Imported values are being ignored right now, pending user feedback.""" ;
  rdfs:label "taxonomy tree order by expr" ;
  rdfs:range xsd:string ;
.

For example, this will order the concepts by the length of their display labels:

<urn:x-evn-master:test>
a teamwork:Vocabulary ;
a owl:Ontology ;
teamwork:taxonomyTreeOrderByExpr "STRLEN(tbs:label(IRI($value)))" ;

HTH
Holger


This email may contain material that is confidential, privileged, or for the sole use of the intended recipient.  Any review, disclosure, reliance, or distribution by others or forwarding without express permission is strictly prohibited.  If you are not the intended recipient, please contact the sender and delete all copies, including attachments.


--
The topics of this mailing list include TopBraid EDG and related technologies such as SHACL.
To post to this group, send email to topbrai...@googlegroups.com
---
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 topbraid-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/topbraid-users/23449b52-4588-44e2-a1fd-fe4c861e7695n%40googlegroups.com.

Jessica Cleary-Kemp

unread,
Jul 24, 2025, 10:35:34 PMJul 24
to topbrai...@googlegroups.com
It works!

Thanks so much Holger.

You received this message because you are subscribed to a topic in the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/topbraid-users/GCopWHCJHy8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to topbraid-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/topbraid-users/F00A01AD-A487-4929-A660-0F48EEA25755%40topquadrant.com.
Reply all
Reply to author
Forward
0 new messages