skohub-io / skohub-vocabs

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

OWL types to CSS #195

Open sebilasse opened 2 years ago

sebilasse commented 2 years ago

These changes write back OWL types of SKOS concepts to CSS. CSS classes allow targeting different types in the /components.

It adds pseudoelements ("icons") to owl:Class, owl:ObjectProperty, owl:DatatypeProperty and a different color for any owl:FunctionalProperty

Apart from this, the header colors come now from the variables.

acka47 commented 2 years ago

Thanks for the Pull Request, Sebastian! I am hesitant to include this, though, as SkoHub is focused on SKOS vocabularies and I see some problems when we start to also support OWL, one being that people might think they can host their OWL ontologies with SkoHub Vocabs which we should not and can not provide. My feeling is to rather focus on SKOS for now and e.g. implement things like #91 first.

(I am in general skeptical about the benefits of adding owl statements to SKOS vocabularies. I will try to think about this more in the next two weeks and come back to you. Fittingly, I have "Key Choices in the Design of Simple Knowledge Organization System (SKOS)" on my reading list, which could bring some insights for this kind of discussion.)

sebilasse commented 2 years ago

@acka47 I see your points. It was really meant as inspiration. See https://github.com/skohub-io/skohub-vocabs/issues/188 it has color variables for the header. The header content could (to keep it simple) be provided in the variables file as well.

I am in general skeptical about the benefits of adding owl statements to SKOS vocabularies

I see. What I needed when documenting all the real used terms of the fediverse which ever arrived in any inbox: Say if the properties are a Class, DatatypeProperty, ObjectProperty and if it is functional.