<p dir="ltr">So, if I was to try and add structured data RDF properties, I would add those as keys in the notebook-level metadata object?</p>
<p dir="ltr">I'm assuming I could just merge the nbformatv4 @context with an @context that would allow me to abbreviate additional URI predicates as regular JSON object strings.</p>
<p dir="ltr">OTTOMH:</p>
<p dir="ltr">dcterms:title<br>
dcterms:creator<br>
lang:en<br>
schema:author<br>
schema:description</p>
<p dir="ltr">Yesterday, I sent an email to the <a href="mailto:public-vocabs@w3.org">public-vocabs@w3.org</a> (<a href="http://schema.org">schema.org</a>) list asking what subtype of schema:CreativeWork would most accurately describe an IPython notebook, but have not yet received a response.</p>
<p dir="ltr">At the cell-level, it would be cool if we could say, "this is the abstract", " these are figures derived from this dataset with thus URI retrieved from this URL" and "thus is the conclusion" e.g. for PLoS.</p>
<p dir="ltr">I've looked at PROV for something like recording an additive journal of @datastep transformations ( <a href="https://github.com/pydata/pandas/issues/3402">https://github.com/pydata/pandas/issues/3402</a> ) but have nothing like an actual implementation. It would be great to see it.</p>
<p dir="ltr">For clinical studies (e.g. RCTs), an ontology of study-control URIs would also be helpful.</p>
<p dir="ltr">Thanks again for this @context, this is great work.</p>
<div class="gmail_quote">On Nov 4, 2014 9:15 AM, "Nicholas Bollweg" <<a href="mailto:nick.bollweg@gmail.com">nick.bollweg@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>News from the JSON-LD front: Everything looks pretty good, except for the mime-types. <br><br>Here's the <a href="https://gist.github.com/bollwyvl/e7f8136bd2ea5674dd00" target="_blank">gist</a>. Here's a <a href="http://json-ld.org/playground/index.html#startTab=tab-compacted&json-ld=https%3A%2F%2Fgist.githubusercontent.com%2Fbollwyvl%2Fe7f8136bd2ea5674dd00%2Fraw%2Ftest4.linked.context.ipynb%23&context=https%3A%2F%2Fgist.githubusercontent.com%2Fbollwyvl%2Fe7f8136bd2ea5674dd00%2Fraw%2Fnb4.context.jsonld" target="_blank">JSON-LD playground</a>. Here's the <a href="http://lists.w3.org/Archives/Public/public-linked-json/2014Nov/0001.html" target="_blank">cross-post</a> to public-linked-json.<br></div><br></div><ul><li>A term can't be mapped to two things, say <span style="font-family:courier new,monospace">cells.0.cell_type</span> to both the <span style="font-family:courier new,monospace">@type </span>and <span style="font-family:courier new,monospace">nb4:cell_type</span>. I've opted for <span style="font-family:courier new,monospace">@type</span>, as I think the goal here is to make a context that makes content more machine-understandable, rather than something that can round-trip back to the original format.</li><li>I've manually added a few mime types as lists, but this task is almost impossible, as its completely arbitrary... this means you won't be able to ask graph questions about your base64-encoded application/x-pdf, unless it has been captured. </li><li>I really wish there was a way to do get an @id. Change <span style="font-family:courier new,monospace">signature </span>from <span style="font-family:courier new,monospace">foaf:sha1 </span>to <span style="font-family:courier new,monospace">@id</span> is so tempting, but then all the URIs would, again, be off the main namespace. However, since the signature contains some secret salt, it may not be worthwhile, as it's capturing notebook+user... though maybe that is useful.<br></li></ul></div><div><br><div><div class="gmail_extra">I think the most likely way to understanding the meaning of a notebook fully would require some preprocessing, such as an nbconvert exporter :). </div><div class="gmail_extra"><br></div><div class="gmail_extra">Cheers!<br></div></div></div></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div>