<docbook><section><title>VirtuosoOdsUbiquityPolls</title><bridgehead class="http://www.w3.org/1999/xhtml:h2">Polls Ubiquity Commands</bridgehead>
<orderedlist spacing="compact"><listitem>establish OAuth session key for ODS Polls instance: <programlisting>Syntax: ods-set-poll-oauth &lt;session_key&gt;
Example: ods-set-poll-oauth c4746c96bd8faa99798ad88448ba3bab
</programlisting></listitem>
<listitem>create poll: <programlisting>Syntax: ods-create-poll &lt;instance_id&gt; name &lt;name&gt; [description &lt;description&gt;] [tags &lt;tags&gt;] [multi_vote &lt;0|1&gt;] [vote_result &lt;0|1&gt;] [vote_result_before &lt;0|1&gt;] [vote_result_opened &lt;0|1&gt;] [dateStart &lt;dateStart&gt;] [dateEnd &lt;dateEnd&gt;] [mode &lt;S|M&gt;]
Syntax: ods-create-poll 10 name SPARQL Poll dateStart 2008.11.20
</programlisting><itemizedlist mark="bullet" spacing="compact"><listitem>Example usage you can find <ulink url="VirtuosoOdsUbiquityTutorialsManagePolls">here</ulink>.
</listitem>
</itemizedlist></listitem>
<listitem>get poll resource information by resource ID: <programlisting>Syntax: ods-get-poll-by-id &lt;poll_id&gt;
Example: ods-get-poll-by-id 1001
</programlisting></listitem>
<listitem>update poll by resource ID: <programlisting>Syntax: ods-update-poll &lt;poll_id&gt; name &lt;name&gt; [description &lt;description&gt;] [tags &lt;tags&gt;] [multi_vote &lt;0|1&gt;] [vote_result &lt;0|1&gt;] [vote_result_before &lt;0|1&gt;] [vote_result_opened &lt;0|1&gt;] [dateStart &lt;dateStart&gt;] [dateEnd &lt;dateEnd&gt;] [mode &lt;S|M&gt;]
Syntax: ods-update-poll 1001 name SPARQL Poll dateStart 2008.11.22 dateEnd 2008.11.29
</programlisting></listitem>
<listitem>delete poll by resource ID: <programlisting>Syntax: ods-delete-poll-by-id &lt;poll_id&gt;
Example: ods-delete-poll-by-id 1001
</programlisting></listitem>
<listitem>create poll question: <programlisting>Syntax: ods-create-poll-question &lt;poll_id&gt; questionNo &lt;questionNo&gt; text &lt;text&gt; [description &lt;description&gt;] [required &lt;required&gt;] [type &lt;type&gt;] [answer &lt;answer&gt;]
Example: ods-create-poll-question 1001 questionNo 1 text Do you know SPARQL? answer answer_1=Yes&amp;answer_2=No
</programlisting></listitem>
<listitem>delete poll question: <programlisting>Syntax: ods-delete-poll-question &lt;poll_id&gt; questionNo &lt;questionNo&gt;
Example: ods-delete-poll-question 1001 questionNo 2
</programlisting></listitem>
<listitem>activate (open) poll for votes: <programlisting>Syntax: ods-activate-poll &lt;poll_id&gt;
Example: ods-activate-poll 1001
</programlisting></listitem>
<listitem>close poll for votes: <programlisting>Syntax: ods-close-poll &lt;poll_id&gt;
Example: ods-close-poll 1001
</programlisting></listitem>
<listitem>clear poll votes: <programlisting>Syntax: ods-clear-poll &lt;poll_id&gt;
Example: ods-clear-poll 1001
</programlisting></listitem>
<listitem>create vote to poll: <programlisting>Syntax: ods-vote-poll &lt;poll_id&gt;
Example: ods-vote-poll 1001
</programlisting></listitem>
<listitem>add answer to vote: <programlisting>Syntax: ods-poll-vote-answer &lt;vote_id&gt; questionNo &lt;questionNo&gt; answerNo &lt;answerNo&gt; value &lt;value&gt;
Example: ods-poll-vote-answer 10001 questionNo 1 answerNo 1 value Yes
</programlisting></listitem>
<listitem>get poll result: <programlisting>Syntax: ods-result-poll &lt;poll_id&gt;
Example: ods-result-poll 1001
</programlisting></listitem>
<listitem>create comment to existing poll ID: <programlisting>Syntax: ods-create-poll-comment &lt;poll_id&gt; title &lt;title&gt; body &lt;body&gt; author &lt;author&gt; authorMail &lt;authorMail&gt; authorUrl &lt;authorUrl&gt;
Example: ods-create-poll-comment 1001 title RDF body OpenLink RDF Browser http://demo.openlinksw.com/rdfbrowser/ author demo authorMail demo@openlinksw.com authorUrl http://demo.openlinksw.com/dataspace/person/demo
</programlisting></listitem>
<listitem>get poll comment information by resource ID: <programlisting>Syntax: ods-get-poll-comment-by-id &lt;comment_id&gt;
Example: ods-get-poll-comment-by-id 10001
</programlisting></listitem>
<listitem>delete poll comment by resource ID: <programlisting>Syntax: ods-delete-poll-comment &lt;comment_id&gt;
Example: ods-delete-poll-comment 10001
</programlisting></listitem>
<listitem>set poll instance options/properties: <programlisting>Syntax: ods-set-polls-options &lt;instance_id&gt; options &lt;options&gt;
Example: ods-set-polls-options 10 options rows=20
</programlisting></listitem>
<listitem>get poll instance options/properties: <programlisting>Syntax: ods-get-polls-options &lt;instance_id&gt;
Example: ods-get-polls-options 10
</programlisting> </listitem>
</orderedlist><bridgehead class="http://www.w3.org/1999/xhtml:h3">References</bridgehead>
<itemizedlist mark="bullet" spacing="compact"><listitem><ulink url="VirtuosoOdsUbiquity">ODS Ubiquity Commands</ulink> </listitem>
</itemizedlist></section></docbook>