SlideShare una empresa de Scribd logo
1 de 29
Descargar para leer sin conexión
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

Más contenido relacionado

La actualidad más candente

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 challengesBenjamin 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 DataBenjamin 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 DataDerilinx
 
Introduction to the Semantic Web
Introduction to the Semantic WebIntroduction to the Semantic Web
Introduction to the Semantic WebNuxeo
 
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 librariesSören Auer
 
Linked data for Enterprise Data Integration
Linked data for Enterprise Data IntegrationLinked data for Enterprise Data Integration
Linked data for Enterprise Data IntegrationSören Auer
 
Intelligent expert systems for location planning
Intelligent expert systems for location planningIntelligent expert systems for location planning
Intelligent expert systems for location planningNavid Milanizadeh
 
Data Segmenting in Anzo
Data Segmenting in AnzoData Segmenting in Anzo
Data Segmenting in AnzoLeeFeigenbaum
 
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 dhavalDhavalkumar 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 SemTechLeeFeigenbaum
 
The Web of Data - Tom Heath
The Web of Data - Tom HeathThe Web of Data - Tom Heath
The Web of Data - Tom Heathsssw2012
 
SemTecBiz 2012: Corporate Semantic Web
SemTecBiz 2012: Corporate Semantic WebSemTecBiz 2012: Corporate Semantic Web
SemTecBiz 2012: Corporate Semantic WebAdrian Paschke
 
Knowledge management on the desktop
Knowledge management on the desktopKnowledge management on the desktop
Knowledge management on the desktopLaura Dragan
 
Manfred Linking the Real World
Manfred Linking the Real WorldManfred Linking the Real World
Manfred Linking the Real Worldsssw2012
 

La actualidad más candente (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
 

Destacado

Kaufman Research Interests
Kaufman Research InterestsKaufman Research Interests
Kaufman Research InterestsEric 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, MicrodataBernhard Haslhofer
 
RDFa: an introduction
RDFa: an introductionRDFa: an introduction
RDFa: an introductionKai 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-LearnSarah 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.orgJoshua Shinavier
 

Destacado (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 a 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 DeveloperAlexandre 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 RDFascorlosquet
 
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.0Alexandre 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 CommunitiesAlexandre 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 dataAndre 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 tomorrowVasu 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 DataAlexandre Passant
 
Challenges Ahead for Converging Financial Data
Challenges Ahead for Converging Financial DataChallenges Ahead for Converging Financial Data
Challenges Ahead for Converging Financial DataEdward Curry
 
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 ODBCKingsley 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 SWIvan Herman
 

Similar a 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
 

Más de 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 personalisationBenjamin 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 ScienceBenjamin Heitmann
 
Web Science: Motivation, Goals and Contributions
Web Science: Motivation, Goals and ContributionsWeb Science: Motivation, Goals and Contributions
Web Science: Motivation, Goals and ContributionsBenjamin 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 ScienceBenjamin 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 EvaluationBenjamin Heitmann
 

Más de 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
 

Último

Employablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxEmployablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxryandux83rd
 
4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptxmary850239
 
Objectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxObjectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxMadhavi Dharankar
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...Nguyen Thanh Tu Collection
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxAnupam32727
 
DBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfDBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfChristalin Nelson
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroomSamsung Business USA
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdfMr Bounab Samir
 
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Osopher
 
The role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenshipThe role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenshipKarl Donert
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptxDhatriParmar
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
DiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdfDiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdfChristalin Nelson
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesVijayaLaxmi84
 
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEPART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEMISSRITIMABIOLOGYEXP
 

Último (20)

Employablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptxEmployablity presentation and Future Career Plan.pptx
Employablity presentation and Future Career Plan.pptx
 
4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx
 
Objectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxObjectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptx
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
 
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptxCLASSIFICATION OF ANTI - CANCER DRUGS.pptx
CLASSIFICATION OF ANTI - CANCER DRUGS.pptx
 
DBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfDBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdf
 
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom
 
MS4 level being good citizen -imperative- (1) (1).pdf
MS4 level   being good citizen -imperative- (1) (1).pdfMS4 level   being good citizen -imperative- (1) (1).pdf
MS4 level being good citizen -imperative- (1) (1).pdf
 
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
 
The role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenshipThe role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenship
 
CARNAVAL COM MAGIA E EUFORIA _
CARNAVAL COM MAGIA E EUFORIA            _CARNAVAL COM MAGIA E EUFORIA            _
CARNAVAL COM MAGIA E EUFORIA _
 
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
 
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
Unraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptxUnraveling Hypertext_ Analyzing  Postmodern Elements in  Literature.pptx
Unraveling Hypertext_ Analyzing Postmodern Elements in Literature.pptx
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
DiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdfDiskStorage_BasicFileStructuresandHashing.pdf
DiskStorage_BasicFileStructuresandHashing.pdf
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
 
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEPART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
 

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