---+++Weblog Upstreaming Ubiquity Tutorial
This tutorial demonstrates how to manage weblog post(s) from OpenLink
[[http://demo.openlinksw.com/ods][Demo server]] Weblog instance for user demo and how to make upstreaming to [[http://myopenlink.net:8890/ods][MyOpenlink]] server Weblog instance "demo's Weblog" for user demo.
---+++Ubiquity Commands Subscription
If not already subscribed, perform the following steps:
1. Go to http://demo.openlinksw.com/ods/ods_ubiquity.html
2. Click the button "Subscribe"
3. Click the button "I know what I'm doing. Subscribe to it".
4. As result should be shown message for "Subscription Successful" and we are ready to perform
the steps from the tutorial.
---+++Initial conditions
In order to be executed correctly the steps below, there should be ODS Weblog instance for user demo
at the [[http://demo.openlinksw.com/ods][Demo server]]. If not existing, it is enough after log in
to go to Weblog from the left ODS Vertical Main Navigation. This will cause automatically to be
created ODS Weblog instance.
---+++Basic Tutorial Steps
1. Authenticate using ODS command mode:
1. *sid*:
1. Execute the command:
ods-host http://demo.openlinksw.com/ods
*
1. Execute the command:
ods-set-mode sid
*
1. Execute the command:
ods-authenticate-user demo with demo
*
1. *oauth*: detailed description you can find [[VirtuosoOdsUbiquityTutorialsWeblogOAuthD][here]].
1. Execute the command:
ods-get-instance-id myblog
*
1. As result will be shown the instance id. For the "myblog" instance this should be 4.
1. Execute the command:
ods-create-weblog-post 4 title My Simple Test description This is My Blog Test
*
1. As result will be shown message for successfully created Weblog post object with id 39
1. The post can be viewed in the Weblog UI:
*
1. Now we will set upstreaming to [[http://myopenlink.net:8890/ods][MyOpenlink]] server Weblog instance "demo's Weblog" for user demo.
ods-set-weblog-upstreaming 4 targetRpcUrl http://myopenlink.net:8890/RPC2 targetBlogId demo's Weblog targetProtocolId 2 targetUserName demo targetPassword demo
*
1. As result will be shown message for Successfully created upstream. We can view it in Weblog UI under Settings->Upstreams:
*
1. Execute the command:
ods-create-weblog-post 4 title test for upstreaming description test
*
1. As result will be shown message for successfully created Weblog post object with id 40.
1. Now let's create comment to the first weblog message we have posted from above:
ods-create-weblog-comment 39 name Re: My Simple Test! text test author demo authorMail demo@openlinksw.com authorUrl http://demo.openlinksw.com/dataspace/person/demo
*
1. As result will be shown message for successfully posted Weblog comment.
CategoryODS CategoryOpenSource CategoryWebSite CategoryBlog