Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jessykate/502717 to your computer and use it in GitHub Desktop.
Save jessykate/502717 to your computer and use it in GitHub Desktop.
Mock up of an activity stream verb type of "hypothesis" (cf. open notebook /open research)
<entry>
<id>tag:openresear.ch,2010:hypothesis01</id>
<title>Jessy posted a Hypothesis</title>
<published>2010-07-02T15:29:00Z</published>
<!-- the link provides an HTML representation of the activity -->
<link rel="alternate" type="text/html"
href="http://openresear.ch/jessy/labbook01/hypothesis/1" />
<!-- this is the base verb that our custom verb builds on -->
<activity:verb>
http://activitystrea.ms/schema/1.0/create
</activity:verb>
<!-- this is a custom verb type that lab book and other open science
software would know how to interpret -->
<activity:verb>
http://openresear.ch/schema/1.0/hypothesis
</activity:verb>
<!-- in this example, the object to which the hypothesis creation verb is
applied, is a lab book -->
<activity:object>
<id>tag:openresear.ch,2010:labbook01/12345</id>
<title>Jessy's Labbook</title>
<published>2010-11-02T15:29:00Z</published>
<link rel="alternate" type="text/html"
href="http://openresear.ch/jessy/labbook01" />
<activity:object-type>
tag:schema.opnenresear.ch,2010:labbook
</activity:object-type>
<source>
<title>Jessy's Lab Book</title>
<link rel="self" type="application/atom+xml"
href="http://openresear.ch/jessy/labbook01.xml" />
<link rel="alternate" type="text/html"
href="http://openresear.ch/jessy/labbook01" />
</source>
</activity:object>
<content type="html">
<p>Jessy Posted a new hypothesis on her lab book</p>
<a href="/jessy/labbook01/hypothesis/1">
</content>
</entry>
<!--
* ref: http://activitystrea.ms/spec/1.0/atom-activity-01.html#activityentrycomplex
* i believe updates to the spec specify that a verb will no longer be
specified by a URI: see http://wiki.activitystrea.ms/Namespaces
* the object hierarchy could likely also be something like:
object-type: research topic
target object: lab book
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment