SIOC/WWW08Tutorial

From W3C Wiki

WWW08 Tutorial, April 21, Beijing

This wiki page serves as a reference for material regarding the tutorial TP3 about "Interlinking Online Communities and Enriching Social Software with the Semantic Web" given in Beijing for the 17th Intl WWW Conference

http://www2008.org/program/program-tutorials-TP3.html

Abstract

This tutorial will give an overview of current research issues and solutions for using Semantic Web technologies in order to enrich social software and to interlink online communities. We will discuss current standardisation activities as well as research prototypes, focusing on the work of the Semantically-Interlinked Online Communities (SIOC) project. This initiative recently produced the W3C Member Submission for the SIOC Ontology, which describes a standard way to represent rich data from online community sites and Web 2.0 tools in an interoperable form using RDF.

On a larger extent, we will cover additional topics such as search and browsing based on community metadata, large-scale data integration in decentralised communities, and linking social media contributions to the social graph. We will also focus on implementations of tools that work with SIOC data, providing the audience with the know-how to build such systems using open-source APIs and frameworks. We will also discuss how the technologies described in this tutorial can be applied to enterprise scenarios, and we will detail some commercial applications that are now using SIOC.

Finally, we will describe how a network of interlinked communities powered by semantic social software can lead towards the creation of Social Semantic Information Spaces.

Presenters

Uldis Bojars, DERI-Galway (Ireland), http://captsolo.net John Breslin, DERI-Galway (Ireland), http://johnbreslin.com Alexandre Passant, EDF R&D and LaLIC - Paris Sorbonne (France), http://apassant.net

Slides

The slides will be available after the tutorial

SPARQL Queries

In the tutorial we refer to some SPARQL queries examples An endpoint was specifically set-up for this tutorial at , containing SIOC data from boards.ie

http://swse.deri.org/boards/yars2/

Here are some sample queries that you can run on the endpoint to see how to retrieve SIOC data.


Example query #1

Find all (post, title, author URI) tuples, 200 answers, unordered

PREFIX sioc:   <http://rdfs.org/sioc/ns#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
SELECT ?post ?title ?author
WHERE {
 ?post rdf:type sioc:Post ;
  dc:title ?title ;
  sioc:has_creator ?author .
} LIMIT 20

http://swse.deri.org/boards/yars2/query?query=+PREFIX+sioc%3A+++%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0A+PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0A+PREFIX+dc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0A+SELECT+%3Fpost+%3Ftitle+%3Fauthor%0D%0A+WHERE+%7B%0D%0A++%3Fpost+rdf%3Atype+sioc%3APost+%3B%0D%0A+++dc%3Atitle+%3Ftitle+%3B%0D%0A+++sioc%3Ahas_creator+%3Fauthor+.%0D%0A+%7D+LIMIT+20&accept=text%2Fhtml

Example query #2

Find all (post, title, author name, date) tuples, 20 answers, most recents

PREFIX sioc:   <http://rdfs.org/sioc/ns#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX dcterms: <http://purl.org/dc/terms/> 
SELECT ?post ?title ?author ?created
WHERE {
 ?post rdf:type sioc:Post ;
  dc:title ?title ;
  dcterms:created ?created ;
  sioc:has_creator ?author .
} ORDER BY DESC(?created) LIMIT 20


http://swse.deri.org/boards/yars2/query?query=PREFIX+sioc%3A+++%3Chttp%3A%2F%2Frdfs.org%2Fsioc%2Fns%23%3E%0D%0A+PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0D%0A+PREFIX+dc%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%3E%0D%0A+PREFIX+dcterms%3A+%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E+%0D%0A+SELECT+%3Fpost+%3Ftitle+%3Fauthor+%3Fcreated%0D%0A+WHERE+%7B%0D%0A++%3Fpost+rdf%3Atype+sioc%3APost+%3B%0D%0A+++dc%3Atitle+%3Ftitle+%3B%0D%0A+++dcterms%3Acreated+%3Fcreated+%3B%0D%0A+++sioc%3Ahas_creator+%3Fauthor+.%0D%0A+%7D+ORDER+BY+DESC%28%3Fcreated%29+LIMIT+20%0D%0A&accept=text%2Fhtml

Example query #3

Find the content of the latest created post

PREFIX sioc:   <http://rdfs.org/sioc/ns#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX dcterms: <http://purl.org/dc/terms/> 
SELECT ?content
WHERE {
 ?post rdf:type sioc:Post ;
  dcterms:created ?created ;
  sioc:content ?content .
} ORDER BY DESC(?created) LIMIT 1