skohub-io / skohub-vocabs

A lightweight tool to publish SKOS Vocabularies
https://skohub.io/
Apache License 2.0
36 stars 25 forks source link

Do not require "narrower" statements #99

Closed acka47 closed 3 years ago

acka47 commented 4 years ago

From #85. Currently, narrower statements are required in the turtle file for hierarchical relationships being shown in the UI, broader are not. It would be good if you could choose only one of both and the vocab would build as expected.

sroertgen commented 3 years ago

I added a little "skosifying" in this branch. It seems to work and adds skos:narrower if they are not there for the corresponding skos:broader with some little test-file I wrote. Maybe you want to test it out?

literarymachine commented 3 years ago

While this works, I think I would do the "skosification" on the abstract RDF model, not the JSON-LD. See https://github.com/skohub-io/skohub-vocabs/pull/120/files

sroertgen commented 3 years ago

I favour your approach. See https://github.com/skohub-io/skohub-vocabs/pull/120#issuecomment-759291019