Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keine leeren Labels und Comments #4

Open
knudmoeller opened this issue Nov 20, 2024 · 1 comment
Open

Keine leeren Labels und Comments #4

knudmoeller opened this issue Nov 20, 2024 · 1 comment

Comments

@knudmoeller
Copy link
Collaborator

Ich würde keine leeren Strings (bzw. Leerzeichen) als noch fehlende Labels und Comments nutzen. Stattdessen sollten die entsprechende Triple einfach ganz wegfallen.

Also statt:

berorgs:Gericht a owl:Class ;
    rdfs:label " "@en ;
    rdfs:label "Gericht"@de ;
    rdfs:comment """ """@en ;
    rdfs:comment """ """@de ;
    rdfs:subClassOf org:Organization ;
    rdfs:isDefinedBy berorgs: ;
.

besser:

berorgs:Gericht a owl:Class ;
    rdfs:label "Gericht"@de ;
    rdfs:subClassOf org:Organization ;
    rdfs:isDefinedBy berorgs: ;
.

So kann Code, der z.B. diese Definitionen nutzen will, besser herausfinden, welche Labels und Comments gesetzt sind und welche nicht. Bei einem Triple mit Leerzeichen würde eine Query eben dieses leere Label zurückgeben. Wenn so eine Query zum Aufbau einer UI genutzt wird, führt das zu Verwirrung.

@knudmoeller
Copy link
Collaborator Author

Dazu passend habe ich den Pull Request #3 angepasst.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant