-
Notifications
You must be signed in to change notification settings - Fork 6
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
IRIs for DLite instances #788
Comments
PS: "AA6060" is a commonly used aluminum alloy and has semantic meaning, and refers to an instance in this issue. To include this feature we need a function to check if a URI points to a datamodel or an instance. Currently, if the last part of the url ( An example for Naively, a machine could read Choosing standard semver would unfortunately not be backwards-compatible (since 0.1 is not a valid semver, 0.1.0 is). |
Good comments. I think we only need to consider the following cases:
The first three forms are valid IRIs and can be used in a knowledge base. Ideally, the
Only instances who's ID contain no slashes can use the third form. If the ID contains a slash, the second form should be use when an valid IRI is needed. Except for that it should be invalid to give an instance an ID that matches the second or third form, these requirements does not impose any additional restrictions on what IDs can be used. |
To increase the freedom of selecting IDs, we could strengthening the restrictions on NAMESPACE, VERSION and NAME, for instance:
However, whether this is a good idea can be discussed. The rules should be simple! |
Thinking more about this. The To conclude, we should not add support for treating However, it may be possible to add support for namespace prefixes. For example, if you define "chem" as a namespace prefix for "http://onto-ns.com/meta/calm/0.1/Chemistry/", you should be able to refer to the instance with |
Currently the following instance IDs translate into the same UUIDs:
where
http://onto-ns.com/meta/calm/0.1/Chemistry
is the URI of the metadata of the instance. The reason for the last ID is because25a1d213-15bb-5d46-9fcc-cbb3a6e0568e
is the version 5 sha1-based UUID ofaa6060
(using the DNS namespace).It would be nice to also be able to refer to the same instance with the IRI:
Implementing this only requires a small update in
src/getuuid.c
.The text was updated successfully, but these errors were encountered: