Closed Fabalab closed 2 months ago
Just recreated error as described above. It is cause by an error in the HqdmObjectFactory.mapToThing(final String typeName, final IRI iri)
switch-case statement for the offending type handled in the case "class_of_class_of_spatio_temporal_extent"
. It should return ClassServices.createClassOfClassOfSpatioTemporalExtent(iri);
but instead returns ClassServices.createClassOfSpatioTemporalExtent(iri);
.
I have just corrected it locally and it works. I will submit a PR later for this fix. There is already an outstanding PR for HqdmObjectFactory
but it also contains the error you found (see here).
Describe the bug ClassOfClassOfSpatioTemporalExtent is being fetched as a ClassOfSpatioTemporalExtent so that when it is cast, a ClassCastException is being thrown.
To Reproduce Run the following code:
Which spits out the following error:
Expected behavior This should run with no errors or output.
Additional context Run on the current Main branch of MagmaCore