ODS Ubiquity Commands
- What is the ODS Ubiquity Commands implementation?
- How does it work?
- Commands
- Utility Commands
- Basic Session Setup Commands
- ODS Application Commands By Functionality Realm
- ODS Object Information
- User Management
- User Annotations
- User Topic Of Interests
- User Thing Of Interests
- User Biographical Data
- User's OfferList?
- User's WishList?
- Instance Management
- Briefcase
- Bookmarks
- Calendar
- Addressbook
- Polls
- Weblog
- Feed Manager
- Discussion
- Gallery
- Learn More
- References
What is the ODS Ubiquity Commands implementation?
ODS provides Ubiquity commands to manipulate user accounts as well as instances and instance specific data using the ODS Controllers API. This command set is available only for the Firefox browser with the Ubiquity extension installed.
How does it work?
Installation
First, the Ubiquity Firefox extension must be installed.
Then, ODS Ubiquity commands can be installed by accessing http://host:port/ods/ods_ubiquity.html
page.
Ubiquity commands are accessed by the ctrl-space key combination.
Commands
Utility Commands
- show current ODS Ubiquity params:
Syntax: ods-get-params Example: ods-get-params
- enable log command execution - steps and parameters.
The log can be shown on Firebug console:
Syntax: ods-log-enable Example: ods-log-enable
- disable log command execution:
Syntax: ods-log-disable Example: ods-log-disable
Basic Session Setup Commands
ODS Instance Identification
Assuming you are using the server at: http://myopenlink.net/, in order to change it use the command:Syntax: ods-host <host_url> Example: ods-host http://demo.openlinksw.com/ods
Example usage you can find here.
ODS OAuth Endpoint Identification
Assuming the OAuth endpoint: http://myopenlink.net/OAuth, in order to change it use the command:Syntax: ods-oauth-host <host_url> Example: ods-oauth-host http://demo.openlinksw.com/OAuth
Example usage you can find here.
ODS Command Mode
There are two command modes available to ubiquity commands when working against an ODS instance: oauth or sid.In OAuth mode, for every ODS application instance, an OAuth key must be obtained and then initialized via the following steps:
- obtain an ODS based OAuth session-key via the ODS example endpoint: http://host:port/ods/oauth_sid.vsp
http://myopenlink.net/ods/oauth_sid.vsp
- bind session key to command session via the command: *ods-set-oauth <oauth-key>* or use *ods-set-[class name]-oauth <oauth-key>* when oauth-key was generated for particular application instance.
- Example usage you can find here.
If you choose the SID mode of interaction with ODS you have to perform the following steps:
- set mode via command: ods-set-mode sid or ods-set-mode oauth
- set sid via command: ods-set-sid sid
- Example usage you can find here.
Note: The sid is a session ID applicable to all ODS commands for a given bound instance and user combination. It's obtained from an ODS session.
ODS Application Commands By Functionality Realm
ODS Object Information
- get information for ODS object by uri: ods-get-uri-info:
Syntax: ods-get-uri-info <uri> Example: ods-get-uri-info http://myopenlink.net/dataspace/person/kidehen
User Management
- create user in ODS: ods-create-user:
Syntax: ods-create-user <user_name> password <password> email <email> Example: ods-create-user test password test email test@openlinksw.com
- authenticate user in ODS: ods-authenticate-user:
Syntax: ods-authenticate-user <user_name> with <password> Example: ods-authenticate-user demo with demo
- Example usage you can find here.
- get user info: ods-get-user test:
Syntax: ods-get-user <user_name> Example: ods-get-user test
- enable user: ods-enable-user:
Syntax: ods-enable-user <user_name> Example: ods-enable-user test
- disable user: ods-disable-user:
Syntax: ods-disable-user <user_name> Example: ods-disable-user test
- user removal: ods-delete-user:
Syntax: ods-delete-user <user_name> Example: ods-delete-user test
User Annotations
- new annotation:
Syntax: ods-create-user-annotation <iri> has <relation> with <value> Example: ods-create-user-annotation http://yahoo.com has see:Also with test
- remove existing annotation:
Syntax: ods-delete-user-annotation <iri> has <relation> with <value> Example: ods-delete-user-annotation http://yahoo.com has see:Also with test
User Topic Of Interests
- new topic of interest:
Syntax: ods-create-user-topicOfInterest <topicURI> [label <topicLabel>] Example: ods-create-user-topicOfInterest http://yahoo.com label Yahoo Search Engine
- remove existing topic of interest:
Syntax: ods-delete-user-topicOfInterest <topicURI> Example: ods-delete-user-topicOfInterest http://yahoo.com
User Thing Of Interests
- new thing of interest:
Syntax: ods-create-user-thingOfInterest <thingURI> [label <thingLabel>] Example: ods-create-user-thingOfInterest http://facefook.com
- remove existing thing of interest:
Syntax: ods-delete-user-thingOfInterest <thingURI> Example: ods-delete-user-thingOfInterest http://facefook.com
User Biographical Data
- new annotation:
Syntax: ods-create-user-bioevent <bioEvent> on <bioDate> in <bioPlace> Example: ods-create-user-bioevent bio:Birth on 1970-01-01 in London
- remove existing annotation:
Syntax: ods-delete-user-bioevent <bioEvent> on <bioDate> in <bioPlace> Example: ods-delete-user-bioevent bio:Birth on 1970-01-01 in London
User's OfferList
- new offer:
Syntax: ods-create-user-offer <offerName> [comment <offerComment>] Example: ods-create-user-offer LCD Monitor
- new offer property:
Syntax: ods-create-user-offer-property <offerName> property <offerProperty> value <offerPropertyValue> Example: ods-create-user-offer-property LCD Monitor property gr:price value $199.95
- remove existing offer property:
Syntax: ods-delete-user-offer-property <offerName> property <offerProperty> Example: ods-delete-user-offer-property LCD Monitor property gr:price
- remove existing offer:
Syntax: ods-delete-user-offer <offerName> Example: ods-delete-user-offer LCD Monitor
User's WishList
- new thing of interest:
Syntax: ods-create-user-wish <wishName> type <wishType> [comment <wishComment>] Example: ods-create-user-wish Keyboard type wishs
- remove existing wish:
Syntax: ods-delete-user-wish Example: ods-delete-user-wish Keyboard
Instance Management
- get instance id: ods-get-instance-id:
Syntax: ods-get-instance-id <instance_name> Example: ods-get-instance-id demo's Bookmarks
- Example usage you can find at Tutorials section.
- freeze instance: ods-freeze-instance:
Syntax: ods-freeze-instance <instance_id> Example: ods-freeze-instance 10
- unfreeze instances: ods-unfreeze-instance:
Syntax: ods-freeze-instance <instance_id> Example: ods-unfreeze-instance 10
Briefcase
Bookmarks
Calendar
Addressbook
Polls
Weblog
Feed Manager
Discussion
Gallery
Learn More
References
- OpenLink's explanation of OAuth
- Virtuoso OAuth server
- Using OAuth with ODS
- Virtuoso OAuth Implementation
- ODS Controllers
- Testing Virtuoso OAuth with 3rd Party OAuth Clients
- OAuth Ubiquity Tutorial
- Virtuoso OAuth Test Tool for ODS Controllers
- Virtuoso SPARQL OAuth Tutorial
- ODS Ubiquity Tutorials
- OAuth Applications Authentication examples
- OAuth API
CategoryODS CategoryOpenSource CategoryWebSite