SlideShare a Scribd company logo
Generic model for the provision of metadata




                             RDFa =
          Resource Description Framework
                                  in

                            attributes
                                              HTML




       What is RDFa?
What is RDFa
Session 1/4
Metadata




It’s all about metadata
  ‣ data about data
  ‣ many and varied versions of metadata
  ‣ add background information, put things in context, add value, make much
      more useful by showing relevance
  ‣   different levels of metadata—may need pointer to further information to fully
      explain a piece of metadata or describe how to interpret
  ‣   enable ways of classifying, connecting, rating, structuring, promoting, that
      wouldn't be possible otherwise—especially if a common "vocabulary" for the
      metadata terms is used




                                       RDFa
Add meaning and context




         RDFa
Add meaning and context




         RDFa
RDFa
Metadata

     Increases specificity

 Improves common, wide,
unambiguous understanding
  Content becomes
    computable

              RDFa
Benefits of having meaningful metadata




Seamless use of data in a web page with
desktop applications
  ‣ use of microformats tools to generate contact information in a web page
  ‣ viewing of web page containing microformats using Firefox and Operator
      extension: https://addons.mozilla.org/en-US/firefox/addon/4106
  ‣   transfer of data in the web page to desktop address book




        http://microformats.org/code-tools   http://en.wikipedia.org/wiki/HCard
Metadata evolution on the web



       9 2          The World Wide Web—HTML, HTTP, URLs

 1 9
                                                                               L
                                                                       T M
           L                                                   H
  X M                                                     D
                L                                                               pt
       T M                                                               cr
                                                                              i
                                                                       s
X H                                                             va
               as                                         J   a
       em
  ch                                                                     S
S              ic
                                                                   C   S
    a nt
  m eb
Se w
                                                                        a x
       Q
         L
                                                               a j
    AR
 SP

                                                                              N
       W
           L
                                                                   S O
   O                                                           J

                                    RDFa
Metadata evolution on the web



       9 2          The World Wide Web—HTML, HTTP, URLs

 1 9
                                                                               L
                                                                       T M
           L                                                   H
  X M                                                     D
                L                                                               pt
       T M                                                               cr
                                                                              i
                                                                       s
X H                                                             va
               as                                         J   a
       em
  ch                                                                     S
S              ic
                                                                   C   S
    a nt
  m eb
Se w
                                                                        a x
       Q
         L
                                                               a j
    AR
 SP

                                                                              N
       W
           L
                                                                   S O
   O                                                           J

                                    RDFa
Metadata evolution on the web



       9 2            The World Wide Web—HTML, HTTP, URLs

 1 9            Primitive metadata, some semantics about a document                 L
                                                                            T M
           L                                                          H
  X M                                                           D
                L                                                                    pt
       T M                                                                    cr
                                                                                   i
                                                                            s
X H                                                                  va
               as                                              J   a
       em
  ch                                                                          S
S              ic
                                                                        C   S
    a nt
  m eb
Se w
                                                                             a x
       Q
         L
                                                                    a j
    AR
 SP

                                                                                   N
       W
           L
                                                                        S O
   O                                                                J

                                       RDFa
Metadata evolution on the web



       9 2            The World Wide Web—HTML, HTTP, URLs

 1 9            Primitive metadata, some semantics about a document                  L
                                                                             T M
           L                                                          H
  X M               Use of meta tags in head of HTML document
                                                                D
                L                                                                     pt
       T M                                                                     cr
                                                                                    i
                                                                             s
X H                                                                   va
               as                                               J   a
       em
  ch                                                                           S
S              ic
                                                                         C   S
    a nt
  m eb
Se w
                                                                              a x
       Q
         L
                                                                     a j
    AR
 SP

                                                                                    N
       W
           L
                                                                         S O
   O                                                                 J

                                       RDFa
Metadata evolution on the web



       9 2            The World Wide Web—HTML, HTTP, URLs

 1 9            Primitive metadata, some semantics about a document                   L
                                                                              T M
           L                                                          H
  X M               Use of meta tags in head of HTML document
                                                                 D
                L                                                                      pt
       T M          Need for standards and common vocabularies
                                                                                cr
                                                                                     i
                                                                              s
