SlideShare a Scribd company logo
Digital Enterprise Research Institute                                                        www.deri.ie




                                                         RDFa:
                                                putting RDF on the Web

                                                      Benjamin.Heitmann@deri.org




                                                                               Chapter   1
 Copyright 2007 Digital Enterprise Research Institute. All rights reserved.                  www.deri.org
Overview
Digital Enterprise Research Institute                                          www.deri.ie



        Part        1: Motivation
             Use      case for embedding RDF on XHTML pages
             Bonus:         Explaining “what do I do?” at a Christmas party
        Part        2: The foundation: RDF in a nutshell
             data      model
             formal         semantics
        Part        3: RDFa with examples
             the     RDFa attributes
             visible       and invisible embedding
             handle         with care: CURIEs and implicit blank nodes
             tools       for consuming and publishing RDFa



   2 of 28                               Benjamin Heitmann
About me
Digital Enterprise Research Institute                       www.deri.ie



        Research  interest:
         bringing the Semantic Web to the IT mainstream by
         applying software engineering methodologies
        currently looking for a PhD Thesis topic
        Master thesis topic:
         Transitioning web application frameworks
         towards the Semantic Web
        worked with Eyal Oren (ActiveRDF) and Max Völkel
         (RDF2Go, RDFReactor)
        Student research topic: simplifying RDF semantics




   3 of 28                              Benjamin Heitmann
Digital Enterprise Research Institute                                                           www.deri.ie




                                                                               Motivation




                                                                                  Chapter   4
 Copyright 2007 Digital Enterprise Research Institute. All rights reserved.                     www.deri.org
Publishing structured content
Digital Enterprise Research Institute                                               www.deri.ie



        Current  Web: written for humans (mostly)
        Interesting information for machine agents exists
             Example:            music events in Galway (date, performer, venue)
        Problem:
             web       page mark-up does not explicitly encode information
        scraping               of web pages is expensive:
             webpage may change without warning
             human intervention is necessary




   5 of 28        Part 1: Motivation     Benjamin Heitmann
A potential provider of event data




6 of 28   Part 1: Motivation   Benjamin Heitmann
A potential consumer of event data




7 of 28   Part 1: Motivation   Benjamin Heitmann
Possible solution
Digital Enterprise Research Institute                                         www.deri.ie



        Embed   machine readable data on the same web page
        Benefits:
             write       and publish once
             readableby humans and machine agents
             easy maintenance for publisher
             easy       consuming of data after discovery
        Two          approaches:
             Microformats:
                 – fixed vocabulary, not extendable and customisable
             RDFa
                 – all the benefits of RDF: flexible and customisable
                 – all the overhead of RDF: data model and formal semantics



   8 of 28        Part 1: Motivation    Benjamin Heitmann
A side note: Explaining “what do you
       do?” at a party
Digital Enterprise Research Institute                                   www.deri.ie



        Quicker   use case
        suitable for explaining “what do you actually do?”
        like, lets say, for the Christmas holidays


        What          can Google do today?
               List Restaurants in Dublin
        Can         Google also give you this information?
             Restaurants   in Dublin, open on Thursday late, serving
                Pepperoni Pizza for under 15 Euro
        RDFa  (and the Semantic Web) could make this
          possible!


   9 of 28                              Benjamin Heitmann
Digital Enterprise Research Institute                                                         www.deri.ie




                          The foundation: RDF in a nutshell




                                                                               Chapter   10
 Copyright 2007 Digital Enterprise Research Institute. All rights reserved.                   www.deri.org
Show of hands
Digital Enterprise Research Institute                        www.deri.ie




        Who          can answer these questions:



       1.What is the RDF data model?

       2.What is the formal semantics of RDF?




   11 of 28     Part 2: RDF Foundation   Benjamin Heitmann
RDF data model: A graph
Digital Enterprise Research Institute                        www.deri.ie



        Graph  with nodes and
         directed arcs
        Graph consists of triples
        Each triple has a
         subject, predicate and
         object
        Contrast with other data
         models:
             SQL:       tables and relations
             XML:   tree of nodes with
               attributes



   12 of 28     Part 2: RDF Foundation   Benjamin Heitmann
RDF data model: node types
Digital Enterprise Research Institute                                               www.deri.ie



      1.Uniform Resource
                                                                                    Blank
        Identifier (URI):                                           URI   Literal
                                                                                    Node
            basically like in the
              browser location field
            globally         unique                     Subject    X                X
      2.Literal
            like     a string
            can  optionally have either
              a data type or a language
                                                        Predicate   X
              tag
      3.Blank Node
            place       holder                          Object     X       X        X
            only      locally unique

   13 of 28     Part 2: RDF Foundation   Benjamin Heitmann
An example with all three types
Digital Enterprise Research Institute                        www.deri.ie




   14 of 28     Part 2: RDF Foundation   Benjamin Heitmann
RDF formal semantics
Digital Enterprise Research Institute                                            www.deri.ie



        uses  “model theory” to provide
         “a globally coherent notion of meaning”
        provides basis for inference rules
        specifies the semantics of RDF
        Fundamental property:
         open world semantics and monotonic reasoning
             Facts:       I go to work from Monday to Friday.
             Question: Will I go to work on the weekend?
             Closed world semantics: no facts about the weekend ->
              answer: no.
             Open        world semantics: answer not possible
             Monotonic             reasoning: adding new data always possible

   15 of 28     Part 2: RDF Foundation    Benjamin Heitmann
