phenoscape / owlery

Owlery is a set of REST web services which allow querying of an OWL reasoner containing a configured set of ontologies.
MIT License
16 stars 11 forks source link

Move JSON-LD context to external file. Change '@type' key to 'type'. #26

Closed balhoff closed 6 years ago

balhoff commented 6 years ago

@Robbie1977 @matentzn I would like to move the JSON-LD context to an external file. The context can often be larger than the actual payload. If you're not using it, this won't impact you.

I also want to change the key used to provide types for a queried individual, from @type to type. Will this be a problem?

balhoff commented 6 years ago

@hlapp that sounds fine to me, but can you explain the advantage? Is it that the URL may be more stable?

hlapp commented 6 years ago

Is it that the URL may be more stable?

Yes, it's more "canonical". Specifically, it doesn't have the implementation (namely coming out of a Github repo through the specific mechanism that Github currently uses to accomplish that ) encoded into it, and hence is robust to changing in the future the exact mechanism to serving it. (It would be at https://owlery.phenoscape.org/json/context.jsonld, for example.)

balhoff commented 6 years ago

@hlapp I enabled GitHub pages; the context file is now available at http://phenoscape.github.io/owlery/json/context.jsonld

Could you set up the CNAME for owlery.phenoscape.org?

hlapp commented 6 years ago

CNAME DNS record set up. We should also enforce HTTPS.

balhoff commented 6 years ago

Thanks! I ticked the box for HTTPS.

balhoff commented 6 years ago

DNS is working now.

Robbie1977 commented 6 years ago

@balhoff We have no dependencies on this ATM so better to change now.