X H                                                                    va
               as                                                J   a
       em
  ch                                                                            S
S              ic
                                                                          C   S
    a nt
  m eb
Se w
                                                                               a x
       Q
         L
                                                                      a j
    AR
 SP

                                                                                     N
       W
           L
                                                                          S O
   O                                                                  J

                                       RDFa
Metadata evolution on the web



       9 2            The World Wide Web—HTML, HTTP, URLs

 1 9            Primitive metadata, some semantics about a document                   L
                                                                              T M
           L                                                          H
  X M               Use of meta tags in head of HTML document
                                                                 D
                L                                                                      pt
       T M          Need for standards and common vocabularies
                                                                                cr
                                                                                     i
                                                                              s
X H                                                                    va
               as                Early vocabularies              J   a
       em
  ch                                                                            S
S              ic
                                                                          C   S
    a nt
  m eb
Se w
                                                                               a x
       Q
         L
                                                                      a j
    AR
 SP

                                                                                     N
       W
           L
                                                                          S O
   O                                                                  J

                                       RDFa
Metadata evolution on the web



       9 2            The World Wide Web—HTML, HTTP, URLs

 1 9            Primitive metadata, some semantics about a document                   L
                                                                              T M
           L                                                          H
  X M               Use of meta tags in head of HTML document
                                                                 D
                L                                                                      pt
       T M          Need for standards and common vocabularies
                                                                                cr
                                                                                     i
                                                                              s
X H                                                                    va
               as                Early vocabularies              J   a
       em
  ch                      Resource Description Framework                        S
S              ic
                                                                          C   S
    a nt
  m eb
Se w
                                                                               a x
       Q
         L
                                                                      a j
    AR
 SP

                                                                                     N
       W
           L
                                                                          S O
   O                                                                  J

                                       RDFa
Metadata evolution on the web



       9 2            The World Wide Web—HTML, HTTP, URLs

 1 9            Primitive metadata, some semantics about a document                   L
                                                                              T M
           L                                                          H
  X M               Use of meta tags in head of HTML document
                                                                 D
                L                                                                      pt
       T M          Need for standards and common vocabularies
                                                                                cr
                                                                                     i
                                                                              s
X H                                                                    va
               as                Early vocabularies              J   a
       em
  ch                      Resource Description Framework                        S
S              ic
                                                                          C   S
    a nt
  m eb                RDF files and separate metadata records
Se w
                                                                               a x
       Q
         L
                                                                      a j
    AR
 SP

                                                                                     N
       W
           L
                                                                          S O
   O                                                                  J

                                       RDFa
Metadata evolution on the web



       9 2            The World Wide Web—HTML, HTTP, URLs

 1 9            Primitive metadata, some semantics about a document                   L
                                                                              T M
           L                                                          H
  X M               Use of meta tags in head of HTML document
                                                                 D
                L                                                                      pt
       T M          Need for standards and common vocabularies
                                                                                cr
                                                                                     i
                                                                              s
X H                                                                    va
               as                Early vocabularies              J   a
       em
  ch                      Resource Description Framework                        S
S              ic
                                                                          C   S
    a nt
  m eb                RDF files and separate metadata records
Se w
                                                                               a x
       Q
         L                        Issues with RDF                     a j
    AR
 SP

                                                                                     N
       W
           L
                                                                          S O
   O                                                                  J

                                       RDFa
Metadata evolution on the web



        9 2            The World Wide Web—HTML, HTTP, URLs

  1 9            Primitive metadata, some semantics about a document                 L
                                                                             T M
            L                                                          H
   X M               Use of meta tags in head of HTML document
                                                                  D
                 L                                                                    pt
        T M          Need for standards and common vocabularies
                                                                               cr
                                                                                    i
                                                                             s
X H                                                                     va
                as                Early vocabularies              J   a
        em
   ch                      Resource Description Framework                      S
 S              ic
                                                                  C          S
    a nt
   m eb          RDF files and separate metadata records
