In pos-type-index-entries, type URLs with the same ending get the same label, e.g. http://www.w3.org/ns/iana/media-types/text/plain#Resource, http://www.w3.org/ns/iana/media-types/text/markdown#Resource both appear as "Resource".
The user can still distinguish them by expanding the label to show the uri or by looking at what resources are linked.
This behaviour is implemented in
https://github.com/pod-os/PodOS/blob/main/core/src/thing/labelForType.ts
While this particular case could be resolved with additional logic, it would be preferable for labelForType to look for labels that are already present in the store.
It would therefore become possible for the type index itself to therefore provide local labels, e.g.
<http://www.w3.org/ns/iana/media-types/text/plain#Resource> rdfs:label "Text files"
In
pos-type-index-entries, type URLs with the same ending get the same label, e.g.http://www.w3.org/ns/iana/media-types/text/plain#Resource,http://www.w3.org/ns/iana/media-types/text/markdown#Resourceboth appear as "Resource".The user can still distinguish them by expanding the label to show the uri or by looking at what resources are linked.
This behaviour is implemented in
https://github.com/pod-os/PodOS/blob/main/core/src/thing/labelForType.ts
While this particular case could be resolved with additional logic, it would be preferable for
labelForTypeto look for labels that are already present in the store.It would therefore become possible for the type index itself to therefore provide local labels, e.g.
<http://www.w3.org/ns/iana/media-types/text/plain#Resource> rdfs:label "Text files"