Code Monkey home page Code Monkey logo

Comments (1)

jmvanel avatar jmvanel commented on August 20, 2024

For now, I studied the /occurrence and /species API's.
My proposal could turn the gbif.org API into a regular citizen of the Web of Data (a.k.a. Linked Open Data).
This is, web client programs will be able to get RDF triples from the existing URL's from gbif.org API , and recursively the triples obtained will refer to URL's that also return RDF triples.
See famous Tim Berners Lee 5 stars mug page : https://www.w3.org/DesignIssues/LinkedData.html

There are 3 scenarios for using JSON-LD in gbif.org API .

  1. not changing anything, but be add this in documentation and be aware of the possibilities by external JSON-LD processors and discuss use cases and the big picture (LOD versus frictionlessdata.io, etc)
  2. just add at root an @context key
  3. in addition add @id and @type (see below)

The @context key could point to my work-in-progress JSON-LD in github.com/jmvanel/rdf-convert/gbif.org , or more probably to a properly versioned URL :

"@context" : "https://raw.githubusercontent.com/jmvanel/rdf-convert/master/gbif.org/context.jsonld"

For a concrete proposal, here are key - value pairs for @id and @type that could be added to
https://api.gbif.org/v1/occurrence/1258202889 .
This would make more visible the URI, which could a be problem for API users (?) . But this would simplify the @context . Note that the existing ID's being integers, wich is not taken in account by JSON-LD API recommendation at the moment, will be soon not a problem , I made an issue for that .

"@id" : "1258202889"
"@type" : "dwc:PreservedSpecimen"

For your understanding of JSON-LD , given above @context , this is equivalent to

"@id" : "https://api.gbif.org/v1/occurrence/1258202889"
"@type" : "http://rs.tdwg.org/dwc/terms/PreservedSpecimen"

from gbif-api.

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.