Se w
                                                                              a x
        Q
          L                   Issues with RDF                    a  j
      R
 S PA
       Microformats and similar grassroots driven pragmatic solutions
                                                                                    N
        W
            L
                                                                           S O
    O                                                                  J

                                        RDFa
Metadata evolution on the web



        9 2            The World Wide Web—HTML, HTTP, URLs

  1 9            Primitive metadata, some semantics about a document                 L
                                                                             T M
            L                                                          H
   X M               Use of meta tags in head of HTML document
                                                                  D
                 L                                                                    pt
        T M          Need for standards and common vocabularies
                                                                               cr
                                                                                    i
                                                                             s
X H                                                                     va
                as                Early vocabularies              J   a
        em
   ch                      Resource Description Framework                      S
 S              ic
                                                                  C          S
    a nt
   m eb          RDF files and separate metadata records
Se w
                                                                              a x
        Q
          L                   Issues with RDF                    a  j
      R
 S PA
       Microformats and similar grassroots driven pragmatic solutions
                                                                                    N
        W
            L                   Embedded metadata
                                                                           S O
    O                                                                  J

                                        RDFa
Metadata evolution on the web



        9 2            The World Wide Web—HTML, HTTP, URLs

  1 9            Primitive metadata, some semantics about a document                 L
                                                                             T M
            L                                                          H
   X M               Use of meta tags in head of HTML document
                                                                  D
                 L                                                                    pt
        T M          Need for standards and common vocabularies
                                                                               cr
                                                                                    i
                                                                             s
X H                                                                     va
                as                Early vocabularies              J   a
        em
   ch                      Resource Description Framework                      S
 S              ic
                                                                  C          S
    a nt
   m eb          RDF files and separate metadata records
Se w
                                                                              a x
        Q
          L                   Issues with RDF                    a  j
      R
 S PA
       Microformats and similar grassroots driven pragmatic solutions
                                                                                    N
        W
            L                   Embedded metadata
                                                                           S O
    O                                                                  J
                                        RDFa

                                        RDFa
What is RDFa?




                             RDFa =
     Resource Description Framework
                                    in

                           attributes




http://www.w3.org/TR/rdfa-syntax/   http://www.w3.org/TR/xhtml-rdfa-primer/
What is RDFa?




Generic model for the provision of metadata




                                   RDFa =
           Resource Description Framework
                                          in

                                 attributes




      http://www.w3.org/TR/rdfa-syntax/   http://www.w3.org/TR/xhtml-rdfa-primer/
What is RDFa?




Generic model for the provision of metadata




                                   RDFa =
           Resource Description Framework
                                          in

                                 attributes
                                                                 HTML




      http://www.w3.org/TR/rdfa-syntax/   http://www.w3.org/TR/xhtml-rdfa-primer/
Google webmaster help pages on RDFa




Marking up content using RDFa
RDFa is a way to label content to describe a specific type of
information, such as a restaurant review, an event, a person, or a
product listing. These information types are called entities. Each
entity has a number of properties.
In general, RDFa uses simple attributes in XHTML tags (usually with
<span> or <div>) to assign brief and descriptive names to entities
and properties.




   http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=146898
Entities




Entities supported by Google
i.e. Google provides a standard set of properties for each of the
following:
     ‣ person
     ‣ organisation
     ‣ event
     ‣ review
     ‣ recipe
Each corresponding set of properties, that can be assigned using
RDFa in a web page, is recognised by Google crawler/spider software
and handled in a special way when search results that include the
web page are listed (rich snippets).
The entities and properties are visible to both human readers and
computers!




    http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=99170
Google’s properties for the “person” entity




http://www.google.com/support/webmasters/bin/answer.py?answer=146646
Marking up content with RDFa (extended HTML)




The essence of RDFa...
... is to provide a set of attributes that can be used to carry metadata
in an XML language (hence the 'a' in RDFa). These attributes are:
     ‣ about—a URI or CURIE specifying the resource the metadata is about
     ‣ rel and rev—specifying a relationship or reverse-relationship with another
        resource
    ‣   href, src and resource—specifying a related resource
    ‣   property—specifying a property for the content of an element
    ‣   content—optional attribute that overrides or supplements the (HTML) content
        of the element when using the property attribute
    ‣   datatype—optional attribute that specifies the datatype of text specified with
        the property attribute
    ‣   typeof—optional attribute that specifies the type(s) of the subject (the
        resource that the metadata is about)




                            http://en.wikipedia.org/wiki/RDFa