Model theory example
Digital Enterprise Research Institute                        www.deri.ie



        Three           triples:
             <ex:a>         <ex:b> <ex:c> .
               <ex:c> <ex:a> <ex:a> .
               <ex:c> <ex:b> <ex:a> .


        True  with this
          interpretation:




   16 of 28     Part 2: RDF Foundation   Benjamin Heitmann
What to remember about RDF
Digital Enterprise Research Institute                        www.deri.ie



        RDF  is the foundation of
         the Semantic Web
        defines the data model
        provides base layer
         semantics
        other standards extend
         these semantics (like RDF
         Schema and OWL)
        domain ontologies
         provide domain specific
         semantics (like FOAF) on
         top of RDF Schema

   17 of 28     Part 2: RDF Foundation   Benjamin Heitmann
Digital Enterprise Research Institute                                                         www.deri.ie




                                                         RDFa with examples




                                                                               Chapter   18
 Copyright 2007 Digital Enterprise Research Institute. All rights reserved.                   www.deri.org
What is RDFa?
Digital Enterprise Research Institute                                      www.deri.ie



        syntax for embedding an RDF graph in an XHTML
         document
        uses XHTML attributes for expressing RDF properties
        properties about
             same        page
             or    external URI
        properties                 can reuse visible page content or be
         invisible
        XHTML documents with RDFa are backwards
         compatible
        GRDDL transformation to extract RDF exists



   19 of 28            Part 3: RDFa      Benjamin Heitmann
RDFa Example: Graph
Digital Enterprise Research Institute                       www.deri.ie




   20 of 28            Part 3: RDFa     Benjamin Heitmann
RDFa Example: Source
Digital Enterprise Research Institute                                                      www.deri.ie




      <div xmlns:foaf=quot;http://xmlns.com/foaf/0.1/quot; about=quot;#mequot; rel=quot;foaf:knowsquot;>
        <ul>
           <li typeof=quot;foaf:Personquot;>
             <a property=quot;foaf:namequot; rel=quot;foaf:homepagequot; href=quot;http://example.com/bobquot;>Bob</a>
           </li>
           <li typeof=quot;foaf:Personquot;>
             <a property=quot;foaf:namequot; rel=quot;foaf:homepagequot; href=quot;http://example.com/evequot;>Eve</a>
           </li>
           <li typeof=quot;foaf:Personquot;>
             <a property=quot;foaf:namequot; rel=quot;foaf:homepagequot; href=quot;http://example.com/manuquot;>Manu</a>
           </li>
        </ul>
      </div>




   21 of 28            Part 3: RDFa     Benjamin Heitmann
What just happened?
Digital Enterprise Research Institute                        www.deri.ie



        RDFa  works a little bit like RDF/XML
        xmlns:foaf declares the FOAF namespace
        about=”#me” defines the subject of a triple
        rel=”foaf:knows” defines the predicate
        typeof=”foaf:Person” defines a resource type
        typeof without explicit URLs leads to blank nodes
        property=”foaf:name” uses the literal “Bob”
        rel=”foaf:homepage” uses the href


        That’s           12 triples for just 8 XML nodes


   22 of 28            Part 3: RDFa     Benjamin Heitmann
CURIEs versus URIs
Digital Enterprise Research Institute                                  www.deri.ie



        Notall of the 10 RDFa attributes can use URIs
        CURIE (Compact URI )
             example:            foaf:Person
              curie     := [ [ prefix ] ':' ] reference
             prefix is either a defined name space or the default
              namespace
        URI (like http://dbpedia.org/resource/London)
        SafeCURIE
               CURIE in square brackets, example: [wiki:Biome]
             prevents           ambiguities between URIs and CURIEs
        Idea: Subject and Object can be external, use URIs.
          Predicate should be internal, so use CURIE.

   23 of 28            Part 3: RDFa      Benjamin Heitmann
Attributes for subjects
Digital Enterprise Research Institute                                      www.deri.ie




          @about : URI or SafeCURIE
               define a subject of a triple
          @src : URI
               a not clickable resource object, like a picture or multimedia
               object




   24 of 28            Part 3: RDFa     Benjamin Heitmann
Attributes for predicates
Digital Enterprise Research Institute                                 www.deri.ie




          @rel : CURIEs
               express relationship between resources
          @rev : CURIEs
               express reverse relationship between resources
          @property : CURIEs
               express relationship between a subject and a literal




   25 of 28            Part 3: RDFa     Benjamin Heitmann
Attributes for objects
Digital Enterprise Research Institute                                www.deri.ie




          @resource : URI or SafeCURIE
               an invisible resource object, that is not clickable
           @href : URI
               a resource object that is clickable like a link
           @content : string
               invisible literal object for a triple
           @datatype : XML data for a literal
           @typeof : specify class of a subject




   26 of 28            Part 3: RDFa     Benjamin Heitmann
Another RDFa example
Digital Enterprise Research Institute                                   www.deri.ie
<html xmlns=quot;http://www.w3.org/1999/xhtmlquot;
 xmlns:cal=quot;http://www.w3.org/2002/12/cal/ical#quot;
 xmlns:xsd=quot;http://www.w3.org/2001/XMLSchemaquot; >
 <head><title>Jo's Friends and Family Blog</title></head>
 <body>
   <p typeof=quot;cal:Veventquot;>
     I'm holding
     <span property=quot;cal:summaryquot;>
       one last summer Barbecue
     </span>,
     on
     <span property=quot;cal:dtstartquot; content=quot;2007-09-16T16:00:00-05:00quot;
           datatype=quot;xsd:dateTimequot;>
       September 16th at 4pm
     </span>.
   </p>
 </body>
</html>

   27 of 28            Part 3: RDFa     Benjamin Heitmann
Publishing and consuming RDFa
Digital Enterprise Research Institute                                       www.deri.ie



        Publishing                 RDFa
             use      any CMS that has custom templates
             Drupal
             Wordpress             (use pods plugin for wp 2.7)
        Consuming                      RDFa
             use      GRDDL to convert any web page with RDFa to RDF/XML
             Operator           Plug-in for Firefox


        Take          a look at http://rdfa.info/wiki/Tools for more




   28 of 28            Part 3: RDFa        Benjamin Heitmann
Summary
Digital Enterprise Research Institute                         www.deri.ie



        RDF  provides the data model and formal semantics
         for the Semantic Web
        RDFa embeds the data model in XHTML pages
             very      flexible, can express any RDF graph
             lotsof nested tags
             can reuse existing visible content
             or    can be completely invisible
        beware  of the difference between URIs and CURIEs
        watch out for implicit blank nodes
        generic tools for publishing and consuming exist




   29 of 28                             Benjamin Heitmann

More Related Content

What's hot

Implementing Semantic Web applications: reference architecture and challenges
Implementing Semantic Web applications:  reference architecture and challengesImplementing Semantic Web applications:  reference architecture and challenges
Implementing Semantic Web applications: reference architecture and challenges
Benjamin Heitmann
 
Turning social disputes into knowledge representations DERI reading group 201...
Turning social disputes into knowledge representations DERI reading group 201...Turning social disputes into knowledge representations DERI reading group 201...
Turning social disputes into knowledge representations DERI reading group 201...
jodischneider
 
An architecture for privacy-enabled user profile portability on the Web of Data
An architecture for privacy-enabled user profile portability on the Web of DataAn architecture for privacy-enabled user profile portability on the Web of Data
An architecture for privacy-enabled user profile portability on the Web of Data
Benjamin Heitmann
 
What your hairstyle says about your political preferences, and why you should...
What your hairstyle says about your political preferences, and why you should...What your hairstyle says about your political preferences, and why you should...
What your hairstyle says about your political preferences, and why you should...
Benjamin Heitmann
 
Linked Open Data
Linked Open DataLinked Open Data
Linked Open Data
Derilinx
 
Introduction to the Semantic Web
Introduction to the Semantic WebIntroduction to the Semantic Web
Introduction to the Semantic Web
Nuxeo
 
What can linked data do for digital libraries
What can linked data do for digital librariesWhat can linked data do for digital libraries
What can linked data do for digital libraries
Sören Auer
 
Semantic Desktop
Semantic DesktopSemantic Desktop
Semantic Desktop
Laura Dragan
 
Linked data for Enterprise Data Integration
Linked data for Enterprise Data IntegrationLinked data for Enterprise Data Integration
Linked data for Enterprise Data Integration
Sören Auer
 
Intelligent expert systems for location planning
Intelligent expert systems for location planningIntelligent expert systems for location planning
Intelligent expert systems for location planning
Navid Milanizadeh
 
How to Publish Open Data
How to Publish Open DataHow to Publish Open Data
How to Publish Open Data
Richard Cyganiak
 
Data Segmenting in Anzo
Data Segmenting in AnzoData Segmenting in Anzo
Data Segmenting in Anzo
LeeFeigenbaum
 
Taming digital traces for informal learning dhaval
Taming digital traces for informal learning  dhavalTaming digital traces for informal learning  dhaval
Taming digital traces for informal learning dhaval
Dhavalkumar Thakker
 
Geo-annotations in Semantic Digital Libraries
Geo-annotations in Semantic Digital Libraries Geo-annotations in Semantic Digital Libraries
Geo-annotations in Semantic Digital Libraries
mdabrowski
 
Taking the Tech out of SemTech
Taking the Tech out of SemTechTaking the Tech out of SemTech
Taking the Tech out of SemTech
LeeFeigenbaum
 
The Web of Data - Tom Heath
The Web of Data - Tom HeathThe Web of Data - Tom Heath
The Web of Data - Tom Heath
sssw2012
 
SemTecBiz 2012: Corporate Semantic Web
SemTecBiz 2012: Corporate Semantic WebSemTecBiz 2012: Corporate Semantic Web
SemTecBiz 2012: Corporate Semantic Web
Adrian Paschke
 
Integrating Semantic Systems
Integrating Semantic SystemsIntegrating Semantic Systems
Integrating Semantic Systems
Kingsley Uyi Idehen
 
Knowledge management on the desktop
Knowledge management on the desktopKnowledge management on the desktop
Knowledge management on the desktop
Laura Dragan
 
Manfred Linking the Real World
Manfred Linking the Real WorldManfred Linking the Real World
Manfred Linking the Real Worldsssw2012
 

What's hot (20)

Implementing Semantic Web applications: reference architecture and challenges
Implementing Semantic Web applications:  reference architecture and challengesImplementing Semantic Web applications:  reference architecture and challenges
Implementing Semantic Web applications: reference architecture and challenges
 
Turning social disputes into knowledge representations DERI reading group 201...
Turning social disputes into knowledge representations DERI reading group 201...Turning social disputes into knowledge representations DERI reading group 201...
Turning social disputes into knowledge representations DERI reading group 201...
 
An architecture for privacy-enabled user profile portability on the Web of Data
An architecture for privacy-enabled user profile portability on the Web of DataAn architecture for privacy-enabled user profile portability on the Web of Data
An architecture for privacy-enabled user profile portability on the Web of Data
 
What your hairstyle says about your political preferences, and why you should...
What your hairstyle says about your political preferences, and why you should...What your hairstyle says about your political preferences, and why you should...
What your hairstyle says about your political preferences, and why you should...
 
Linked Open Data
Linked Open DataLinked Open Data
Linked Open Data
 
Introduction to the Semantic Web
Introduction to the Semantic WebIntroduction to the Semantic Web
Introduction to the Semantic Web
 
What can linked data do for digital libraries
What can linked data do for digital librariesWhat can linked data do for digital libraries
What can linked data do for digital libraries
 
Semantic Desktop
Semantic DesktopSemantic Desktop
Semantic Desktop
 
Linked data for Enterprise Data Integration
Linked data for Enterprise Data IntegrationLinked data for Enterprise Data Integration
Linked data for Enterprise Data Integration
 
Intelligent expert systems for location planning
Intelligent expert systems for location planningIntelligent expert systems for location planning
Intelligent expert systems for location planning
 
How to Publish Open Data
How to Publish Open DataHow to Publish Open Data
How to Publish Open Data
 
Data Segmenting in Anzo
Data Segmenting in AnzoData Segmenting in Anzo
Data Segmenting in Anzo
 
Taming digital traces for informal learning dhaval
Taming digital traces for informal learning  dhavalTaming digital traces for informal learning  dhaval
Taming digital traces for informal learning dhaval
 
Geo-annotations in Semantic Digital Libraries
Geo-annotations in Semantic Digital Libraries Geo-annotations in Semantic Digital Libraries
Geo-annotations in Semantic Digital Libraries
 
Taking the Tech out of SemTech
Taking the Tech out of SemTechTaking the Tech out of SemTech
Taking the Tech out of SemTech
 
The Web of Data - Tom Heath
The Web of Data - Tom HeathThe Web of Data - Tom Heath
The Web of Data - Tom Heath
 
SemTecBiz 2012: Corporate Semantic Web
SemTecBiz 2012: Corporate Semantic WebSemTecBiz 2012: Corporate Semantic Web
SemTecBiz 2012: Corporate Semantic Web
 
Integrating Semantic Systems
Integrating Semantic SystemsIntegrating Semantic Systems
Integrating Semantic Systems
 
Knowledge management on the desktop
Knowledge management on the desktopKnowledge management on the desktop
Knowledge management on the desktop
 
Manfred Linking the Real World
Manfred Linking the Real WorldManfred Linking the Real World
Manfred Linking the Real World
 

Viewers also liked

Kaufman Research Interests
Kaufman Research InterestsKaufman Research Interests
Kaufman Research Interests
Eric Kaufman
 
Research Interests
Research InterestsResearch Interests
Research Interestsrmma2
 
Research Interests: CER Members
Research Interests: CER MembersResearch Interests: CER Members
Research Interests: CER Memberscgmanley
 
SKOS, RDFa, Microformats, Microdata
SKOS, RDFa, Microformats, MicrodataSKOS, RDFa, Microformats, Microdata
SKOS, RDFa, Microformats, Microdata
Bernhard Haslhofer
 
RDFa: an introduction
RDFa: an introductionRDFa: an introduction
RDFa: an introduction
Kai Li
 
Kmeans initialization
Kmeans initializationKmeans initialization
Kmeans initializationdjempol
 
K-means Clustering with Scikit-Learn
K-means Clustering with Scikit-LearnK-means Clustering with Scikit-Learn
K-means Clustering with Scikit-Learn
Sarah Guido
 
K means Clustering
K means ClusteringK means Clustering
K means ClusteringEdureka!
 
semantic markup using schema.org
semantic markup using schema.orgsemantic markup using schema.org
semantic markup using schema.org
Joshua Shinavier
 

Viewers also liked (11)

Kaufman Research Interests
Kaufman Research InterestsKaufman Research Interests
Kaufman Research Interests
 
RDFa
RDFaRDFa
RDFa
 
Research Interests
Research InterestsResearch Interests
Research Interests
 
Research Interests: CER Members
Research Interests: CER MembersResearch Interests: CER Members
Research Interests: CER Members
 
SKOS, RDFa, Microformats, Microdata
SKOS, RDFa, Microformats, MicrodataSKOS, RDFa, Microformats, Microdata
SKOS, RDFa, Microformats, Microdata
 
RDFa: an introduction
RDFa: an introductionRDFa: an introduction
RDFa: an introduction
 
Kmeans initialization
Kmeans initializationKmeans initialization
Kmeans initialization
 
K-means Clustering with Scikit-Learn
K-means Clustering with Scikit-LearnK-means Clustering with Scikit-Learn
K-means Clustering with Scikit-Learn
 
K means Clustering
K means ClusteringK means Clustering
K means Clustering
 
semantic markup using schema.org
semantic markup using schema.orgsemantic markup using schema.org
semantic markup using schema.org
 
K means Clustering Algorithm
K means Clustering AlgorithmK means Clustering Algorithm
K means Clustering Algorithm
 

Similar to RDFa: putting RDF on the Web

Hello Open World - The Web of Data for the Pragmatic Developer
Hello Open World - The Web of Data for the Pragmatic DeveloperHello Open World - The Web of Data for the Pragmatic Developer
Hello Open World - The Web of Data for the Pragmatic Developer
Alexandre Passant
 
How to Build Linked Data Sites with Drupal 7 and RDFa
How to Build Linked Data Sites with Drupal 7 and RDFaHow to Build Linked Data Sites with Drupal 7 and RDFa
How to Build Linked Data Sites with Drupal 7 and RDFa
scorlosquet
 
Semantic Web research anno 2006:main streams, popular falacies, current statu...
Semantic Web research anno 2006:main streams, popular falacies, current statu...Semantic Web research anno 2006:main streams, popular falacies, current statu...
Semantic Web research anno 2006:main streams, popular falacies, current statu...
Frank van Harmelen
 
Semantic Search for Enterprise 2.0
Semantic Search for Enterprise 2.0Semantic Search for Enterprise 2.0
Semantic Search for Enterprise 2.0
Alexandre Passant
 
Using Semantics to Improve Corporate Online Communities
Using Semantics to Improve Corporate Online CommunitiesUsing Semantics to Improve Corporate Online Communities
Using Semantics to Improve Corporate Online Communities
Alexandre Passant
 
Weaving the Pedantic Web (LD
Weaving the Pedantic Web (LDWeaving the Pedantic Web (LD
Weaving the Pedantic Web (LDAidan Hogan
 
Nicolas Delaforge: Modeling the Web resource, extracting the context: stakes ...
Nicolas Delaforge: Modeling the Web resource, extracting the context: stakes ...Nicolas Delaforge: Modeling the Web resource, extracting the context: stakes ...
Nicolas Delaforge: Modeling the Web resource, extracting the context: stakes ...PhiloWeb
 
Leveraging existing Web Frameworks for a SIOC explorer (Scripting for the Sem...
Leveraging existing Web Frameworks for a SIOC explorer (Scripting for the Sem...Leveraging existing Web Frameworks for a SIOC explorer (Scripting for the Sem...
Leveraging existing Web Frameworks for a SIOC explorer (Scripting for the Sem...
Benjamin Heitmann
 
Federating Distributed Social Data to Build an Interlinked Online Information...
Federating Distributed Social Data to Build an Interlinked Online Information...Federating Distributed Social Data to Build an Interlinked Online Information...
Federating Distributed Social Data to Build an Interlinked Online Information...
Alexandre Passant
 
A distributional structured semantic space for querying rdf graph data
A distributional structured semantic space for querying rdf graph dataA distributional structured semantic space for querying rdf graph data
A distributional structured semantic space for querying rdf graph data
Andre Freitas
 
How google is using linked data today and vision for tomorrow
How google is using linked data today and vision for tomorrowHow google is using linked data today and vision for tomorrow
How google is using linked data today and vision for tomorrow
Vasu Jain
 
The Social Semantic Web and Linked Data
The Social Semantic Web and Linked DataThe Social Semantic Web and Linked Data
The Social Semantic Web and Linked Data
Alexandre Passant
 
Challenges Ahead for Converging Financial Data
Challenges Ahead for Converging Financial DataChallenges Ahead for Converging Financial Data
Challenges Ahead for Converging Financial Data
Edward Curry
 
Social Media and Web 2.0
Social Media and Web 2.0Social Media and Web 2.0
Social Media and Web 2.0
Alexandre Passant
 
Accessing the Linked Open Data Cloud via ODBC
Accessing the Linked Open Data Cloud via ODBCAccessing the Linked Open Data Cloud via ODBC
Accessing the Linked Open Data Cloud via ODBC
Kingsley Uyi Idehen
 
ISWC 2012 - Industry Track - Linked Enterprise Data: leveraging the Semantic ...
ISWC 2012 - Industry Track - Linked Enterprise Data: leveraging the Semantic ...ISWC 2012 - Industry Track - Linked Enterprise Data: leveraging the Semantic ...
ISWC 2012 - Industry Track - Linked Enterprise Data: leveraging the Semantic ...
Antidot
 
Some news about the SW
Some news about the SWSome news about the SW
Some news about the SW
Ivan Herman
 

Similar to RDFa: putting RDF on the Web (20)

When?
When?When?
When?
 
Hello Open World - The Web of Data for the Pragmatic Developer
Hello Open World - The Web of Data for the Pragmatic DeveloperHello Open World - The Web of Data for the Pragmatic Developer
Hello Open World - The Web of Data for the Pragmatic Developer
 
How to Build Linked Data Sites with Drupal 7 and RDFa
How to Build Linked Data Sites with Drupal 7 and RDFaHow to Build Linked Data Sites with Drupal 7 and RDFa
How to Build Linked Data Sites with Drupal 7 and RDFa
 
Semantic Web research anno 2006:main streams, popular falacies, current statu...
Semantic Web research anno 2006:main streams, popular falacies, current statu...Semantic Web research anno 2006:main streams, popular falacies, current statu...
Semantic Web research anno 2006:main streams, popular falacies, current statu...
 
Semantic Search for Enterprise 2.0
Semantic Search for Enterprise 2.0Semantic Search for Enterprise 2.0
Semantic Search for Enterprise 2.0
 
Using Semantics to Improve Corporate Online Communities
Using Semantics to Improve Corporate Online CommunitiesUsing Semantics to Improve Corporate Online Communities
Using Semantics to Improve Corporate Online Communities
 
Weaving the Pedantic Web (LD
Weaving the Pedantic Web (LDWeaving the Pedantic Web (LD
Weaving the Pedantic Web (LD
 
Nicolas Delaforge: Modeling the Web resource, extracting the context: stakes ...
Nicolas Delaforge: Modeling the Web resource, extracting the context: stakes ...Nicolas Delaforge: Modeling the Web resource, extracting the context: stakes ...
Nicolas Delaforge: Modeling the Web resource, extracting the context: stakes ...
 
Leveraging existing Web Frameworks for a SIOC explorer (Scripting for the Sem...
Leveraging existing Web Frameworks for a SIOC explorer (Scripting for the Sem...Leveraging existing Web Frameworks for a SIOC explorer (Scripting for the Sem...
Leveraging existing Web Frameworks for a SIOC explorer (Scripting for the Sem...
 
Federating Distributed Social Data to Build an Interlinked Online Information...
Federating Distributed Social Data to Build an Interlinked Online Information...Federating Distributed Social Data to Build an Interlinked Online Information...
Federating Distributed Social Data to Build an Interlinked Online Information...
 
A distributional structured semantic space for querying rdf graph data
A distributional structured semantic space for querying rdf graph dataA distributional structured semantic space for querying rdf graph data
A distributional structured semantic space for querying rdf graph data
 
Semtech2006
Semtech2006Semtech2006
Semtech2006
 
How google is using linked data today and vision for tomorrow
How google is using linked data today and vision for tomorrowHow google is using linked data today and vision for tomorrow
How google is using linked data today and vision for tomorrow
 
The Social Semantic Web and Linked Data
The Social Semantic Web and Linked DataThe Social Semantic Web and Linked Data
The Social Semantic Web and Linked Data
 
Challenges Ahead for Converging Financial Data
Challenges Ahead for Converging Financial DataChallenges Ahead for Converging Financial Data
Challenges Ahead for Converging Financial Data
 
Social Media and Web 2.0
Social Media and Web 2.0Social Media and Web 2.0
Social Media and Web 2.0
 
Accessing the Linked Open Data Cloud via ODBC
Accessing the Linked Open Data Cloud via ODBCAccessing the Linked Open Data Cloud via ODBC
Accessing the Linked Open Data Cloud via ODBC
 
Exploring Linked Data
Exploring Linked DataExploring Linked Data
Exploring Linked Data
 
ISWC 2012 - Industry Track - Linked Enterprise Data: leveraging the Semantic ...
ISWC 2012 - Industry Track - Linked Enterprise Data: leveraging the Semantic ...ISWC 2012 - Industry Track - Linked Enterprise Data: leveraging the Semantic ...
ISWC 2012 - Industry Track - Linked Enterprise Data: leveraging the Semantic ...
 
Some news about the SW
Some news about the SWSome news about the SW
Some news about the SW
 

More from Benjamin Heitmann

A new direction for recommender systems: balancing privacy and personalisation
A new direction for recommender systems: balancing privacy and personalisationA new direction for recommender systems: balancing privacy and personalisation
A new direction for recommender systems: balancing privacy and personalisation
Benjamin Heitmann
 
Benjamin Heitmann, PhD defence talk: An Open Framework for Multi-source, Cro...
Benjamin Heitmann, PhD defence talk: An Open Framework for Multi-source, Cro...Benjamin Heitmann, PhD defence talk: An Open Framework for Multi-source, Cro...
Benjamin Heitmann, PhD defence talk: An Open Framework for Multi-source, Cro...
Benjamin Heitmann
 
Representing discourse and argumentation as an application of Web Science
Representing discourse and argumentation as an application of Web ScienceRepresenting discourse and argumentation as an application of Web Science
Representing discourse and argumentation as an application of Web Science
Benjamin Heitmann
 
Web Science: Motivation, Goals and Contributions
Web Science: Motivation, Goals and ContributionsWeb Science: Motivation, Goals and Contributions
Web Science: Motivation, Goals and Contributions
Benjamin Heitmann
 
Lessons learned from Futures Studies: Towards a method for Web Science
Lessons learned from Futures Studies: Towards a method for Web ScienceLessons learned from Futures Studies: Towards a method for Web Science
Lessons learned from Futures Studies: Towards a method for Web Science
Benjamin Heitmann
 
Applying the scientific method in Software Evaluation
Applying the scientific method in Software EvaluationApplying the scientific method in Software Evaluation
Applying the scientific method in Software Evaluation
Benjamin Heitmann
 

More from Benjamin Heitmann (6)

A new direction for recommender systems: balancing privacy and personalisation
A new direction for recommender systems: balancing privacy and personalisationA new direction for recommender systems: balancing privacy and personalisation
A new direction for recommender systems: balancing privacy and personalisation
 
Benjamin Heitmann, PhD defence talk: An Open Framework for Multi-source, Cro...
Benjamin Heitmann, PhD defence talk: An Open Framework for Multi-source, Cro...Benjamin Heitmann, PhD defence talk: An Open Framework for Multi-source, Cro...
Benjamin Heitmann, PhD defence talk: An Open Framework for Multi-source, Cro...
 
Representing discourse and argumentation as an application of Web Science
Representing discourse and argumentation as an application of Web ScienceRepresenting discourse and argumentation as an application of Web Science
Representing discourse and argumentation as an application of Web Science
 
Web Science: Motivation, Goals and Contributions
Web Science: Motivation, Goals and ContributionsWeb Science: Motivation, Goals and Contributions
Web Science: Motivation, Goals and Contributions
 
Lessons learned from Futures Studies: Towards a method for Web Science
Lessons learned from Futures Studies: Towards a method for Web ScienceLessons learned from Futures Studies: Towards a method for Web Science
Lessons learned from Futures Studies: Towards a method for Web Science
 
Applying the scientific method in Software Evaluation
Applying the scientific method in Software EvaluationApplying the scientific method in Software Evaluation
Applying the scientific method in Software Evaluation
 

Recently uploaded

1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 

Recently uploaded (20)

1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 

RDFa: putting RDF on the Web

  • 1. Digital Enterprise Research Institute www.deri.ie RDFa: putting RDF on the Web Benjamin.Heitmann@deri.org Chapter 1  Copyright 2007 Digital Enterprise Research Institute. All rights reserved. www.deri.org
  • 2. Overview Digital Enterprise Research Institute www.deri.ie  Part 1: Motivation  Use case for embedding RDF on XHTML pages  Bonus: Explaining “what do I do?” at a Christmas party  Part 2: The foundation: RDF in a nutshell  data model  formal semantics  Part 3: RDFa with examples  the RDFa attributes  visible and invisible embedding  handle with care: CURIEs and implicit blank nodes  tools for consuming and publishing RDFa 2 of 28 Benjamin Heitmann
  • 3. About me Digital Enterprise Research Institute www.deri.ie  Research interest: bringing the Semantic Web to the IT mainstream by applying software engineering methodologies  currently looking for a PhD Thesis topic  Master thesis topic: Transitioning web application frameworks towards the Semantic Web  worked with Eyal Oren (ActiveRDF) and Max Völkel (RDF2Go, RDFReactor)  Student research topic: simplifying RDF semantics 3 of 28 Benjamin Heitmann
  • 4. Digital Enterprise Research Institute www.deri.ie Motivation Chapter 4  Copyright 2007 Digital Enterprise Research Institute. All rights reserved. www.deri.org
  • 5. Publishing structured content Digital Enterprise Research Institute www.deri.ie  Current Web: written for humans (mostly)  Interesting information for machine agents exists  Example: music events in Galway (date, performer, venue)  Problem:  web page mark-up does not explicitly encode information  scraping of web pages is expensive:  webpage may change without warning  human intervention is necessary 5 of 28 Part 1: Motivation Benjamin Heitmann
  • 6. A potential provider of event data 6 of 28 Part 1: Motivation Benjamin Heitmann
  • 7. A potential consumer of event data 7 of 28 Part 1: Motivation Benjamin Heitmann
  • 8. Possible solution Digital Enterprise Research Institute www.deri.ie  Embed machine readable data on the same web page  Benefits:  write and publish once  readableby humans and machine agents  easy maintenance for publisher  easy consuming of data after discovery  Two approaches:  Microformats: – fixed vocabulary, not extendable and customisable  RDFa – all the benefits of RDF: flexible and customisable – all the overhead of RDF: data model and formal semantics 8 of 28 Part 1: Motivation Benjamin Heitmann
  • 9. A side note: Explaining “what do you do?” at a party Digital Enterprise Research Institute www.deri.ie  Quicker use case  suitable for explaining “what do you actually do?”  like, lets say, for the Christmas holidays  What can Google do today?  List Restaurants in Dublin  Can Google also give you this information?  Restaurants in Dublin, open on Thursday late, serving Pepperoni Pizza for under 15 Euro  RDFa (and the Semantic Web) could make this possible! 9 of 28 Benjamin Heitmann
  • 10. Digital Enterprise Research Institute www.deri.ie The foundation: RDF in a nutshell Chapter 10  Copyright 2007 Digital Enterprise Research Institute. All rights reserved. www.deri.org
  • 11. Show of hands Digital Enterprise Research Institute www.deri.ie  Who can answer these questions: 1.What is the RDF data model? 2.What is the formal semantics of RDF? 11 of 28 Part 2: RDF Foundation Benjamin Heitmann
  • 12. RDF data model: A graph Digital Enterprise Research Institute www.deri.ie  Graph with nodes and directed arcs  Graph consists of triples  Each triple has a subject, predicate and object  Contrast with other data models:  SQL: tables and relations  XML: tree of nodes with attributes 12 of 28 Part 2: RDF Foundation Benjamin Heitmann
  • 13. RDF data model: node types Digital Enterprise Research Institute www.deri.ie 1.Uniform Resource Blank Identifier (URI): URI Literal Node  basically like in the browser location field  globally unique Subject X X 2.Literal  like a string  can optionally have either a data type or a language Predicate X tag 3.Blank Node  place holder Object X X X  only locally unique 13 of 28 Part 2: RDF Foundation Benjamin Heitmann
  • 14. An example with all three types Digital Enterprise Research Institute www.deri.ie 14 of 28 Part 2: RDF Foundation Benjamin Heitmann
  • 15. RDF formal semantics Digital Enterprise Research Institute www.deri.ie  uses “model theory” to provide “a globally coherent notion of meaning”  provides basis for inference rules  specifies the semantics of RDF  Fundamental property: open world semantics and monotonic reasoning  Facts: I go to work from Monday to Friday.  Question: Will I go to work on the weekend?  Closed world semantics: no facts about the weekend -> answer: no.  Open world semantics: answer not possible  Monotonic reasoning: adding new data always possible 15 of 28 Part 2: RDF Foundation Benjamin Heitmann
  • 16. Model theory example Digital Enterprise Research Institute www.deri.ie  Three triples:  <ex:a> <ex:b> <ex:c> .  <ex:c> <ex:a> <ex:a> .  <ex:c> <ex:b> <ex:a> .  True with this interpretation: 16 of 28 Part 2: RDF Foundation Benjamin Heitmann
  • 17. What to remember about RDF Digital Enterprise Research Institute www.deri.ie  RDF is the foundation of the Semantic Web  defines the data model  provides base layer semantics  other standards extend these semantics (like RDF Schema and OWL)  domain ontologies provide domain specific semantics (like FOAF) on top of RDF Schema 17 of 28 Part 2: RDF Foundation Benjamin Heitmann
  • 18. Digital Enterprise Research Institute www.deri.ie RDFa with examples Chapter 18  Copyright 2007 Digital Enterprise Research Institute. All rights reserved. www.deri.org
  • 19. What is RDFa? Digital Enterprise Research Institute www.deri.ie  syntax for embedding an RDF graph in an XHTML document  uses XHTML attributes for expressing RDF properties  properties about  same page  or external URI  properties can reuse visible page content or be invisible  XHTML documents with RDFa are backwards compatible  GRDDL transformation to extract RDF exists 19 of 28 Part 3: RDFa Benjamin Heitmann
  • 20. RDFa Example: Graph Digital Enterprise Research Institute www.deri.ie 20 of 28 Part 3: RDFa Benjamin Heitmann
  • 21. RDFa Example: Source Digital Enterprise Research Institute www.deri.ie <div xmlns:foaf=quot;http://xmlns.com/foaf/0.1/quot; about=quot;#mequot; rel=quot;foaf:knowsquot;> <ul> <li typeof=quot;foaf:Personquot;> <a property=quot;foaf:namequot; rel=quot;foaf:homepagequot; href=quot;http://example.com/bobquot;>Bob</a> </li> <li typeof=quot;foaf:Personquot;> <a property=quot;foaf:namequot; rel=quot;foaf:homepagequot; href=quot;http://example.com/evequot;>Eve</a> </li> <li typeof=quot;foaf:Personquot;> <a property=quot;foaf:namequot; rel=quot;foaf:homepagequot; href=quot;http://example.com/manuquot;>Manu</a> </li> </ul> </div> 21 of 28 Part 3: RDFa Benjamin Heitmann
  • 22. What just happened? Digital Enterprise Research Institute www.deri.ie  RDFa works a little bit like RDF/XML  xmlns:foaf declares the FOAF namespace  about=”#me” defines the subject of a triple  rel=”foaf:knows” defines the predicate  typeof=”foaf:Person” defines a resource type  typeof without explicit URLs leads to blank nodes  property=”foaf:name” uses the literal “Bob”  rel=”foaf:homepage” uses the href  That’s 12 triples for just 8 XML nodes 22 of 28 Part 3: RDFa Benjamin Heitmann
  • 23. CURIEs versus URIs Digital Enterprise Research Institute www.deri.ie  Notall of the 10 RDFa attributes can use URIs  CURIE (Compact URI )  example: foaf:Person  curie := [ [ prefix ] ':' ] reference  prefix is either a defined name space or the default namespace  URI (like http://dbpedia.org/resource/London)  SafeCURIE  CURIE in square brackets, example: [wiki:Biome]  prevents ambiguities between URIs and CURIEs  Idea: Subject and Object can be external, use URIs. Predicate should be internal, so use CURIE. 23 of 28 Part 3: RDFa Benjamin Heitmann
  • 24. Attributes for subjects Digital Enterprise Research Institute www.deri.ie @about : URI or SafeCURIE define a subject of a triple @src : URI a not clickable resource object, like a picture or multimedia object 24 of 28 Part 3: RDFa Benjamin Heitmann
  • 25. Attributes for predicates Digital Enterprise Research Institute www.deri.ie @rel : CURIEs express relationship between resources @rev : CURIEs express reverse relationship between resources @property : CURIEs express relationship between a subject and a literal 25 of 28 Part 3: RDFa Benjamin Heitmann
  • 26. Attributes for objects Digital Enterprise Research Institute www.deri.ie @resource : URI or SafeCURIE an invisible resource object, that is not clickable @href : URI a resource object that is clickable like a link @content : string invisible literal object for a triple @datatype : XML data for a literal @typeof : specify class of a subject 26 of 28 Part 3: RDFa Benjamin Heitmann
  • 27. Another RDFa example Digital Enterprise Research Institute www.deri.ie <html xmlns=quot;http://www.w3.org/1999/xhtmlquot; xmlns:cal=quot;http://www.w3.org/2002/12/cal/ical#quot; xmlns:xsd=quot;http://www.w3.org/2001/XMLSchemaquot; > <head><title>Jo's Friends and Family Blog</title></head> <body> <p typeof=quot;cal:Veventquot;> I'm holding <span property=quot;cal:summaryquot;> one last summer Barbecue </span>, on <span property=quot;cal:dtstartquot; content=quot;2007-09-16T16:00:00-05:00quot; datatype=quot;xsd:dateTimequot;> September 16th at 4pm </span>. </p> </body> </html> 27 of 28 Part 3: RDFa Benjamin Heitmann
  • 28. Publishing and consuming RDFa Digital Enterprise Research Institute www.deri.ie  Publishing RDFa  use any CMS that has custom templates  Drupal  Wordpress (use pods plugin for wp 2.7)  Consuming RDFa  use GRDDL to convert any web page with RDFa to RDF/XML  Operator Plug-in for Firefox  Take a look at http://rdfa.info/wiki/Tools for more 28 of 28 Part 3: RDFa Benjamin Heitmann
  • 29. Summary Digital Enterprise Research Institute www.deri.ie  RDF provides the data model and formal semantics for the Semantic Web  RDFa embeds the data model in XHTML pages  very flexible, can express any RDF graph  lotsof nested tags  can reuse existing visible content  or can be completely invisible  beware of the difference between URIs and CURIEs  watch out for implicit blank nodes  generic tools for publishing and consuming exist 29 of 28 Benjamin Heitmann