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

Profiles - Fix spatial property range #4

Closed
mjanez opened this issue Aug 23, 2023 · 2 comments · Fixed by #27
Closed

Profiles - Fix spatial property range #4

mjanez opened this issue Aug 23, 2023 · 2 comments · Fixed by #27
Assignees
Labels
bug Something isn't working schema mjanez/ckanext-scheming_dcat schemas improvements or fixes

Comments

@mjanez
Copy link
Owner

mjanez commented Aug 23, 2023

dct:spatial has a range: dct:Location

  Property Range Card Definition Usage DCAT
  bbox Literal 0..1 The geographic bounding box of a resource.   Link
  centroid Literal 0..1 The geographic center (centroid) of a resource.   Link
  geometry Geometry 0..1 The corresponding geometry for a resource.   Link

Info: https://semiceu.github.io/DCAT-AP/releases/3.0.0/#Location

If there are multiple locations in the Catalog for a single spatial_uri, the DCAT-AP Validator fails because a Location should have only one bbox (0..1).

<http://datos.gob.es/recurso/sector-publico/territorio/Pais/España> a dct:Location ;
    dcat:bbox "POLYGON ((-18.2700 27.5400, 4.4400 27.5400, 4.4400 43.8500, -18.2700 43.8500, -18.2700 27.5400))"^^gsp:wktLiteral .
    dcat:bbox "POLYGON ((-18.2700 27.5200, 4.4400 27.5300, 4.4300 43.8500, -18.2700 43.8500, -18.2700 27.5400))"^^gsp:wktLiteral .
    dcat:bbox "POLYGON ((-18.2200 27.5300, 4.4400 27.5400, 4.4300 43.8500, -18.2700 43.8500, -18.2700 27.5400))"^^gsp:wktLiteral .
@mjanez mjanez added bug Something isn't working schema mjanez/ckanext-scheming_dcat schemas improvements or fixes labels Aug 23, 2023
@mjanez mjanez self-assigned this Aug 23, 2023
@mjanez
Copy link
Owner Author

mjanez commented Sep 1, 2023

Fix WKT/GeoJSON triples 39582c3

mjanez added a commit that referenced this issue Aug 21, 2024
dct:Location cardinality to 0.1 to avoid errors when validating with DCAT-AP
#4
@mjanez
Copy link
Owner Author

mjanez commented Aug 21, 2024

Fixed by #27

@mjanez mjanez closed this as completed Aug 21, 2024
mjanez added a commit that referenced this issue Aug 21, 2024
Check if the predicate already exists for the spatial_ref. Location props have only one (0..1). #4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working schema mjanez/ckanext-scheming_dcat schemas improvements or fixes
Projects
None yet
1 participant