---++Polls Ubiquity Commands 1 establish OAuth session key for ODS Polls instance: Syntax: ods-set-poll-oauth Example: ods-set-poll-oauth c4746c96bd8faa99798ad88448ba3bab * Example usage you can find [[VirtuosoOdsUbiquityTutorialsPollsOAuthD][here]]. 1 create poll: Syntax: ods-create-poll name [description ] [tags ] [multi_vote <0|1>] [vote_result <0|1>] [vote_result_before <0|1>] [vote_result_opened <0|1>] [dateStart ] [dateEnd ] [mode ] Syntax: ods-create-poll 10 name SPARQL Poll dateStart 2008.11.20 * Example usage you can find [[VirtuosoOdsUbiquityTutorialsManagePolls][here]]. 1 get poll resource information by resource ID: Syntax: ods-get-poll-by-id Example: ods-get-poll-by-id 1001 1 update poll by resource ID: Syntax: ods-update-poll name [description ] [tags ] [multi_vote <0|1>] [vote_result <0|1>] [vote_result_before <0|1>] [vote_result_opened <0|1>] [dateStart ] [dateEnd ] [mode ] Syntax: ods-update-poll 1001 name SPARQL Poll dateStart 2008.11.22 dateEnd 2008.11.29 1 delete poll by resource ID: Syntax: ods-delete-poll-by-id Example: ods-delete-poll-by-id 1001 1 create poll question: Syntax: ods-create-poll-question questionNo text [description ] [required ] [type ] [answer ] Example: ods-create-poll-question 1001 questionNo 1 text Do you know SPARQL? answer answer_1=Yes&answer_2=No 1 delete poll question: Syntax: ods-delete-poll-question questionNo Example: ods-delete-poll-question 1001 questionNo 2 1 activate (open) poll for votes: Syntax: ods-activate-poll Example: ods-activate-poll 1001 1 close poll for votes: Syntax: ods-close-poll Example: ods-close-poll 1001 1 clear poll votes: Syntax: ods-clear-poll Example: ods-clear-poll 1001 1 create vote to poll: Syntax: ods-vote-poll Example: ods-vote-poll 1001 1 add answer to vote: Syntax: ods-poll-vote-answer questionNo answerNo value Example: ods-poll-vote-answer 10001 questionNo 1 answerNo 1 value Yes 1 get poll result: Syntax: ods-result-poll Example: ods-result-poll 1001 1 create comment to existing poll ID: Syntax: ods-create-poll-comment title body <body> author <author> authorMail <authorMail> authorUrl <authorUrl> 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 </verbatim> 1 get poll comment information by resource ID: <verbatim> Syntax: ods-get-poll-comment-by-id <comment_id> Example: ods-get-poll-comment-by-id 10001 </verbatim> 1 delete poll comment by resource ID: <verbatim> Syntax: ods-delete-poll-comment <comment_id> Example: ods-delete-poll-comment 10001 </verbatim> 1 set poll instance options/properties: <verbatim> Syntax: ods-set-polls-options <instance_id> with <options> Example: ods-set-polls-options 10 with rows=20 </verbatim> 1 get poll instance options/properties: <verbatim> Syntax: ods-get-polls-options <instance_id> Example: ods-get-polls-options 10 </verbatim> ---+++References * [[VirtuosoOdsUbiquity][ODS Ubiquity Commands]]