Thinking it through...




Producing RDFa
  ‣ identify entities
  ‣ identify entity properties
  ‣ identify an appropriate source of entity and property descriptions
      (vocabulary, namespace, metadata set, schema, ontology, taxonomy—all
      used loosely interchangeably)
  ‣   markup content using RDFa HTML attributes to provide references to entity
      and property types in chosen vocabulary and the corresponding content that
      describes each entity instance and property value
  ‣   ensure nesting of markup implies correct semantic meaning




                                      RDFa
Simple RDFa web page

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:v="http://rdf.data-vocabulary.org/#">
<head profile="http://www.w3.org/1999/xhtml/vocab">
<title>Simple RDFa example</title>
</head>

<body>
<div xmlns:v="http://rdf.data-vocabulary.org/#" typeof="v:Person">

 My name is <span property="v:name">George Munroe</span>,

 also known online as <span property="v:nickname">mungeo</span>.

 I am involved in several ventures but my home web site is at:

 <a href="http://www.platypusconsultancy.com"

 rel="v:url">www.platypusconsultancy.com</a>.

 I live in

 <span rel="v:address">

 
 <span typeof="v:Address">

 
 
 <span property="v:locality">Donegal</span>,

 
 
 <span property="v:region">Ulster</span>

 
 </span>

 </span>

 and work as a <span property="v:title">consultant trainer</span>

 at <span property="v:affiliation">Netskills</span>.
</div>
</body>
</html>


                                     RDFa
CSS styles can be added in usual way—use class for <span> blocks...

<!DOCTYPE html>
<html>
<head>
<title>Simple RDFa example</title>
<meta name="description" content="A very simple RDFa web page, using Google webmaster guidelines">
<style type="text/css">
<!--
body {

             font: normal 14px Verdana, sans-serif;

             background-color: #99ccff;
}
a.url, a.url:visited {

             text-decoration: none;

             color: #ffffff;

             background-color: #000000;
}
a.url:hover {

             color: #000000;

             background-color: #ffffff;
}
.name {

             font-size: 1.5em;

             color: #119933;
}
.nickname {

             font-size: 1.5em;

             color: #993311;

             font-style: italic;
}
.address {

             font-size: 1.5em;

             color: #113399;
}
.title {

             font-size: 1.5em;

             color: #991199;
}
.affiliation {

             font-size: 1.5em;

             color: #999911;
}
-->
</style>
</head>



                                                        RDFa
RDFa markup




Get headings right, XHTML good practice,
RDFa data type dictionary
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://www.w3.org/1999/xhtml/vocab">




                   http://rdfa.info/wiki/How-to-validate
RDFa markup


Validate markup using W3C service




               http://validator.w3.org/
Practical exercise




Creating an HTML page containing RDFa
  ‣ use Notepad or a similar text editor on your PC to create the sample RDFa
      file provided by Google in the webmaster help pages, but including
      information about yourself
  ‣   use the W3C validator to check that all markup in your file is correct
  ‣   open this file with a web browser on your PC and verify that the information
      appears correctly (to human readers)
  ‣   edit your sample file to add additional properties and entities, select some
      additional sample material from the Wikipedia RDFa introduction if you have
      sufficient time to experiment
  ‣   after each edit verify that the markup is valid and that the information
      appears correctly when viewed with a web browser
RDFa markup




Most common mistakes
Not specifying the XHTML+RDFa DTD
   ‣ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://
      www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
Forgetting to declare prefix mappings
   ‣ <div xmlns:v="http://rdf.data-vocabulary.org/#" typeof="v:Person">
The about attribute should resolve to a URL
    ‣ all RDFa subjects are URLs, absolute or relative
RDFa XHTML markup should be well formed
   ‣ if a document is not well formed then parsers may have difficulty producing
      the correct output




                   http://rdfa.info/wiki/Common-publishing-mistakes
