-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON-LD mapping for schema #40
Comments
Great idea 👍 ! Much looking forward to it ;-) |
👍 |
@elf-pavlik @akuckartz @cgueret As there is renewed interest in this from #226 perhaps we can start mocking up a bit of JSON-LD context for OCDS. The main questions I've encountered when looking to do this are: (a) How do we best maintain a JSON-LD context alongside the main JSON schema? Is there some tooling that could help generate this programatically? (b) Should we be minting URIs for each OCDS field (e.g. http://ocds.opencontracting.org/vocab/1.0/description etc.) or trying to map to existing vocabularies (e.g. http://purl.org/dc/terms/description ) We could use this thread to start mocking up how a JSON-LD context for OCDS JSON would look. The sample data here might be helpful for testing: https://github.com/open-contracting/sample-data |
I would encourage reuse of terms from existing, maintained and adopted vocabularies whenever possible! I'll take a look at properties defined in |
http://ocds.open-contracting.org/standard/r/1__0__0/en/schema/reference/#language {
"language": "en",
"tender": {
"item": {
"description":"Software consultancy services",
"description_es":"Servicios de consultoria en software",
"description_fr":"Services de conseil en logiciels"
}
}
} JSON-LD seems to handle it in much nicer way {
"@context": { "@language": "en" },
"tender": {
"item": {
"description": {
"en" :"Software consultancy services",
"es": "Servicios de consultoria en software",
"fr": "Services de conseil en logiciels"
}
}
} |
Looks to me like JSON-LD can also handle the current OCDS language structure, using an expanded term definition, see Example 33 of http://www.w3.org/TR/json-ld/#string-internationalization - OTOH, this looks like it requires enumerating every language you want to use in the |
Merging with #190 as this issue is not sufficiently distinct. |
We have carried out some initial analysis of how a JSON-LD context may be provided for Open Contracting data.
Completing this work is not currently a priority for the 1.0 release, but could be carried out in partnership with the community if there was interest.
The text was updated successfully, but these errors were encountered: