Skip to content

plantbreeding/BrAPI-jsonld

Repository files navigation

BrAPI JSON-LD experimentations

See the JSON-LD official specs for reference.

Approach 1: BrAPI centric

The BrAPI centric approach strategy is to model the whole BrAPI in JSON-LD without relying on external ontologies. This model would use a IRIs prefixed by the brapi.org domain (something like https://brapi.org/rdf/).

This JSON-LD BrAPI model can then be mapped to standard ontologies via @type (rdf:type), owl:sameAs or any other property.

Under the brapi-centric folder you can find the following:

  • context => JSON-LD contexts

    • brapi.jsonld => Describing the base BrAPI context (result, metadata, etc.)
    • *.jsonld => Describing the BrAPI context for each entity (Germplasm, Study, etc.)
  • brapi-model.jsonld => BrAPI RDFs model (classes & properties) (See in JSON-LD playground)

  • observationUnit-example.jsonld => Example of BrAPI data extended with JSON-LD (See in JSON-LD playground)

  • germplasm-example.jsonld => Example of BrAPI data extended with JSON-LD (See in JSON-LD playground)

  • ontology-mapping-graph.jsonld => Example mapping of germplasm model to other ontologies (xsd, wikidata, schema.org) using rdf:type (See in JSON-LD playground)

Approach 2: Based on external ontologies

Another approach for BrAPI JSON-LD is to develop the model based on other ontologies. This model would rely on ontologies like MIAPPE (pheno metadata), CropOntology (MCPD & variables), etc. Some BrAPI property might have to be defined in the brapi.org namespace.

Under the external-ontology folder you can find the following:

  • context => JSON-LD contexts

    • brapi.jsonld => Describing the base BrAPI model (result, metadata, etc.)
    • Germplasm.jsonld => Describing the BrAPI germplasm model based on standard ontologies
  • germplasm-example.jsonld => Example of BrAPI data extended with JSON-LD (See in JSON-LD playground)

  • cropontology-variable-example.jsonld => Example of BrAPI observation variable data extended with CropOntology compatible RDF schema (See in JSON-LD playground)

About

Experimentations with JSON-LD for the Breeding API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published