See the JSON-LD official specs for reference.
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 contextsbrapi.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) usingrdf:type(See in JSON-LD playground)
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 contextsbrapi.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)