skosmos:propertyOrder not working completely

30 views
Skip to first unread message

opo...@gmail.com

unread,
Jan 8, 2025, 7:29:17 AMJan 8
to Skosmos Users
Hi;
I've loaded a vocabulary of RDA properties (as concepts) with some custom properties, which I want to display in a certain order on the concept pages, using this configuration:

skosmos:propertyOrder :ap_propOrder ;
...
:ap_propOrder a skosmos:PropertyOrder ; 
<https://id.nb.no/vocabulary/apont/SES> <https://id.nb.no/vocabulary/apont/hasPSnote> <https://id.nb.no/vocabulary/apont/hasAPnote> skos:related skos:altLabel skosmos:memberOf skos:note skos:scopeNote skos:historyNote rdfs:comment dc:source)

However, this works only partly, in the sense that the first 8 properties are displayed in the specified order, while the rest are not. In fact, the last 4 custom properties seem to be displayed alphabeticalley (../hasPSnote, .../SES, .../VES [no occurrence of hasAPspec])

Without the propertyOrder config, the following display order is used:
rdf:type, skos:definition, skos:broader: skos:narrower, dc:references, .../hasObligation, .../hasPSnote, .../hasRegMethod, .../hasRepeatability, .../SES, .../VES. Hence, alphabetical order of the custom properties, it seems.

Does this have anything to do with the custom properties being external to skos and dcterms? In any case, I'd be grateful for any advice on  how to obtain the desired display order..

Regards,
Oddrun Pauline Ohren
National LIbrary of Norway

Osma Suominen

unread,
Jan 23, 2025, 9:25:10 AMJan 23
to skosmo...@googlegroups.com
Hi Oddrun,

again I don't know the solution, but I wonder why you've used full URIs
instead of prefixed shortcuts in your configuration? I know it shouldn't
matter, but the EasyRdf library that Skosmos uses is sometimes a bit
tricky to work with, so there could be differences in how prefixed vs.
full URIs are handled in the code. I suggest that you define a prefix
for these in the config.ttl file and use prefixed URIs (CURIEs) in the
configuration, maybe that helps?

-Osma

On 08/01/2025 14:29, opo...@gmail.com wrote:
> Hi;
> I've loaded a vocabulary of RDA properties (as concepts) with some
> custom properties, which I want to display in a certain order on the
> concept pages, using this configuration:
>
> skosmos:propertyOrder :ap_propOrder ;
> ...
> :ap_propOrder a skosmos:PropertyOrder ;
> rdf:value ( rdf:type dc:references skos:definition skos:broader
> skos:narrower <https://id.nb.no/vocabulary/apont/hasObligation>
> <https://id.nb.no/vocabulary/apont/hasRepeatability>
> <https://id.nb.no/vocabulary/apont/hasRegMethod>
> <https://id.nb.no/vocabulary/apont/VES>
> <https://id.nb.no/vocabulary/apont/SES>
> <https://id.nb.no/vocabulary/apont/hasPSnote>
> <https://id.nb.no/vocabulary/apont/hasAPnote> skos:related skos:altLabel
> skosmos:memberOf skos:note skos:scopeNote skos:historyNote rdfs:comment
> dc:source)
>
> However, this works only partly, in the sense that the first 8
> properties are displayed in the specified order, while the rest are not.
> In fact, the last 4 custom properties seem to be displayed
> alphabeticalley (../hasPSnote, .../SES, .../VES [no occurrence of
> hasAPspec])
>
> *Without *the propertyOrder config, the following display order is used:
> rdf:type, skos:definition, skos:broader: skos:narrower, dc:references,
> .../hasObligation, .../hasPSnote, .../hasRegMethod,
> .../hasRepeatability, .../SES, .../VES. Hence, alphabetical order of the
> custom properties, it seems.
>
> Does this have anything to do with the custom properties being external
> to skos and dcterms? In any case, I'd be grateful for any advice on  how
> to obtain the desired display order..
>
> Regards,
> Oddrun Pauline Ohren
> National LIbrary of Norway
>
> --
> You received this message because you are subscribed to the Google
> Groups "Skosmos Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to skosmos-user...@googlegroups.com
> <mailto:skosmos-user...@googlegroups.com>.
> To view this discussion visit
> https://groups.google.com/d/msgid/skosmos-users/e770db0c-339c-431e-92a6-ed1aa4bdb2c1n%40googlegroups.com <https://groups.google.com/d/msgid/skosmos-users/e770db0c-339c-431e-92a6-ed1aa4bdb2c1n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 15 (Unioninkatu 36)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
osma.s...@helsinki.fi
http://www.nationallibrary.fi
Reply all
Reply to author
Forward
0 new messages