-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
Update namespace in urn #1808
base: main
Are you sure you want to change the base?
Update namespace in urn #1808
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved the GH Actions workflow to run. I don't know much about the urn spec or syntax, but searching the common-workflow-language
, there are many other occurrences (55 “code“ occurrences):
Also in this IETF doc: https://datatracker.ietf.org/doc/id/draft-thiemann-hash-urn-00.txt
Reading the document you linked in the issue linked here, I would expect :sha1
, so no idea why we have the ::sha1
, nor why this document above also uses the same two colons. Strange.
Codecov Report
@@ Coverage Diff @@
## main #1808 +/- ##
==========================================
+ Coverage 83.55% 83.62% +0.06%
==========================================
Files 44 44
Lines 8102 8102
Branches 2218 2218
==========================================
+ Hits 6770 6775 +5
+ Misses 851 847 -4
+ Partials 481 480 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
If we're using the It is as far as I can tell however compatible with the older RFC2141 you linked to.
Substituting the example
Now the question is if
And there it is in second line of Now in newer RFC8141 the rules are different:
We assign
So Therefore I don't see the need for this pull request as it is breaking the namespace which was already valid before, if a bit odd-looking (but then so are all the URNs! :-) ) The real fix should be to get rid of insecure SHA1 all together and use sha256 or better, which then can use the newer Naming things with hashes scheme (RFC 6920), which deliberately do not support SHA1 and has a registry of modern checksum algorithms. |
@MBueschelberger Can you help us by sharing your motivation for this change? |
Hi @mr-c, I actually requested this change since I was not able to parse the graph with any of the available RDFLib-versions. Removing the second colon actually solved the problem for me. This is why I actually initiated this discussion here about the origin of this Best regards |
@simleo Do you have experience using rdflib to parse CWL prov aggregates that contain |
@mr-c no, sorry. In runcrate, I use cwlprov-py to read CWLProv ROs, but I don't use rdflib directly. |
Related to #1806, the URN-double colon is updated to a single colon in order to be fully compliant to the urn-scheme