hbz / lobid

Linking Open Bibliographic Data
https://lobid.org/
Eclipse Public License 2.0
15 stars 4 forks source link

Use custom JSON-LD context #472

Open acka47 opened 2 years ago

acka47 commented 2 years ago

From https://github.com/hbz/lobid/issues/432#issuecomment-780535959:

Create and use a project-specific JSON-LD context (for now, I have added "@context": "https://schema.org" for most entries which is enough for development. In the end, we will have to take a deeper look and create a application-specific context.)

One concrete thing to address is this:

Currently, we use JSON-LD language maps for name and description. To make this valid JSON-LD we will have to adjust the context accordingly:

{
  "name": {
    "@container": "@language"
  },
  "description": {
    "@container": "@language"
  }
}