Open stuchalk opened 6 months ago
Open the cif_core.dic
file and do the following changes:
After this, running dic2owl cif_core.dic
should successfully build the cif_core.tll
file.
Recently, the CIF_CORE
dictionary was internally renamed from CORE_DIC
to CIF_CORE
to adhere to the newly agreed upon conventions. However, this also resulted in a CIF file in which the data block (top level container) and a save frame (lower level container) both have the same name (CORE_DIC
). While this is perfectly valid in CIF, the dic2owl
script seems to not process this very well. At least that is my educated guess.
There have been discussions in the CIF_CORE repository to also change the name of the save frame so the issue might just go away on its own. However, it would still make sense to also update the dic2owl
script to properly process such valid CIF dictionary files.
@stuchalk Ok, so with the recent changes to the CIF_CORE
dictionary (https://github.com/COMCIFS/cif_core/pull/492), this bug no longer manifests. Just remove all of the ignored/generated files and rerun the ttl file build command.
While the underlying issue in the software is still present, it is unlikely to manifest again with the IUCr CIF dictionaries given the recently agreed upon naming conventions (https://github.com/COMCIFS/cif_core/issues/488). Patching the bug would be nice, but the issue should be viewed as having a much lower priority.
When using dic2owl to create cif_core.tll I get the following error:
Any ideas how to fix? I am using the most recent version of the cif_core.dic (3.3.0 5/2/24) and the latest version of dic2owl (commits up through Commits on Nov 9, 2023)
Stuart