Skip to content
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

Closed
practicalparticipation opened this issue Sep 1, 2014 · 8 comments
Closed

JSON-LD mapping for schema #40

practicalparticipation opened this issue Sep 1, 2014 · 8 comments

Comments

@practicalparticipation
Copy link
Contributor

practicalparticipation commented Sep 1, 2014

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.

@cgueret
Copy link

cgueret commented Sep 16, 2014

Great idea 👍 ! Much looking forward to it ;-)

@birdsarah birdsarah added this to the After 1.0 milestone Oct 3, 2014
@akuckartz
Copy link

👍

@timgdavies
Copy link
Contributor

@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

@elf-pavlik
Copy link

(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 )

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/
And see if they clearly map to some existing vocabulary terms

@elf-pavlik
Copy link

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
http://www.w3.org/TR/json-ld/#string-internationalization

{
    "@context": { "@language": "en" },
    "tender": {
        "item": {
              "description": {
                "en" :"Software consultancy services",
                "es": "Servicios de consultoria en software",
                "fr": "Services de conseil en logiciels"
        }
    }
}

@Bjwebb
Copy link
Contributor

Bjwebb commented Sep 14, 2015

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 @context - not sure how much of a problem that is.

@timgdavies
Copy link
Contributor

Related to #190 and #217

@timgdavies timgdavies removed this from the After 1.0 milestone May 17, 2016
@jpmckinney
Copy link
Member

Merging with #190 as this issue is not sufficiently distinct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants