Skip to content
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

Add option to generate globally unique identifiers in IdentifierIssuer #45

Open
RinkeHoekstra opened this issue Jul 19, 2022 · 0 comments

Comments

@RinkeHoekstra
Copy link

The IdentifierIssuer currently uses a counter to ensure that e.g. blank nodes are assigned a unique id when flattening a JSON-LD file in jsonld.js.

This does not work very well when using jsonld.js as backend for parsing JSON-LD into a graph representation (e.g in rdflib.js).

Every time a new file is loaded, the counter will start from zero, and blank node identifiers are created that already exist in the graph.

It would be great if the identifier issuer would instead of a counter use a unique string generator with a low likelihood of clashes (e.g. UUID or a shortened form thereof).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant