geonetwork / geonetwork-microservices

GNU General Public License v2.0
13 stars 17 forks source link

OGC API Records / DCAT / Fix validation for endpointUrl #83

Closed fxprunayre closed 1 year ago

fxprunayre commented 1 year ago

In DCATService, endpoint URL is a rdf:resource (not a string)

            <dcat:endpointURL rdf:resource="https://geo.api.vlaanderen.be/ad/wfs?service=WFS&amp;request=getcapabilities"/>

Also fix the dcat_turtle format error on service.

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.RuntimeException: org.eclipse.rdf4j.rio.RDFParseException: unexpected attribute 'xsi:type' [line 159, column 198]] with root cause
org.eclipse.rdf4j.rio.RDFParseException: unexpected attribute 'xsi:type' [line 159, column 198]

Validation can be tested using https://www.itb.ec.europa.eu/shacl/dcat-ap/upload

<!--  Encoding before <dcat:endpointURL xsi:type="xs:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">https://geo.api.vlaanderen.be/GRB/wms</dcat:endpointURL>-->
            <dcat:endpointURL rdf:resource="https://geo.api.vlaanderen.be/GRB/wms"/>
        </dcat:DataService>
    </foaf:primaryTopic>
</dcat:CatalogRecord>