Setting up PubSubHub in ODS
Introduction
PubSubHub (PSH) setup consists of two steps:
- Set up the ODS server.
- Configure applications to publish to hub.
These steps are detailed below.
Prerequisites
The following packages should be installed:
Set up the ODS server
PSH setup on the ODS Server takes two steps, performed while logged in as the dav
- In the Feed Instances with Admin Rights section , specify the PSH endpoint.
This setting tells applications what to report for PSH auto-discovery:
- The Notification Services UI is used to set up the PSH publish service endpoint, to which ODS users can point their applications:
- Enter for Endpoint:
http://<host>:<port>/psh/
(modified for your instance, e.g.,http://myhost.example.com:8889/psh/
) - Enter for Notification Service:
PubSubHub
- Select Protocol:
PubSubHub
- Enter for Endpoint:
ODS applications can now be configured to publish messages to the PSH endpoint.
Configure an ODS application to publish via PSH
- Log in as the
dav
user. - Go to ODS -> Application Settings -> Application Notifications
- Select the default 'dav' blog from the top menu, and highlight the PubSubHub? Notification Service.
(You may command-click to select multiple notification targets.)
- Click Add to make your setting take effect.
Test the setup using ODS-Feed Manager and basic PSH Subscription UI
For our test, we use ODS-Weblog as publisher and ODS-Feed Manager as subscriber.
First, in ODS-Feed Manager we subscribe to the rss feed:
- Log in as a normal user, e.g.,
demo
- Go to the Feed Manager application.
- Go to Administration -> Feeds and click Subscribe.
- Select From URL... and click Next.
- In From URL (RSS/Atom/OPML/OCS/SIOC ...) field, enter the Weblog Feed URL, e.g.,
http://myhost.example.com/weblog/dav/dav-blog-0/gems/rss.xml
- Click Subscribe
- The PSH Server value will be shown, and PubSubHub? Enable will be checked.
Click Subscribe again.
Now, we publish something on the 'dav' weblog:
Notification is made to the PSH endpoint, and the Feed Manager is notified to update its subscription content.
Related
- PubSubHubbub Demo Client Example
- Example feed subscription via PubSubHub Protocol
- Setting Up PubSubHub to use WebID Protocol- or IP-based control lists
- Creating and Using a SPARQL-SSL based Endpoint
- Set WebID Protocol ACLs using the Virtuoso Authentication Server UI
- WebID Protocol ACLs Tutorial
- SPARQL OAuth Tutorial
- WebID Protocol Support in OpenLink Data Spaces
- Guide to Setting up a X.509 certificate issuer and HTTPS listener and Generating ODS user certificates
- CA Keys Import using Conductor
- Generate an X.509 Certificate hosted WebID Guide
- ODS Briefcase WebID Protocol Share File Guide
- WebID Protocol Specification
- Test WebID Protocol Certificate page
- WebID Protocol Certificate Generation page
- Virtuoso Demo SPARQL-SSL Endpoint