Giter VIP home page Giter VIP logo

Comments (11)

fxprunayre avatar fxprunayre commented on August 26, 2024

Maybe use the dcat output schema in CSW ?

from doc.

nmtoken avatar nmtoken commented on August 26, 2024

Possibly, but then documentation (latest now https://geonetwork-opensource.org/manuals/3.8.x/fr/api/index.html) seems wrong listing CSW and RDF DCAT end point as separate items

I guess i'm just dumb, and it's probably

{your server}/{your catalogue}/srv/eng/rdf.metadata.get?

If I do that on a GN 3.8.0.0 instance I get a message like:

{"error": { "message": "java.lang.Exception: Request must contain a UUID (uuid) or an ID (id)" , "class": "RuntimeException" , "request": {} } }

Which is promising, I guess I was expecting a way or interrogating the endpoint to discover capabilities, available records etc like a CSW endpoint, but perhaps you can just get a record if you somehow already know it's identifier?

from doc.

archaeogeek avatar archaeogeek commented on August 26, 2024

rdf.search allows you to get multiple records, and you can filter on (eg category) with rdf.search?_cat=foo. There's already an issue (#38) to get some documentation into that page. I don't think there's a method of discovering capabilities though, although it would be nice if there was...

from doc.

fxprunayre avatar fxprunayre commented on August 26, 2024

I think we should avoid to put too much efforts in search API doc as this will change a lot with Elasticsearch move and some of the services may even be removed ...

from doc.

nmtoken avatar nmtoken commented on August 26, 2024

So to summarise currently:

{your server}/{your catalogue}/srv/eng/rdf.metadata.get?uuid={some_uuid}

gets a RDF record and

{your server}/{your catalogue}/srv/eng/rdf.search?

gets a dcat:Catalog RDF response describing all records in the catalogue, but there is no link between the dcat:dataset rdf:resource URL and the RDF record URL, ~ there's no link with form {your server}/{your catalogue}/srv/eng/rdf.metadata.get?uuid={some_uuid}, so even if we said the endpoint was {your server}/{your catalogue}/srv/eng/rdf something wouldn't be as expected.

Possibly my starting point should be the, also undocumented, OpenSearch resource?

{your server}/{your catalogue}/srv/eng/portal.opensearch

which gives me inter al.

<Url type="application/rdf+xml" template="{your server}/{your catalogue}/srv/eng/rdf.search?any={searchTerms}&hitsPerPage={count?}&bbox={geo:box?}&geometry={geo:geometry?}&name={geo:locationString?}"/>

I'm not sure what effort should be put into documentation; some documentation would be good to describe what's currently available, and even a note to say what is likely to get replaced.

from doc.

fxprunayre avatar fxprunayre commented on August 26, 2024

https://trac.osgeo.org/geonetwork/wiki/proposals/DCATandRDFServices may help but is probably not completely up to date.

from doc.

archaeogeek avatar archaeogeek commented on August 26, 2024

I'm definitely in favour of some documentation on these blank pages- even if it's just the very basics outlined above. Something is better than nothing, and it's not a lot of effort. I'm happy to add the basics, if others can then add to it as they explore further. @nmtoken would you be able to contribute?

@fxprunayre Also definite +1 for a note on which endpoints are likely to be deprecated as I'm sure I'm not the only one who uses various endpoints for business-critical functions and would be in a lot of trouble if they were dropped!

from doc.

nmtoken avatar nmtoken commented on August 26, 2024

@archaeogeek I'll contribute if I'm able.

from doc.

archaeogeek avatar archaeogeek commented on August 26, 2024

@nmtoken and @fxprunayre I've submitted this PR #70 to get a basic page started. Any contributions gratefully accepted!

from doc.

pvgenuchten avatar pvgenuchten commented on August 26, 2024

slightly related here may be the future ogc-api-records endpoint, we have not yet considered how to adopt it, it will be an open api endpoint returning records (in various encodings i'd imagine).
I hope we can consider this endpoint in the upcoming elastic refactor

from doc.

archaeogeek avatar archaeogeek commented on August 26, 2024

Closing as cd5202c provides basics, anything additional can be added as a new issue

from doc.

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.