zazuko/cube-creator

Domain of observedBy in cube constraint does not correspond to the domain of the organization in the observation

Opened this issue · 2 comments

Describe the bug
The domain (sh:in) of https://cube.link/observedBy in the cube constraint does not correspond to the domain of the organization in the observation. The sh:in domains use the themed namespaces, whereas the observations use ld.admin.ch
This causes an error when validating against the cube constraint for every observation.

Affected functionalities (all that apply)

  • CSV Mapping
  • Transformation
  • Publishing
  • Other

Relevant links
Example dataset cube constraint:
https://culture.ld.admin.ch/sfa/stapfer-enquete-1799/3/shape/#blank-17
Example observation:
https://culture.ld.admin.ch/sfa/stapfer-enquete-1799/3/observation/Schule/917-3

To Reproduce
validate example dataset with barnard59 / compare the two examples.

Expected behavior
Cube creator should generate shapes with the correct domain for cube:observedBy

@Rdataflow discovered this bug so feel free to add further context if necessary

@AdMSilvan thank you for reporting this one

@tpluscode how to test and DOD

  • consistent IRI between observations and observationConstraint
  • validation of observations are not longer violates on cubes:observedBy after republishing a cube