-
Notifications
You must be signed in to change notification settings - Fork 315
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
[FEATURE] Utility method to load prefixes from prefix.cc #957
Comments
Sounds interesting but I believe it will require some more work to make renderers aware of which prefixes are used in the ontology. Might cause a lot of unused prefixes to appear in the output. |
Hi @ignazio1977 thanks for feedback. |
The prefixes used in the input file should be retained as part of the ontology format, so if you parse an ontology, its manager should have an |
On that topic - I've not tried this to be sure it works, I believe there are unit tests that would fail if I'm mistaken. Not to say it's the best state of affairs... |
PrefixManager currently facilitates
#copyPrefixesFrom(Map<String,String> from)
which is useful if the implementer has already created aMap<String,String>
of prefixes.In the case where an implementer want to write more flexible code to make the PrefixManager prefix-aware, I feel like a nice feature would be to use something like prefix.cc to populate these.
For example, we could add a new function
#loadFromPrefixCC
which would return aMap<String,String>
simply by hitting http://prefix.cc/popular/all.json. This could then be implemented as followsAny thoughts folks?
The text was updated successfully, but these errors were encountered: