%META:TOPICPARENT{name="ODSIndex"}% ---+ Setting up PubSubHub in ODS %TOC% ---++ Introduction PubSubHub (PSH) setup consists of two steps: 1 Set up the ODS server. 1 Configure applications to publish to hub. These steps are detailed below. ---++Prerequisites The following packages should be installed: * [[https://virtuoso.openlinksw.com/download/][ods_framework_dav.vad]] * [[https://virtuoso.openlinksw.com/download/][pubsubhub_dav.vad]] * [[https://virtuoso.openlinksw.com/download/][ods_blog_dav.vad]] * [[https://virtuoso.openlinksw.com/download/][ods_feedmanager_dav.vad]] ---++ Set up the ODS server PSH setup on the ODS Server takes two steps, performed while logged in as the dav WebDAV System Administrator user, through the Site Settings link of ODS UI: 1 In the Feed Instances with Admin Rights section , specify the PSH endpoint. This setting tells applications what to report for PSH auto-discovery: %BR%%BR%%BR%%BR% 2 The Notification Services UI is used to set up the PSH publish service endpoint, to which ODS users can point their applications: %BR%%BR%%BR%%BR% * 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 ODS applications can now be configured to publish messages to the PSH endpoint. ---++ Configure an ODS application to publish via PSH 1 Log in as the dav user. 1 Go to ODS -> Application Settings -> Application Notifications 1 Select the default 'dav' blog from the top menu, and highlight the PubSubHub Notification Service. (You may command-click to select multiple notification targets.) %BR%%BR%%BR%%BR% 1 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: 1 Log in as a normal user, e.g., demo 1 Go to the Feed Manager application. 1 Go to Administration -> Feeds and click Subscribe. %BR%%BR%%BR%%BR% 1 Select From URL... and click Next. 1 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 %BR%%BR%%BR%%BR% 1 Click Subscribe %BR%%BR%%BR%%BR% 1 The PSH Server value will be shown, and PubSubHub Enable will be checked. Click Subscribe again. %BR%%BR%%BR%%BR% Now, we publish something on the 'dav' weblog: %BR%%BR%%BR%%BR% Notification is made to the PSH endpoint, and the Feed Manager is notified to update its subscription content. %BR%%BR%%BR%%BR% ---++Related * [[VirtPubSubHub][PubSubHubbub Demo Client Example]] * [[VirtFeedPubSubHub][Example feed subscription via PubSubHub Protocol]] * [[VirtPubSubHubACL][Setting Up PubSubHub to use WebID Protocol- or IP-based control lists]] * [[http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtSPARQLSSL][Creating and Using a SPARQL-SSL based Endpoint]] * [[http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtAuthServerUI][Set WebID Protocol ACLs using the Virtuoso Authentication Server UI]] * [[http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtAuthFOAFSSLACL][WebID Protocol ACLs Tutorial]] * [[http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtOAuthSPARQL][SPARQL OAuth Tutorial]] * [[VirtODSFOAFSSL][WebID Protocol Support in OpenLink Data Spaces]] * [[ODSPkiSetup][Guide to Setting up a X.509 certificate issuer and HTTPS listener and Generating ODS user certificates]] * [[OdsKeyImport][CA Keys Import using Conductor]] * [[ODSGenerateX509Certificate][Generate an X.509 Certificate hosted WebID Guide]] * [[ODSBriefcaseFOAFSSLShareFile][ODS Briefcase WebID Protocol Share File Guide]] * [[http://esw.w3.org/topic/foaf+ssl][WebID Protocol Specification]] * [[https://foaf.me/simpleLogin.php][Test WebID Protocol Certificate page]] * [[http://test.foafssl.org/cert/][WebID Protocol Certificate Generation page]] * [[https://demo.openlinksw.com/sparql-ssl][Virtuoso Demo SPARQL-SSL Endpoint]]