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

Document that now CUDS objects can have custom IRIs #160

Open
kysrpex opened this issue May 31, 2021 · 0 comments
Open

Document that now CUDS objects can have custom IRIs #160

kysrpex opened this issue May 31, 2021 · 0 comments

Comments

@kysrpex
Copy link
Contributor

kysrpex commented May 31, 2021

I guess this fits either in the CUDS API tutorial or at the end of the ontology interface tutorial.

Some inspiration from the release text:

CUDS objects (ontology individuals) can now have a custom IRI, instead of one from the OSP-core namespace. Just use the irikeyword argument when calling the ontology class to create the CUDS object, e.g.city.Citizen(name='Klaus', age=55, iri='http://example.org/mynamespace#Klaus')`. However, in order to achieve optimal performance it is recommended to continue using the OSP-core namespace, as in such case OSP-core only has to store and handle an uuid, instead of an iri, which is usually far longer.`

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

No branches or pull requests

1 participant