It works!

Thanks so much Holger.

On Thu, Jul 24, 2025 at 1:04 AM Holger Knublauch <hol...@topquadrant.com>
wrote:

> 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 <http://evn.topbraidlive.org/evnprojects#Taxonomy> ;
> a teamwork:Vocabulary ;
> a owl:Ontology ;
> teamwork:taxonomyTreeOrderByExpr "STRLEN(tbs:label(IRI($value)))" ;
>
> HTH
> Holger
>
>
> On Jul 23, 2025, at 19:30, Jessica Cleary-Kemp <jessica.cle...@bold.com>
> wrote:
>
> 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.
>
> 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 topbraid-users@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-users+unsubscr...@googlegroups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/topbraid-users/23449b52-4588-44e2-a1fd-fe4c861e7695n%40googlegroups.com
> <https://groups.google.com/d/msgid/topbraid-users/23449b52-4588-44e2-a1fd-fe4c861e7695n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
> --
> The topics of this mailing list include TopBraid EDG and related
> technologies such as SHACL.
> To post to this group, send email to topbraid-users@googlegroups.com
> ---
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/topbraid-users/F00A01AD-A487-4929-A660-0F48EEA25755%40topquadrant.com
> <https://groups.google.com/d/msgid/topbraid-users/F00A01AD-A487-4929-A660-0F48EEA25755%40topquadrant.com?utm_medium=email&utm_source=footer>
> .
>

-- 








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 topbraid-users@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-users+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/topbraid-users/CA%2BqYWyX5n9Kzjdbb6JxgGjEO3ho6bhKkMN56woy_fJYUpGWvGQ%40mail.gmail.com.

Reply via email to