You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -136,7 +133,7 @@ <h2>Storing entities with provenance<a class="headerlink" href="#storing-entitie
136
133
</div>
137
134
<divclass="section" id="recording-data-source">
138
135
<h2>Recording data source<aclass="headerlink" href="#recording-data-source" title="Permalink to this headline">¶</a></h2>
139
-
<p>The <aclass="reference internal" href="Client.html#synapseclient.Synapse.store" title="synapseclient.Synapse.store"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">synapseclient.Synapse.store()</span></code></a> has shortcuts for specifying the used and executed lists directly.
136
+
<p>The <aclass="reference internal" href="index.html#synapseclient.Synapse.store" title="synapseclient.Synapse.store"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">synapseclient.Synapse.store()</span></code></a> has shortcuts for specifying the used and executed lists directly.
140
137
For example, when storing a data entity, it’s a good idea to record its source:</p>
<li><p>a list of Synapse Entities or Entity IDs</p></li>
163
+
<li><p>a list of URL’s</p></li>
168
164
</ul>
169
-
</li>
170
-
<li><strong>executed</strong> – A code resource that was executed to generate the Entity.</li>
171
-
<li><strong>data</strong> – A dictionary representation of an Activity, with fields ‘name’, ‘description’ and ‘used’
172
-
(a list of reference objects)</li>
165
+
</p></li>
166
+
<li><p><strong>executed</strong> – A code resource that was executed to generate the Entity.</p></li>
167
+
<li><p><strong>data</strong> – A dictionary representation of an Activity, with fields ‘name’, ‘description’ and ‘used’
168
+
(a list of reference objects)</p></li>
173
169
</ul>
174
-
</td>
175
-
</tr>
176
-
</tbody>
177
-
</table>
170
+
</dd>
171
+
</dl>
178
172
<p>See also: The <aclass="reference external" href="http://www.w3.org/TR/prov-o/">W3C’s provenance ontology</a></p>
179
173
<dlclass="method">
180
174
<dtid="synapseclient.activity.Activity.executed">
181
-
<codeclass="descname">executed</code><spanclass="sig-paren">(</span><em>target=None</em>, <em>targetVersion=None</em>, <em>url=None</em>, <em>name=None</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#synapseclient.activity.Activity.executed" title="Permalink to this definition">¶</a></dt>
175
+
<codeclass="sig-name descname">executed</code><spanclass="sig-paren">(</span><emclass="sig-param">target=None</em>, <emclass="sig-param">targetVersion=None</em>, <emclass="sig-param">url=None</em>, <emclass="sig-param">name=None</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#synapseclient.activity.Activity.executed" title="Permalink to this definition">¶</a></dt>
182
176
<dd><p>Add a code resource that was executed during the activity.
183
177
See <aclass="reference internal" href="#synapseclient.activity.Activity.used" title="synapseclient.activity.Activity.used"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">synapseclient.activity.Activity.used()</span></code></a></p>
184
178
</dd></dl>
185
179
186
180
<dlclass="method">
187
181
<dtid="synapseclient.activity.Activity.used">
188
-
<codeclass="descname">used</code><spanclass="sig-paren">(</span><em>target=None</em>, <em>targetVersion=None</em>, <em>wasExecuted=None</em>, <em>url=None</em>, <em>name=None</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#synapseclient.activity.Activity.used" title="Permalink to this definition">¶</a></dt>
182
+
<codeclass="sig-name descname">used</code><spanclass="sig-paren">(</span><emclass="sig-param">target=None</em>, <emclass="sig-param">targetVersion=None</em>, <emclass="sig-param">wasExecuted=None</em>, <emclass="sig-param">url=None</em>, <emclass="sig-param">name=None</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#synapseclient.activity.Activity.used" title="Permalink to this definition">¶</a></dt>
189
183
<dd><p>Add a resource used by the activity.</p>
190
184
<p>This method tries to be as permissive as possible. It accepts a string which might be a synapse ID or a URL,
191
185
a synapse entity, a UsedEntity or UsedURL dictionary or a list containing any combination of these.</p>
@@ -220,24 +214,6 @@ <h2>Activity<a class="headerlink" href="#activity" title="Permalink to this head
<codeclass="descname">usedEntity</code><spanclass="sig-paren">(</span><em>target</em>, <em>targetVersion=None</em>, <em>wasExecuted=False</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#synapseclient.activity.Activity.usedEntity" title="Permalink to this definition">¶</a></dt>
<p><spanclass="versionmodified">Deprecated since version 1.9.0: </span>This will be removed in 2.0. Please use used() instead.</p>
229
-
</div>
230
-
</dd></dl>
231
-
232
-
<dlclass="method">
233
-
<dtid="synapseclient.activity.Activity.usedURL">
234
-
<codeclass="descname">usedURL</code><spanclass="sig-paren">(</span><em>url</em>, <em>name=None</em>, <em>wasExecuted=False</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#synapseclient.activity.Activity.usedURL" title="Permalink to this definition">¶</a></dt>
0 commit comments