openMetadataInitiative / openMINDS_Python

Python package for the openMINDS metadata models. The package contains all openMINDS schemas as Python classes in addition to schema base classes and utility methods.
MIT License
1 stars 1 forks source link

save () - @id naming convention #15

Open Peyman-N opened 11 months ago

Peyman-N commented 11 months ago

At one point in the past we decided to use this naming convention "http://LOCALHOST/openminds/instance/SCHEMATYPE/UUID" for @ids; I think something like this is better than just "_:000001"`(SCHEMATYPE would be written in lower camelCase here)

apdavison commented 11 months ago

I am against using LOCALHOST. If a user can't provide a stable, persistent @id, I think it's better to use a blank node identifier.

The blank node identifier could certainly be something like _:SCHEMATYPE/UUID, though (cf #14)