-
Notifications
You must be signed in to change notification settings - Fork 0
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
Compact URI Expansion #1
Comments
@RickMoynihan has also suggested that these could be loaded into the registry as a consequence of loading the vocab namespace. Also that:
|
This is more or less exactly what I was thinking. Thanks for taking the time to write it up. I think this should be the prefered way to define a prefix:
Also (= (curie->uri "skos:Concept")
(curie->uri [:skos :Concept])) ;; => true I'd expect this to be two protocol definitions one for To clarify my above suggestion: "that these could be loaded into the registry as a consequence of loading the vocab namespace.". I think that this means loading the |
Oh also agree |
Terminology wise I think we should use the more common term |
It would be nice to be able to expand CURIEs. We could do this with some sort of registry of prefixes.
Defining prefixes
We'd have an atom to act as a registry for prefixes. This would relate (with a hashmap) a prefix to a base URL.
I'm not sure whether the prefix param should be a symbol, keyword (namespaced-keyword), or string... (or perhaps to provide an interface where more than one works).
And we might want the uri to be a URI instead of a string... (coercing it might be more convenient)
Using prefixes
Intern'd vars?
Not sure how this relates to e.g.
skos:Concept
- or if it even needs to...The text was updated successfully, but these errors were encountered: