Example of Linked Data Usage of PubSubHubbub Implementation
The following example demonstrates how to use Virtuoso's implementation of the draft PubSubHubBub Protocol to handle Linked Data.
We extend the idea of tracking a feed to track Linked Data resource URIs.
To reveal the hub to subscribers, we propose Linked Data resources return the following HTTP header --
Link: <http://cname/psh/subscribe.vsp>; rel="hub"
-- or include the following in an HTML <head&/lt; (or similar) element --
<link rel="hub" uri="http://cname/psh/subscribe.vsp">
Endpoints
The
http://cname/psh/subscribe.vsp |
subscription endpoint |
http://cname/psh/publish.vsp |
publishing endpoint |
http://cname/psh/ |
index to UI of the simple test clients |
http://cname/psh/callback.vsp |
default built-in client callback endpoint |
Example of use of the built-in demo client
- As a very first step we use a simple client to subscribe to a SIOC document containing data for an ODS-Weblog.
In our tests we subscribe to the Linked Data document
<http://ec2-174-129-156-25.compute-1.amazonaws.com/dataspace/demo/weblog/demo%27s%20Weblog/sioc.rdf>
.
- The Weblog post is as follows:
- During the subscription process, the client will get the initial state of the SIOC feed, so we can execute the following query to see all post titles:
- In the query result is the title of the existing Weblog post:
- Next we add a new blog post to force a change to the SIOC data:
- Using a simple publishing UI, we notify the Hub the data has changed:
- The Hub takes the delta and notifies the subscribers:
- Again we execute the same SPARQL query as in the earlier step, and now we can see the data contains the new blog post title:
Related
- Setting up PubSubHub in ODS
- Feed subscription via PubSubHub protocol Example
- Setting Up PubSubHub to use WebID Protocol or IP based control lists
- Virtuoso Graph Replication Guide
- 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