Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow the IAutoIDGenerator to be null.
Amend the AutoIDAllocator class to allow it to be used with a null IAutoIDGenerator -- in which cases it obviously never allocates any ID. This makes it easier to ensure that we can never let IDs in the auto-ID namespace (https://w3id.org/kgcl/autoid/) pass into the target ontology without being re-assigned, in the event we cannot obtain a suitable ID generator -- all we have to do is check the return value of the reallocate() method, which will return false if we have not been able to reassign any ID.
- Loading branch information