Skip to content

Document that now CUDS objects can have custom IRIs #160

Description

@domgz

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.`

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions