GithubHelp home page GithubHelp logo

Comments (8)

andrea-perego avatar andrea-perego commented on June 12, 2024

@ArthurGenet said:

Hello,

I am trying to convert a ISO-19115 xml file to a geodcat file with the Python code.
The result I get is:

[an empty graph]

Does that mean that there are problems in my xml? Do you have an xml file that works I could download?

I think the issue is that the GeoDCAT-AP XSLT was designed to process ISO 19115:2003 / ISO 19139:2007 records, whereas, if I'm not mistaken, your file implements the latest versions of these standards.

You can find some sample records and test the XSLT on them in the demo of the GeoDCAT-AP API:

http://geodcat-ap.semic.eu/api/

I've also tried to run the xsl with Apache Nifi (https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.6.0/org.apache.nifi.processors.standard.TransformXml/) but there was an error:

[snip]

Reading the log, I'm not sure which is the problem. Some issues raised when using SAXON were related to the fact that the GeoDCAT-AP XSLT is using XSLT 1.0 instead of XSLT 2.0, but I don't know if this is the case here.

from iso-19139-to-dcat-ap.

ArthurGenet avatar ArthurGenet commented on June 12, 2024

@andrea-perego thanks a lot for your answer
yes I think it is in ISO-19139-3 so that's probably why it doesn't work, I haven't seen really any solutions though, I guess I have to do the mapping by myself so. Or maybe convert my file to ISO-19139:2007 but I don't know where the XSL is available.

from iso-19139-to-dcat-ap.

andrea-perego avatar andrea-perego commented on June 12, 2024

A possible first step is to create a copy of the GeoDCAT-AP XSLT, and update the namespace URIs as per ISO 19139-3. This may help see if the XSLT returns something, and, in such a case, what is left out.

For the records, providing support to the new version of ISO 19115 was considered as possible future work in GeoDCAT-AP. In view of this, @AntoRot contributed a comparison between the old and new version of ISO 19115, that is included in appendix to the GeoDCAT-AP specification:

https://semiceu.github.io/GeoDCAT-AP/releases/2.0.0/#comparison-between-inspire-and-iso19115-12014

I wonder whether there is now interest in moving forward this work.

@AntoRot , @pvgenuchten , @uvoges , @sgrellet , WDYT?

from iso-19139-to-dcat-ap.

sgrellet avatar sgrellet commented on June 12, 2024

Thanks @andrea-perego

"I wonder whether there is now interest in moving forward this work."

I see more and more national & community wide projects that bring around the same table people coming from both "communities".
Such an exercice is thus crucial to me to create the necessary bridge between both.

from iso-19139-to-dcat-ap.

ArthurGenet avatar ArthurGenet commented on June 12, 2024

Hello @andrea-perego,
Thanks a lot for your help.
I am creating my metadata with the Apache SIS library, I found that the library creates ISO 19139-3 2016 by default but provides options to create metadata in ISO 19139-2 2007 (https://sis.apache.org/apidocs/org/apache/sis/xml/XML.html#METADATA_VERSION)
So I think I am now downloading the good xml and it works if I replace "gmi:MI_Metadata" by "gmd:MD_Metadata"
Some metadata are lost but I can maybe modify the XSLT to make it works for me.

from iso-19139-to-dcat-ap.

AntoRot avatar AntoRot commented on June 12, 2024

Dear @andrea-perego,

I think that this could be a useful work in view of a widespread use of the latest version of ISO 19115 and future versions of the INSPIRE TGs that will have to take into account the new ISO 19115 family standards, currently not used.

Anyway I'm available to contribute.

from iso-19139-to-dcat-ap.

pvgenuchten avatar pvgenuchten commented on June 12, 2024

geonetwork has a basic iso19115-3 to dcat conversion, which could be a starting point

https://github.com/geonetwork/core-geonetwork/blob/main/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/present/metadata-rdf.xsl

from iso-19139-to-dcat-ap.

culkeri avatar culkeri commented on June 12, 2024

geonetwork has a basic iso19115-3 to dcat conversion, which could be a starting point

https://github.com/geonetwork/core-geonetwork/blob/main/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/present/metadata-rdf.xsl

Do you know which version of dcat this is.? GeoDCAT-AP - Version 2.0?

from iso-19139-to-dcat-ap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.