lambdamusic / Ontospy

Python library and command-line interface for inspecting and visualizing RDF models aka ontologies.
http://lambdamusic.github.io/Ontospy/
MIT License
218 stars 52 forks source link

ability to use preflanguage for labels in custom visualisations #85

Closed NielsHoffmann closed 2 years ago

NielsHoffmann commented 5 years ago

Hi,

Would you consider accepting this pull request? That way I can create a custom visualisation where rdfs:label is shown in the preferred (dutch) language.

Cheers, Niels

NielsHoffmann commented 5 years ago

hmmm, this doesn't seem to work properly after all....

d['name'] = x.bestLabel(quotes=False, prefLanguage=prefLang).replace("_", " ") seems to lose the value of prefLang after the first call in the loop? I'm at a loss why.

lambdamusic commented 2 years ago

Closing due to inactivity - FYI a similar feature will be added to the upcoming version of ontospy