dead_simple_owl_design_patterns icon indicating copy to clipboard operation
dead_simple_owl_design_patterns copied to clipboard

Consider using "yaml-ld" for owl_entities

Open cmungall opened this issue 11 years ago • 8 comments

JSON-LD provides a nice way of providing shortforms for IRIs - either OBO-style CURIES or labels. You can add a context at the top of the YAML and this will naturally translate to JSON(LD)

cmungall avatar Sep 04 '14 16:09 cmungall

Examples:

  • https://github.com/cmungall/omb/blob/master/data/repository.yaml
  • https://github.com/monarch-initiative/monarch-app/blob/master/conf/monarch-context.yaml

cmungall avatar Sep 04 '14 16:09 cmungall

Agreed. Much easier for users. Have switched.

dosumis avatar Sep 11 '14 14:09 dosumis

Hmm, I think I may have misunderstood the original ticket (or closed this one by accident). Seems like we should be doing this though.

dosumis avatar Apr 11 '16 18:04 dosumis

Keeping this ticket open as we at least need to provide some guidance for users on how this works in practice. Should we have some way to refer to the accompanying JSON-LD doc in the patterns?

dosumis avatar Jun 21 '17 15:06 dosumis

We seem to have settled on an external prefix file, so no need for embedding context in the file

cmungall avatar Jun 21 '17 17:06 cmungall

As we seem to have settled on this for pattern for OBO foundry ontologies

GO: -> http://purl.obolibrary.org/obo/GO_

I feel we should either have guidance on this convention in the OBO extension documentation, or provide a standard prefix file file for OBO on this repo (the pain here being that we'd a mapping for all ontologies in the foundry - so maybe a recipe is better).

dosumis avatar Jun 23 '17 15:06 dosumis

I'd favor keeping the spec as simple as possible, and being convention-free. I use explicit prefix maps for all the DPs I directly work on. dosdp-tools has a handy obo-prefixes option but this can just be seen as a tool-specific dropin for the prefix map.

cmungall avatar Jun 23 '17 16:06 cmungall

I agree with Chris. The obo-prefixes option can remain tool-specific. I need to document it better on the dosdp-tools site. If it's seen as promoting laxity I could even remove it, but it's quite handy.

balhoff avatar Jun 23 '17 17:06 balhoff