Closed elf-pavlik closed 8 years ago
OK cool, I missed that activity streams has "context", and the definition is pretty close - broader but that seems like a good idea as I think about it. And startDate and endDate, excellent.
And I agree with you on the playground, I was too tired but wanted to get something out there for discussion. :frowning: I'll see if I can figure out how your link works with the rawgit....
you can visit https://rawgit.com/ and give it github link like https://github.com/openvocab/agent/blob/master/context.jsonld
it will give you dev/testing link like https://rawgit.com/openvocab/agent/master/context.jsonld
which has proper CORS headers and even requested Content-Type
curl -i -H "Accept: application/ld+json" https://rawgit.com/openvocab/agent/master/context.jsonld
in JSON-LD playground you can click on Compacted tab and provide URLs for document and context, then you also can click Permalink to get URL which will pre-populate those two input fields.
@fosterlynn @ahdinosaur what do you think about
@elf-pavlik @ahdinosaur I agree with your suggestions, elf.
(Sorry about my admittedly lame @context - happy to merge your pull request when you are ready... although sometimes it's good to get things going too.... :wink: but yes, the discipline is good, thanks! There are a few missing things still, which we can add, and which will need to go in the examples too.)
There are a few missing things still, which we can add, and which will need to go in the examples too.
I will add some commits for included example here, to make sure that we do NOT include in JSON-LD context any term not used in at least one example. Similar to proper BDD/TDD - not writing any implementation code which doesn't make failing test pass :traffic_light:
@elf-pavlik :+1:
ready to merge! examples in JSON-LD Playground
please make sure to take a look at both Expanded and Compacted tabs :exclamation:
Please don't merge yet!
I propose to start with minimal context which includes only terms used in examples (which I still didn't do it this PR)
Also all examples SHOULD link to JSON-LD Playground, for examples working link using my fork of his repo