RDFa Introductory Course Session 1/4 What RDFa
RDFa Introductory Course Session 1/4 What RDFa

More Related Content

More from Platypus

Maximising Online Resource Effectiveness Workshop Session 7/8 Development str...
Maximising Online Resource Effectiveness Workshop Session 7/8 Development str...Maximising Online Resource Effectiveness Workshop Session 7/8 Development str...
Maximising Online Resource Effectiveness Workshop Session 7/8 Development str...
Platypus
 
Maximising Online Resource Effectiveness Workshop Session 8/8 Workshop roundup
Maximising Online Resource Effectiveness Workshop Session 8/8 Workshop roundupMaximising Online Resource Effectiveness Workshop Session 8/8 Workshop roundup
Maximising Online Resource Effectiveness Workshop Session 8/8 Workshop roundup
Platypus
 
Maximising Online Resource Effectiveness Workshop Session 6/8 Promotional str...
Maximising Online Resource Effectiveness Workshop Session 6/8 Promotional str...Maximising Online Resource Effectiveness Workshop Session 6/8 Promotional str...
Maximising Online Resource Effectiveness Workshop Session 6/8 Promotional str...
Platypus
 
Maximising Online Resource Effectiveness Workshop Session 5/8 Content strategy
Maximising Online Resource Effectiveness Workshop Session 5/8 Content strategyMaximising Online Resource Effectiveness Workshop Session 5/8 Content strategy
Maximising Online Resource Effectiveness Workshop Session 5/8 Content strategy
Platypus
 
Maximising Online Resource Effectiveness Workshop Session 1/8 Introduction
Maximising Online Resource Effectiveness Workshop Session 1/8 IntroductionMaximising Online Resource Effectiveness Workshop Session 1/8 Introduction
Maximising Online Resource Effectiveness Workshop Session 1/8 Introduction
Platypus
 
Maximising Online Resource Effectiveness Workshop Session 3/8 Priority issues
Maximising Online Resource Effectiveness Workshop Session 3/8 Priority issuesMaximising Online Resource Effectiveness Workshop Session 3/8 Priority issues
Maximising Online Resource Effectiveness Workshop Session 3/8 Priority issues
Platypus
 
2010 Primer
2010 Primer2010 Primer
2010 Primer
Platypus
 

More from Platypus (7)

Maximising Online Resource Effectiveness Workshop Session 7/8 Development str...
Maximising Online Resource Effectiveness Workshop Session 7/8 Development str...Maximising Online Resource Effectiveness Workshop Session 7/8 Development str...
Maximising Online Resource Effectiveness Workshop Session 7/8 Development str...
 
Maximising Online Resource Effectiveness Workshop Session 8/8 Workshop roundup
Maximising Online Resource Effectiveness Workshop Session 8/8 Workshop roundupMaximising Online Resource Effectiveness Workshop Session 8/8 Workshop roundup
Maximising Online Resource Effectiveness Workshop Session 8/8 Workshop roundup
 
Maximising Online Resource Effectiveness Workshop Session 6/8 Promotional str...
Maximising Online Resource Effectiveness Workshop Session 6/8 Promotional str...Maximising Online Resource Effectiveness Workshop Session 6/8 Promotional str...
Maximising Online Resource Effectiveness Workshop Session 6/8 Promotional str...
 
Maximising Online Resource Effectiveness Workshop Session 5/8 Content strategy
Maximising Online Resource Effectiveness Workshop Session 5/8 Content strategyMaximising Online Resource Effectiveness Workshop Session 5/8 Content strategy
Maximising Online Resource Effectiveness Workshop Session 5/8 Content strategy
 
Maximising Online Resource Effectiveness Workshop Session 1/8 Introduction
Maximising Online Resource Effectiveness Workshop Session 1/8 IntroductionMaximising Online Resource Effectiveness Workshop Session 1/8 Introduction
Maximising Online Resource Effectiveness Workshop Session 1/8 Introduction
 
Maximising Online Resource Effectiveness Workshop Session 3/8 Priority issues
Maximising Online Resource Effectiveness Workshop Session 3/8 Priority issuesMaximising Online Resource Effectiveness Workshop Session 3/8 Priority issues
Maximising Online Resource Effectiveness Workshop Session 3/8 Priority issues
 
2010 Primer
2010 Primer2010 Primer
2010 Primer
 

Recently uploaded

Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
UiPathCommunity
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Vlad Stirbu
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
Alex Pruden
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Enhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZEnhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZ
Globus
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 

Recently uploaded (20)

Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Enhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZEnhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZ
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 

RDFa Introductory Course Session 1/4 What RDFa

  • 1. Generic model for the provision of metadata RDFa = Resource Description Framework in attributes HTML What is RDFa?
  • 3. Metadata It’s all about metadata ‣ data about data ‣ many and varied versions of metadata ‣ add background information, put things in context, add value, make much more useful by showing relevance ‣ different levels of metadata—may need pointer to further information to fully explain a piece of metadata or describe how to interpret ‣ enable ways of classifying, connecting, rating, structuring, promoting, that wouldn't be possible otherwise—especially if a common "vocabulary" for the metadata terms is used RDFa
  • 4. Add meaning and context RDFa
  • 5. Add meaning and context RDFa
  • 7. Metadata Increases specificity Improves common, wide, unambiguous understanding Content becomes computable RDFa
  • 8. Benefits of having meaningful metadata Seamless use of data in a web page with desktop applications ‣ use of microformats tools to generate contact information in a web page ‣ viewing of web page containing microformats using Firefox and Operator extension: https://addons.mozilla.org/en-US/firefox/addon/4106 ‣ transfer of data in the web page to desktop address book http://microformats.org/code-tools http://en.wikipedia.org/wiki/HCard
  • 9.
  • 10.
  • 11.
  • 12. Metadata evolution on the web 9 2 The World Wide Web—HTML, HTTP, URLs 1 9 L T M L H X M D L pt T M cr i s X H va as J a em ch S S ic C S a nt m eb Se w a x Q L a j AR SP N W L S O O J RDFa
  • 13. Metadata evolution on the web 9 2 The World Wide Web—HTML, HTTP, URLs 1 9 L T M L H X M D L pt T M cr i s X H va as J a em ch S S ic C S a nt m eb Se w a x Q L a j AR SP N W L S O O J RDFa
  • 14. Metadata evolution on the web 9 2 The World Wide Web—HTML, HTTP, URLs 1 9 Primitive metadata, some semantics about a document L T M L H X M D L pt T M cr i s X H va as J a em ch S S ic C S a nt m eb Se w a x Q L a j AR SP N W L S O O J RDFa
  • 15. Metadata evolution on the web 9 2 The World Wide Web—HTML, HTTP, URLs 1 9 Primitive metadata, some semantics about a document L T M L H X M Use of meta tags in head of HTML document D L pt T M cr i s X H va as J a em ch S S ic C S a nt m eb Se w a x Q L a j AR SP N W L S O O J RDFa
  • 16. Metadata evolution on the web 9 2 The World Wide Web—HTML, HTTP, URLs 1 9 Primitive metadata, some semantics about a document L T M L H X M Use of meta tags in head of HTML document D L pt T M Need for standards and common vocabularies cr i s X H va as J a em ch S S ic C S a nt m eb Se w a x Q L a j AR SP N W L S O O J RDFa
  • 17. Metadata evolution on the web 9 2 The World Wide Web—HTML, HTTP, URLs 1 9 Primitive metadata, some semantics about a document L T M L H X M Use of meta tags in head of HTML document D L pt T M Need for standards and common vocabularies cr i s X H va as Early vocabularies J a em ch S S ic C S a nt m eb Se w a x Q L a j AR SP N W L S O O J RDFa
  • 18. Metadata evolution on the web 9 2 The World Wide Web—HTML, HTTP, URLs 1 9 Primitive metadata, some semantics about a document L T M L H X M Use of meta tags in head of HTML document D L pt T M Need for standards and common vocabularies cr i s X H va as Early vocabularies J a em ch Resource Description Framework S S ic C S a nt m eb Se w a x Q L a j AR SP N W L S O O J RDFa
  • 19. Metadata evolution on the web 9 2 The World Wide Web—HTML, HTTP, URLs 1 9 Primitive metadata, some semantics about a document L T M L H X M Use of meta tags in head of HTML document D L pt T M Need for standards and common vocabularies cr i s X H va as Early vocabularies J a em ch Resource Description Framework S S ic C S a nt m eb RDF files and separate metadata records Se w a x Q L a j AR SP N W L S O O J RDFa
  • 20. Metadata evolution on the web 9 2 The World Wide Web—HTML, HTTP, URLs 1 9 Primitive metadata, some semantics about a document L T M L H X M Use of meta tags in head of HTML document D L pt T M Need for standards and common vocabularies cr i s X H va as Early vocabularies J a em ch Resource Description Framework S S ic C S a nt m eb RDF files and separate metadata records Se w a x Q L Issues with RDF a j AR SP N W L S O O J RDFa
  • 21. Metadata evolution on the web 9 2 The World Wide Web—HTML, HTTP, URLs 1 9 Primitive metadata, some semantics about a document L T M L H X M Use of meta tags in head of HTML document D L pt T M Need for standards and common vocabularies cr i s X H va as Early vocabularies J a em ch Resource Description Framework S S ic C S a nt m eb RDF files and separate metadata records Se w a x Q L Issues with RDF a j R S PA Microformats and similar grassroots driven pragmatic solutions N W L S O O J RDFa
  • 22. Metadata evolution on the web 9 2 The World Wide Web—HTML, HTTP, URLs 1 9 Primitive metadata, some semantics about a document L T M L H X M Use of meta tags in head of HTML document D L pt T M Need for standards and common vocabularies cr i s X H va as Early vocabularies J a em ch Resource Description Framework S S ic C S a nt m eb RDF files and separate metadata records Se w a x Q L Issues with RDF a j R S PA Microformats and similar grassroots driven pragmatic solutions N W L Embedded metadata S O O J RDFa
  • 23. Metadata evolution on the web 9 2 The World Wide Web—HTML, HTTP, URLs 1 9 Primitive metadata, some semantics about a document L T M L H X M Use of meta tags in head of HTML document D L pt T M Need for standards and common vocabularies cr i s X H va as Early vocabularies J a em ch Resource Description Framework S S ic C S a nt m eb RDF files and separate metadata records Se w a x Q L Issues with RDF a j R S PA Microformats and similar grassroots driven pragmatic solutions N W L Embedded metadata S O O J RDFa RDFa
  • 24. What is RDFa? RDFa = Resource Description Framework in attributes http://www.w3.org/TR/rdfa-syntax/ http://www.w3.org/TR/xhtml-rdfa-primer/
  • 25. What is RDFa? Generic model for the provision of metadata RDFa = Resource Description Framework in attributes http://www.w3.org/TR/rdfa-syntax/ http://www.w3.org/TR/xhtml-rdfa-primer/
  • 26. What is RDFa? Generic model for the provision of metadata RDFa = Resource Description Framework in attributes HTML http://www.w3.org/TR/rdfa-syntax/ http://www.w3.org/TR/xhtml-rdfa-primer/
  • 27. Google webmaster help pages on RDFa Marking up content using RDFa RDFa is a way to label content to describe a specific type of information, such as a restaurant review, an event, a person, or a product listing. These information types are called entities. Each entity has a number of properties. In general, RDFa uses simple attributes in XHTML tags (usually with <span> or <div>) to assign brief and descriptive names to entities and properties. http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=146898
  • 28. Entities Entities supported by Google i.e. Google provides a standard set of properties for each of the following: ‣ person ‣ organisation ‣ event ‣ review ‣ recipe Each corresponding set of properties, that can be assigned using RDFa in a web page, is recognised by Google crawler/spider software and handled in a special way when search results that include the web page are listed (rich snippets). The entities and properties are visible to both human readers and computers! http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=99170
  • 29. Google’s properties for the “person” entity http://www.google.com/support/webmasters/bin/answer.py?answer=146646
  • 30. Marking up content with RDFa (extended HTML) The essence of RDFa... ... is to provide a set of attributes that can be used to carry metadata in an XML language (hence the 'a' in RDFa). These attributes are: ‣ about—a URI or CURIE specifying the resource the metadata is about ‣ rel and rev—specifying a relationship or reverse-relationship with another resource ‣ href, src and resource—specifying a related resource ‣ property—specifying a property for the content of an element ‣ content—optional attribute that overrides or supplements the (HTML) content of the element when using the property attribute ‣ datatype—optional attribute that specifies the datatype of text specified with the property attribute ‣ typeof—optional attribute that specifies the type(s) of the subject (the resource that the metadata is about) http://en.wikipedia.org/wiki/RDFa
  • 31. Thinking it through... Producing RDFa ‣ identify entities ‣ identify entity properties ‣ identify an appropriate source of entity and property descriptions (vocabulary, namespace, metadata set, schema, ontology, taxonomy—all used loosely interchangeably) ‣ markup content using RDFa HTML attributes to provide references to entity and property types in chosen vocabulary and the corresponding content that describes each entity instance and property value ‣ ensure nesting of markup implies correct semantic meaning RDFa
  • 32. Simple RDFa web page <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="http://rdf.data-vocabulary.org/#"> <head profile="http://www.w3.org/1999/xhtml/vocab"> <title>Simple RDFa example</title> </head> <body> <div xmlns:v="http://rdf.data-vocabulary.org/#" typeof="v:Person"> My name is <span property="v:name">George Munroe</span>, also known online as <span property="v:nickname">mungeo</span>. I am involved in several ventures but my home web site is at: <a href="http://www.platypusconsultancy.com" rel="v:url">www.platypusconsultancy.com</a>. I live in <span rel="v:address"> <span typeof="v:Address"> <span property="v:locality">Donegal</span>, <span property="v:region">Ulster</span> </span> </span> and work as a <span property="v:title">consultant trainer</span> at <span property="v:affiliation">Netskills</span>. </div> </body> </html> RDFa
  • 33. CSS styles can be added in usual way—use class for <span> blocks... <!DOCTYPE html> <html> <head> <title>Simple RDFa example</title> <meta name="description" content="A very simple RDFa web page, using Google webmaster guidelines"> <style type="text/css"> <!-- body { font: normal 14px Verdana, sans-serif; background-color: #99ccff; } a.url, a.url:visited { text-decoration: none; color: #ffffff; background-color: #000000; } a.url:hover { color: #000000; background-color: #ffffff; } .name { font-size: 1.5em; color: #119933; } .nickname { font-size: 1.5em; color: #993311; font-style: italic; } .address { font-size: 1.5em; color: #113399; } .title { font-size: 1.5em; color: #991199; } .affiliation { font-size: 1.5em; color: #999911; } --> </style> </head> RDFa
  • 34. RDFa markup Get headings right, XHTML good practice, RDFa data type dictionary <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head profile="http://www.w3.org/1999/xhtml/vocab"> http://rdfa.info/wiki/How-to-validate
  • 35. RDFa markup Validate markup using W3C service http://validator.w3.org/
  • 36. Practical exercise Creating an HTML page containing RDFa ‣ use Notepad or a similar text editor on your PC to create the sample RDFa file provided by Google in the webmaster help pages, but including information about yourself ‣ use the W3C validator to check that all markup in your file is correct ‣ open this file with a web browser on your PC and verify that the information appears correctly (to human readers) ‣ edit your sample file to add additional properties and entities, select some additional sample material from the Wikipedia RDFa introduction if you have sufficient time to experiment ‣ after each edit verify that the markup is valid and that the information appears correctly when viewed with a web browser
  • 37. RDFa markup Most common mistakes Not specifying the XHTML+RDFa DTD ‣ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http:// www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> Forgetting to declare prefix mappings ‣ <div xmlns:v="http://rdf.data-vocabulary.org/#" typeof="v:Person"> The about attribute should resolve to a URL ‣ all RDFa subjects are URLs, absolute or relative RDFa XHTML markup should be well formed ‣ if a document is not well formed then parsers may have difficulty producing the correct output http://rdfa.info/wiki/Common-publishing-mistakes

Editor's Notes