mirror of
https://github.com/semver/semver.git
synced 2026-07-11 04:52:47 -05:00
[Ontology] XML Datatype for Semantic Versioning #390
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cmplstofB on GitHub (Aug 31, 2019).
Are there any plans to create XML datatype for Semantic Versioning?
Adding an identifier which represents the version information is based on Semantic Versioning can make the data more machine-friendly and human-readable.
@cmplstofB commented on GitHub (Aug 31, 2019):
Here is an example of the ontology for semver (it may contain some errors...);
@wizzwizz4 commented on GitHub (Sep 1, 2019):
What's that /onto page? It's not a URL; is it just a namespace URI?
@cmplstofB commented on GitHub (Sep 1, 2019):
@wizzwizz4 Yes.
I prepared the URI just to give an example.
@jwdonahue commented on GitHub (Sep 5, 2019):
This seems like a good idea. I think however, for those purposes, you may need a much more robust regex and we'd definitely need a lot more testing infrastructure to validate it. The example regex provided by the spec has been vetted against a large enough data set that we have high confidence in it, but the regex itself, depends on the version string being the sole content and starting at the beginning of the line.
I would add that all our test oracles are one liners as well.
@jwdonahue commented on GitHub (Sep 11, 2019):
Also, a lone version triple is not distinguishable as a SemVer string. Given the state of current practice in the software industry, you cannot unambiguously label the string "1.0.0" as a SemVer string, nor perhaps, in the absence of sufficient context, can you identify it as a version string of any kind.
@clemchst commented on GitHub (Sep 29, 2025):
+1 to this one.
It would be very nice to have an official xsd/namespace constraining SemVer values in xml files.