Add support for ContextHashBasedString algorithm #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have updated the package by adding an algorithm based on the paper Linked-Data Aware URI Schemes for Referencing Text Fragments (https://doi.org/10.1007/978-3-642-33876-2_17) to create ContextHashBasedStrings.
I added the algorithm as a subpackage, so it does not interfere with the current structure of the project or its semantics. I added a directory called tools and placed the algorithm inside it.
The algorithm is not integrated with the current code. Therefore, no functionality has been changed. This extension only adds support for creating ContextHashBasedString. I also extended the algorithm, so it can create safer hashes (even more unique).
I also created new test for the algorithm and updated the previous test. Some of the previous tests that used the ContextHashBasedString where not fully compliant with the algorithm. For the previous test, I only changed the URI and created them using the new algorithm. It does not effect the functionaly sice the URI for the ContextHashBasedString must be provided and it is not automaticaly generated