ISWC08 Tutorials — RDFa

 

RDFa - Bridging the Web of Documents and the Web of Data

Michael Hausenblas, JOANNEUM RESEARCH
Ivan Herman, W3C
Ben Adida, Creative Commons / Harvard University



Agenda

Goals of RDFa

Bringing the

"Web of Documents"

and the

"Web of Data" (Semantic Web)

closer

The Web of Documents View

The Web of Documents View

The Web of Documents View - Existing Solution (I)

The Web of Documents View - Existing Solution (II)

The Web of Data View

The Web of Data View - Existing Solution

The Web of Data View - Additional Goal

What is RDFa?

RDFa - Publishing

RDFa - Consumption

A complete examples can be accessed in a standalone XHTML+RDFa document (from the RDFa Primer). This document will be used as a base in the following consumption examples.

RDFa - Consumption

@prefix dc: <http://purl.org/dc/elements/1.1/>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix cc: <http://creativecommons.org/ns#>.

<http://example.com/alice>
    cc:license <http://creativecommons.org/licenses/by/3.0/>;

<http://example.com/posts/trouble_with_bob> dc:creator "Alice";
                                            dc:title "The trouble with Bob".
   
<http://example.com/alice#me> a foaf:Person;
    foaf:knows
            [ a foaf:Person;
            	foaf:homepage <http://example.com/manu>;
            	foaf:name "Manu" ],
            [ a foaf:Person;
            	foaf:homepage <http://example.com/bob>;
            	foaf:name "Bob" ],
            [ a foaf:Person;
            	foaf:homepage <http://example.com/eve>;
            	foaf:name "Eve" ];
    foaf:mbox <mailto:alice@example.com>;
    foaf:name "Alice Birpemswick";
    foaf:phone <tel:+1-617-555-7332> .

</2006/07/SWD/RDFa/primer/sunset.jpg> dc:creator "Bob";
                                      dc:title "Beautiful Sunset" .

<http://example.com/posts/jos_barbecue>
	dc:creator "Eve"; 
	dc:title "Jo's Barbecue" .
	

RDFa - Consumption (SPARQL)

Who is the creator of the post with the title "The trouble with Bob"? Answer ...

PREFIX dc: <http://purl.org/dc/elements/1.1/>

SELECT ?creator_of_post
FROM <http://www.w3.org/2007/08/pyRdfa/extract?uri=http://www.w3.org/2006/07/SWD/RDFa/primer/alice-example.html>
WHERE { 
 ?post dc:title ?post_title ;
       dc:creator ?creator_of_post .
 FILTER regex(?post_title, "The trouble with Bob", "i")
}

RDFa - Consumption (SPARQL)

Whom the heck knows Alice? Answer ...

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>

SELECT ?whom_name ?whom_homepage
FROM <http://www.w3.org/2007/08/pyRdfa/extract?uri=http://www.w3.org/2006/07/SWD/RDFa/primer/alice-example.html>
WHERE { 
 ?alice rdf:type foaf:Person ; 
        foaf:mbox <mailto:alice@example.com> ;
        foaf:knows ?whom.
 ?whom rdf:type foaf:Person ; 
       foaf:name ?whom_name ;  
       foaf:homepage ?whom_homepage .  
}

Applications I

Yahoo! SearchMonkey - example: Creative Commons application

Applications II

Bitmunk, expressing music, video and cultural semantics (see also Bitmunk Overview)

Applications - Outlook

Advanced Issues

Advanced Issues - Deployment

How to config your Web server ...

Advanced Issues - Vocabulary Definition

Define self-descriptive RDF-based vocabularies ...

Advanced Issues - Dynamic Content

Parsing of a DOM that is updated via Javascript

Advanced Issues - Dynamic Content

Advanced Issues - Performance & Scalability



riese is the linked data version of the Eurostat data, deployed in XHTML+RDFa.

Advanced Issues - Performance & Scalability



Issue: find tradeoff between embedding and referencing metadata (granularity issue).

Advanced Issues - Other Target Languages

RDFa for other host languages

Questions?

Please note that an online version of the tutorial slides is available at:

http://www.w3.org/2008/Talks/1026-ISCW-RDFa/