diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d9581c..caaa28d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## [0.2.8] - Unreleased - Fixed bug with subtype for semantic code +- Changed URI representation to upper case - Added line conversion tool - Updated dependencies diff --git a/docs/changelog.md b/docs/changelog.md index 4d9581c..caaa28d 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,6 +2,7 @@ ## [0.2.8] - Unreleased - Fixed bug with subtype for semantic code +- Changed URI representation to upper case - Added line conversion tool - Updated dependencies diff --git a/iscc_core/models.py b/iscc_core/models.py index 9d6deae..c7e48d9 100644 --- a/iscc_core/models.py +++ b/iscc_core/models.py @@ -87,7 +87,7 @@ def code(self) -> str: @property def uri(self) -> str: """Standard uri representation of an ISCC code.""" - return f"iscc:{self.code.lower()}" + return f"ISCC:{self.code.upper()}" @property def bytes(self) -> bytes: diff --git a/tests/test_codec.py b/tests/test_codec.py index f456c80..7983ed3 100644 --- a/tests/test_codec.py +++ b/tests/test_codec.py @@ -183,7 +183,7 @@ def test_code_hashable(): def test_Code_uri(): mco = ic.Code(ic.gen_meta_code("This is an URI representation of a Meta-Code")["iscc"]) assert mco.code == "AAAX334V4AMT2PP4" - assert mco.uri == "iscc:aaax334v4amt2pp4" + assert mco.uri == "ISCC:AAAX334V4AMT2PP4" def test_Code_mf_base16():