SlideShare une entreprise Scribd logo
1  sur  25
How RDFa works
How does RDFa work
   Session 2/4
An RDFa basics tutorial by Manu Sporny




http://www.youtube.com/watch?v=ldl0m-5zLz4&feature=player_embedded
Real metadata




Resource description framework
  ‣ RDF is a generic "way" of using definitive metadata with web resources.
  ‣ RDF describes "things" (entities, defined by uniform resource identifiers,
      URIs) by assigning properties and corresponding values—statements are
      known as "triples" consisting of [subject] [predicate] [object].
  ‣   The predicate URI usually references a term in a standard metadata
      vocabulary, resulting in unambiguous meaning.
  ‣   Any part of the triple can be a URI and URIs can point to other URIs that can
      be read using HTTP and extended (or related) in other web resources, thus a
      scalable model and very flexible.




             http://www.w3.org/TR/rdf-primer/   http://www.w3.org/RDF/
RDFa distiller




Extract RDF from HTML + RDFa
W3C   service to identify and list RDF from a web page
  ‣   using web address, local file or direct text inputs
  ‣   provides “clean” view of data hierarchy
  ‣   enables simple check on markup validation *and* intended meaning




                       http://www.w3.org/2007/08/pyRdfa/
Distilled RDFa page




<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xmlns:v="http://rdf.data-vocabulary.org/#"
  xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#"
  xmlns:xml="http://www.w3.org/XML/1998/namespace"
>
  <v:Person>
    <v:nickname>mungeo</v:nickname>
    <v:address>
      <v:Address>
        <v:region>Ulster</v:region>
        <v:locality>Donegal</v:locality>
      </v:Address>
    </v:address>
    <v:url rdf:resource="http://www.platypusconsultancy.com"/>
    <v:name>George Munroe</v:name>
    <v:title>consultant trainer</v:title>
    <v:affiliation>Netskills</v:affiliation>
  </v:Person>
</rdf:RDF>




                                     RDFa
Validating the RDF extracted from an RDFa
file and exploring the data structure
  ‣ obtain a tabular description of entity classes and corresponding properties
  ‣ list inherent RDF triples
  ‣ visualise relationships with simple graphical representations




                        http://www.w3.org/RDF/Validator/
View RDF triples within RDF file




              RDFa
View graph of entities and properties




                RDFa
Practical exercise




Extracting RDF from RDFa
  ‣   open the W3C RDFa distiller service with your web browser
  ‣   use the “Distill by file upload” option, select your sample RDFa file and “Go!”
  ‣   view the page source of the output file and note the RDF tagging
  ‣   copy all of the page source of the output file (RDF)
  ‣   open the W3C RDF validation service with your web browser
  ‣   use the “Check by direct input” option and paste in your RDF source
  ‣   select “Triples and graph” from the “Display result options” section
  ‣   click the “Parse RDF” button and explore the RDF triples and graph produced
      by selecting “Grid view” and “SVG graph”
  ‣   if time permits repeat the above process with the W3C RDF primer sample
      file (http://www.w3.org/2006/07/SWD/RDFa/primer/alice-example.html)
      only use the validator directly by selecting the “Check by URI” option and
      supplying the distiller service address with the sample RDFa file in a query
      string as follows:
      http://www.w3.org/2007/08/pyRdfa/extract?uri=http://www.w3.org/2006/07/SWD/
      RDFa/primer/alice-example.html
Metadata vocabularies




The importance of shared metadata
Everyone (and every computer) must have a common understanding
of what particular entities and properties actually are
    ‣ concept of XML namespaces, used to make descriptions of entity classes and
        corresponding properties available via the web
    ‣   these descriptions supplied as RDF (or RDFa) files with a URL (URI)
And there’s more to it than just a flat list of entities and properties
   ‣ a real understanding involves being aware of the relationships between
        entity classes as well as what properties are associated with an entity
    ‣   possibly a very complex “ontology” but built very simply from triples where
        the object of one triple may be the subject of another




                                         RDFa
Namespaces




These namespaces are used to describe
entities in X number of documents
Namespaces (819 known namespaces)                   Number of documents

http://xmlns.com/foaf/0.1/                          1,261,416
http://purl.org/goodrelations/v1#                   645,210
http://blogs.yandex.ru/schema/foaf/                 584,781
http://www.w3.org/2002/07/owl#                      451,113
http://sites.wiwiss.fu-berlin.de/suhl/bi...         252,361
http://rdfs.org/sioc/ns#                            183,228
http://www.w3.org/2003/01/geo/wgs84_pos#            157,659
http://rdfs.org/sioc/types#                         117,621
http://semantic-mediawiki.org/swivt/1.0#            64,281
http://xmlns.com/foaf/spec/                         50,514




                              http://pingthesemanticweb.com/
Entities




The number of each entity type known by
pingthesemanticweb.com
Entity types (10,500 known entity types)              Count

http://xmlns.com/foaf/0.1/Person                      19,015,352
http://xmlns.com/foaf/0.1/Document                    5,115,311
http://purl.org/goodrelations/v1#Product...           1,418,899
http://purl.org/goodrelations/v1#UnitPri...           999,893
http://purl.org/goodrelations/v1#Busines...           753,812
http://purl.org/goodrelations/v1#Offerin...           644,652
http://purl.org/goodrelations/v1#TypeAnd...           626,684
http://blogs.yandex.ru/schema/foaf/Posts              585,188
http://www.w3.org/2002/07/owl#Ontology                446,664
http://purl.org/goodrelations/v1#Product...           374,456




                             http://pingthesemanticweb.com/
Exploring vocabularies




Commonly used metadata vocabularies
Google (person, organisation, review, event, recipe)
   ‣ http://rdf.data-vocabulary.org/
FOAF (Friend Of A Friend)
   ‣ http://xmlns.com/foaf/0.1/
GoodRelations (ecommerce)
   ‣ http://www.heppnetz.de/ontologies/goodrelations/v1.owl
Dublin Core (generic document)
   ‣ http://dublincore.org/2008/01/14/dcelements.rdf
Creative Commons (licensing)
   ‣ http://creativecommons.org/ns
SKOS (Simple Knowledge Organisation System)
   ‣ http://www.w3.org/2009/08/skos-reference/skos.rdf




                                     RDFa
Viewing complex vocabularies—ontologies
Use the OpenLink Data Explorer extension in Firefox




                        http://ode.openlinksw.com/
Exploring vocabularies




Digging into metadata vocabularies
Use the Firefox browser with OpenLink Data Explorer extension and/
or W3C RDF validator and grapher online service to view the following
vocabularies:
    ‣ Dublin Core at: http://dublincore.org/2008/01/14/dcelements.rdf
    ‣ GoodRelations at: http://www.heppnetz.de/ontologies/goodrelations/v1.owl
Use the pyRdfa distiller service to extract and view the RDF
vocabulary information from the following descriptions:
   ‣ FOAF at: http://xmlns.com/foaf/0.1/
   ‣ Creative Commons at: http://creativecommons.org/ns
RDFa tools




Summary of useful RDFa related tools
RDFa distiller (extract pure RDF from HTML + RDFa)
   ‣ http://www.w3.org/2007/08/pyRdfa/
   ‣ get RDF directly from http://example.com/sample.html using single address
      http://www.w3.org/2007/08/pyRdfa/extract?uri=http://example.com/sample.html

RDF validator and grapher
   ‣ http://www.w3.org/RDF/Validator/
OpenLink Data Explorer extension for Firefox
   ‣ https://addons.mozilla.org/en-US/firefox/addon/8062
List global namespaces and entities
    ‣ http://pingthesemanticweb.com/




                                       RDFa
How RDFa Works: An Introduction to the Basics
How RDFa Works: An Introduction to the Basics

Contenu connexe

Tendances

Linked Data MLA 2015
Linked Data MLA 2015Linked Data MLA 2015
Linked Data MLA 2015Cason Snow
 
Linked data MLA 2015
Linked data MLA 2015Linked data MLA 2015
Linked data MLA 2015Cason Snow
 
Participation reports webinar December 2020
Participation reports webinar December 2020Participation reports webinar December 2020
Participation reports webinar December 2020Crossref
 
Web Site Visibility in the Giant Graph of Commerce Data
Web Site Visibility in the Giant Graph of Commerce DataWeb Site Visibility in the Giant Graph of Commerce Data
Web Site Visibility in the Giant Graph of Commerce DataMartin Hepp
 
It19 20140721 linked data personal perspective
It19 20140721 linked data personal perspectiveIt19 20140721 linked data personal perspective
It19 20140721 linked data personal perspectiveJanifer Gatenby
 
Building a semantic website
Building a semantic websiteBuilding a semantic website
Building a semantic websiteCJ Jenkins
 
RDTF Metadata Guidelines: an update
RDTF Metadata Guidelines: an updateRDTF Metadata Guidelines: an update
RDTF Metadata Guidelines: an updateAndy Powell
 
Webinar: Semantic web for developers
Webinar: Semantic web for developersWebinar: Semantic web for developers
Webinar: Semantic web for developersSemantic Web Company
 
Linked Data Usecases
Linked Data UsecasesLinked Data Usecases
Linked Data UsecasesMyungjin Lee
 
Introduction to APIs and Linked Data
Introduction to APIs and Linked DataIntroduction to APIs and Linked Data
Introduction to APIs and Linked DataAdrian Stevenson
 
Introduction to the Semantic Web
Introduction to the Semantic WebIntroduction to the Semantic Web
Introduction to the Semantic WebTomek Pluskiewicz
 
A Semantic Data Model for Web Applications
A Semantic Data Model for Web ApplicationsA Semantic Data Model for Web Applications
A Semantic Data Model for Web ApplicationsArmin Haller
 
Realizing a Semantic Web Application - ICWE 2010 Tutorial
Realizing a Semantic Web Application - ICWE 2010 TutorialRealizing a Semantic Web Application - ICWE 2010 Tutorial
Realizing a Semantic Web Application - ICWE 2010 TutorialEmanuele Della Valle
 
Linked Data Modeling for Beginner
Linked Data Modeling for BeginnerLinked Data Modeling for Beginner
Linked Data Modeling for BeginnerMyungjin Lee
 
Open belgium 2015 - open tourism
Open belgium 2015 - open tourismOpen belgium 2015 - open tourism
Open belgium 2015 - open tourismRaf Buyle
 

Tendances (19)

Linked Data MLA 2015
Linked Data MLA 2015Linked Data MLA 2015
Linked Data MLA 2015
 
Linked data MLA 2015
Linked data MLA 2015Linked data MLA 2015
Linked data MLA 2015
 
Participation reports webinar December 2020
Participation reports webinar December 2020Participation reports webinar December 2020
Participation reports webinar December 2020
 
Web Site Visibility in the Giant Graph of Commerce Data
Web Site Visibility in the Giant Graph of Commerce DataWeb Site Visibility in the Giant Graph of Commerce Data
Web Site Visibility in the Giant Graph of Commerce Data
 
It19 20140721 linked data personal perspective
It19 20140721 linked data personal perspectiveIt19 20140721 linked data personal perspective
It19 20140721 linked data personal perspective
 
Library Linked Data and the Future of Bibliographic Control
Library Linked Data and the Future of Bibliographic ControlLibrary Linked Data and the Future of Bibliographic Control
Library Linked Data and the Future of Bibliographic Control
 
Building a semantic website
Building a semantic websiteBuilding a semantic website
Building a semantic website
 
NISO/DCMI Webinar: Schema.org and Linked Data: Complementary Approaches to Pu...
NISO/DCMI Webinar: Schema.org and Linked Data: Complementary Approaches to Pu...NISO/DCMI Webinar: Schema.org and Linked Data: Complementary Approaches to Pu...
NISO/DCMI Webinar: Schema.org and Linked Data: Complementary Approaches to Pu...
 
RDTF Metadata Guidelines: an update
RDTF Metadata Guidelines: an updateRDTF Metadata Guidelines: an update
RDTF Metadata Guidelines: an update
 
Webinar: Semantic web for developers
Webinar: Semantic web for developersWebinar: Semantic web for developers
Webinar: Semantic web for developers
 
Linked Data Usecases
Linked Data UsecasesLinked Data Usecases
Linked Data Usecases
 
Introduction to APIs and Linked Data
Introduction to APIs and Linked DataIntroduction to APIs and Linked Data
Introduction to APIs and Linked Data
 
Introduction to the Semantic Web
Introduction to the Semantic WebIntroduction to the Semantic Web
Introduction to the Semantic Web
 
A Semantic Data Model for Web Applications
A Semantic Data Model for Web ApplicationsA Semantic Data Model for Web Applications
A Semantic Data Model for Web Applications
 
NISO/DCMI September 25 Webinar: Implementing Linked Data in Developing Countr...
NISO/DCMI September 25 Webinar: Implementing Linked Data in Developing Countr...NISO/DCMI September 25 Webinar: Implementing Linked Data in Developing Countr...
NISO/DCMI September 25 Webinar: Implementing Linked Data in Developing Countr...
 
Linked Data
Linked DataLinked Data
Linked Data
 
Realizing a Semantic Web Application - ICWE 2010 Tutorial
Realizing a Semantic Web Application - ICWE 2010 TutorialRealizing a Semantic Web Application - ICWE 2010 Tutorial
Realizing a Semantic Web Application - ICWE 2010 Tutorial
 
Linked Data Modeling for Beginner
Linked Data Modeling for BeginnerLinked Data Modeling for Beginner
Linked Data Modeling for Beginner
 
Open belgium 2015 - open tourism
Open belgium 2015 - open tourismOpen belgium 2015 - open tourism
Open belgium 2015 - open tourism
 

Similaire à How RDFa Works: An Introduction to the Basics

SemanticWeb Nuts 'n Bolts
SemanticWeb Nuts 'n BoltsSemanticWeb Nuts 'n Bolts
SemanticWeb Nuts 'n BoltsRinke Hoekstra
 
Virtuoso Sponger - RDFizer Middleware for creating RDF from non RDF Data Sources
Virtuoso Sponger - RDFizer Middleware for creating RDF from non RDF Data SourcesVirtuoso Sponger - RDFizer Middleware for creating RDF from non RDF Data Sources
Virtuoso Sponger - RDFizer Middleware for creating RDF from non RDF Data Sourcesrumito
 
SemWeb Fundamentals - Info Linking & Layering in Practice
SemWeb Fundamentals - Info Linking & Layering in PracticeSemWeb Fundamentals - Info Linking & Layering in Practice
SemWeb Fundamentals - Info Linking & Layering in PracticeDan Brickley
 
GDG Meets U event - Big data & Wikidata - no lies codelab
GDG Meets U event - Big data & Wikidata -  no lies codelabGDG Meets U event - Big data & Wikidata -  no lies codelab
GDG Meets U event - Big data & Wikidata - no lies codelabCAMELIA BOBAN
 
LITA 2010: The Linked Library Data Cloud: it's time to stop think and start l...
LITA 2010: The Linked Library Data Cloud: it's time to stop think and start l...LITA 2010: The Linked Library Data Cloud: it's time to stop think and start l...
LITA 2010: The Linked Library Data Cloud: it's time to stop think and start l...Ross Singer
 
Linked data: spreading data over the web
Linked data: spreading data over the webLinked data: spreading data over the web
Linked data: spreading data over the webshellac
 
Getting Started With The Talis Platform
Getting Started With The Talis PlatformGetting Started With The Talis Platform
Getting Started With The Talis PlatformLeigh Dodds
 
Linked data HHS 2015
Linked data HHS 2015Linked data HHS 2015
Linked data HHS 2015Cason Snow
 
SUMMER SCHOOL LEX 2014 - RDF + SPARQL querying the web of (lex)data
SUMMER SCHOOL LEX 2014 - RDF + SPARQL querying the web of (lex)dataSUMMER SCHOOL LEX 2014 - RDF + SPARQL querying the web of (lex)data
SUMMER SCHOOL LEX 2014 - RDF + SPARQL querying the web of (lex)dataDiego Valerio Camarda
 
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIsJosef Petrák
 
Semantic Web introduction
Semantic Web introductionSemantic Web introduction
Semantic Web introductionGraphity
 
Semantic Web
Semantic WebSemantic Web
Semantic Webhardchiu
 
Linked data and rdf
Linked  data and rdfLinked  data and rdf
Linked data and rdfDaniel Nüst
 
Sparql a simple knowledge query
Sparql  a simple knowledge querySparql  a simple knowledge query
Sparql a simple knowledge queryStanley Wang
 

Similaire à How RDFa Works: An Introduction to the Basics (20)

SemanticWeb Nuts 'n Bolts
SemanticWeb Nuts 'n BoltsSemanticWeb Nuts 'n Bolts
SemanticWeb Nuts 'n Bolts
 
Virtuoso Sponger - RDFizer Middleware for creating RDF from non RDF Data Sources
Virtuoso Sponger - RDFizer Middleware for creating RDF from non RDF Data SourcesVirtuoso Sponger - RDFizer Middleware for creating RDF from non RDF Data Sources
Virtuoso Sponger - RDFizer Middleware for creating RDF from non RDF Data Sources
 
SemWeb Fundamentals - Info Linking & Layering in Practice
SemWeb Fundamentals - Info Linking & Layering in PracticeSemWeb Fundamentals - Info Linking & Layering in Practice
SemWeb Fundamentals - Info Linking & Layering in Practice
 
RDFa Tutorial
RDFa TutorialRDFa Tutorial
RDFa Tutorial
 
GDG Meets U event - Big data & Wikidata - no lies codelab
GDG Meets U event - Big data & Wikidata -  no lies codelabGDG Meets U event - Big data & Wikidata -  no lies codelab
GDG Meets U event - Big data & Wikidata - no lies codelab
 
RDFauthor (EKAW)
RDFauthor (EKAW)RDFauthor (EKAW)
RDFauthor (EKAW)
 
LITA 2010: The Linked Library Data Cloud: it's time to stop think and start l...
LITA 2010: The Linked Library Data Cloud: it's time to stop think and start l...LITA 2010: The Linked Library Data Cloud: it's time to stop think and start l...
LITA 2010: The Linked Library Data Cloud: it's time to stop think and start l...
 
Linked data: spreading data over the web
Linked data: spreading data over the webLinked data: spreading data over the web
Linked data: spreading data over the web
 
Data in RDF
Data in RDFData in RDF
Data in RDF
 
Getting Started With The Talis Platform
Getting Started With The Talis PlatformGetting Started With The Talis Platform
Getting Started With The Talis Platform
 
Linked data HHS 2015
Linked data HHS 2015Linked data HHS 2015
Linked data HHS 2015
 
SUMMER SCHOOL LEX 2014 - RDF + SPARQL querying the web of (lex)data
SUMMER SCHOOL LEX 2014 - RDF + SPARQL querying the web of (lex)dataSUMMER SCHOOL LEX 2014 - RDF + SPARQL querying the web of (lex)data
SUMMER SCHOOL LEX 2014 - RDF + SPARQL querying the web of (lex)data
 
Hacia la Internet del Futuro: Web Semántica y Open Linked Data, Parte 2
Hacia la Internet del Futuro: Web Semántica y Open Linked Data, Parte 2Hacia la Internet del Futuro: Web Semántica y Open Linked Data, Parte 2
Hacia la Internet del Futuro: Web Semántica y Open Linked Data, Parte 2
 
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
 
Semantic Web introduction
Semantic Web introductionSemantic Web introduction
Semantic Web introduction
 
Biodiversity Informatics on the Semantic Web
Biodiversity Informatics on the Semantic WebBiodiversity Informatics on the Semantic Web
Biodiversity Informatics on the Semantic Web
 
Semantic Web
Semantic WebSemantic Web
Semantic Web
 
Danbri Drupalcon Export
Danbri Drupalcon ExportDanbri Drupalcon Export
Danbri Drupalcon Export
 
Linked data and rdf
Linked  data and rdfLinked  data and rdf
Linked data and rdf
 
Sparql a simple knowledge query
Sparql  a simple knowledge querySparql  a simple knowledge query
Sparql a simple knowledge query
 

Plus de Platypus

Maximising Institutional Webmaster Impact
Maximising Institutional Webmaster ImpactMaximising Institutional Webmaster Impact
Maximising Institutional Webmaster ImpactPlatypus
 
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 4/8 Using the socia...
Maximising Online Resource Effectiveness Workshop Session 4/8 Using the socia...Maximising Online Resource Effectiveness Workshop Session 4/8 Using the socia...
Maximising Online Resource Effectiveness Workshop Session 4/8 Using the socia...Platypus
 
RDFa Introductory Course Session 1/4 What RDFa
RDFa Introductory Course Session 1/4 What RDFaRDFa Introductory Course Session 1/4 What RDFa
RDFa Introductory Course Session 1/4 What RDFaPlatypus
 
RDFa Introductory Course Session 4/4 When RDFa
RDFa Introductory Course Session 4/4 When RDFaRDFa Introductory Course Session 4/4 When RDFa
RDFa Introductory Course Session 4/4 When RDFaPlatypus
 
Maximising Online Resource Effectiveness Workshop Session 2/8 Conventional SE...
Maximising Online Resource Effectiveness Workshop Session 2/8 Conventional SE...Maximising Online Resource Effectiveness Workshop Session 2/8 Conventional SE...
Maximising Online Resource Effectiveness Workshop Session 2/8 Conventional SE...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 roundupPlatypus
 
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 4/8 Using the socia...
Maximising Online Resource Effectiveness Workshop Session 4/8 Using the socia...Maximising Online Resource Effectiveness Workshop Session 4/8 Using the socia...
Maximising Online Resource Effectiveness Workshop Session 4/8 Using the socia...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 IntroductionPlatypus
 
2010 Primer
2010 Primer2010 Primer
2010 PrimerPlatypus
 

Plus de Platypus (12)

Maximising Institutional Webmaster Impact
Maximising Institutional Webmaster ImpactMaximising Institutional Webmaster Impact
Maximising Institutional Webmaster Impact
 
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 4/8 Using the socia...
Maximising Online Resource Effectiveness Workshop Session 4/8 Using the socia...Maximising Online Resource Effectiveness Workshop Session 4/8 Using the socia...
Maximising Online Resource Effectiveness Workshop Session 4/8 Using the socia...
 
RDFa Introductory Course Session 1/4 What RDFa
RDFa Introductory Course Session 1/4 What RDFaRDFa Introductory Course Session 1/4 What RDFa
RDFa Introductory Course Session 1/4 What RDFa
 
RDFa Introductory Course Session 4/4 When RDFa
RDFa Introductory Course Session 4/4 When RDFaRDFa Introductory Course Session 4/4 When RDFa
RDFa Introductory Course Session 4/4 When RDFa
 
Maximising Online Resource Effectiveness Workshop Session 2/8 Conventional SE...
Maximising Online Resource Effectiveness Workshop Session 2/8 Conventional SE...Maximising Online Resource Effectiveness Workshop Session 2/8 Conventional SE...
Maximising Online Resource Effectiveness Workshop Session 2/8 Conventional SE...
 
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 4/8 Using the socia...
Maximising Online Resource Effectiveness Workshop Session 4/8 Using the socia...Maximising Online Resource Effectiveness Workshop Session 4/8 Using the socia...
Maximising Online Resource Effectiveness Workshop Session 4/8 Using the socia...
 
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
 
2010 Primer
2010 Primer2010 Primer
2010 Primer
 

Dernier

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 

Dernier (20)

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 

How RDFa Works: An Introduction to the Basics

  • 2. How does RDFa work Session 2/4
  • 3. An RDFa basics tutorial by Manu Sporny http://www.youtube.com/watch?v=ldl0m-5zLz4&feature=player_embedded
  • 4. Real metadata Resource description framework ‣ RDF is a generic "way" of using definitive metadata with web resources. ‣ RDF describes "things" (entities, defined by uniform resource identifiers, URIs) by assigning properties and corresponding values—statements are known as "triples" consisting of [subject] [predicate] [object]. ‣ The predicate URI usually references a term in a standard metadata vocabulary, resulting in unambiguous meaning. ‣ Any part of the triple can be a URI and URIs can point to other URIs that can be read using HTTP and extended (or related) in other web resources, thus a scalable model and very flexible. http://www.w3.org/TR/rdf-primer/ http://www.w3.org/RDF/
  • 5. RDFa distiller Extract RDF from HTML + RDFa W3C service to identify and list RDF from a web page ‣ using web address, local file or direct text inputs ‣ provides “clean” view of data hierarchy ‣ enables simple check on markup validation *and* intended meaning http://www.w3.org/2007/08/pyRdfa/
  • 6. Distilled RDFa page <?xml version="1.0" encoding="utf-8"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:v="http://rdf.data-vocabulary.org/#" xmlns:xhv="http://www.w3.org/1999/xhtml/vocab#" xmlns:xml="http://www.w3.org/XML/1998/namespace" > <v:Person> <v:nickname>mungeo</v:nickname> <v:address> <v:Address> <v:region>Ulster</v:region> <v:locality>Donegal</v:locality> </v:Address> </v:address> <v:url rdf:resource="http://www.platypusconsultancy.com"/> <v:name>George Munroe</v:name> <v:title>consultant trainer</v:title> <v:affiliation>Netskills</v:affiliation> </v:Person> </rdf:RDF> RDFa
  • 7. Validating the RDF extracted from an RDFa file and exploring the data structure ‣ obtain a tabular description of entity classes and corresponding properties ‣ list inherent RDF triples ‣ visualise relationships with simple graphical representations http://www.w3.org/RDF/Validator/
  • 8. View RDF triples within RDF file RDFa
  • 9. View graph of entities and properties RDFa
  • 10. Practical exercise Extracting RDF from RDFa ‣ open the W3C RDFa distiller service with your web browser ‣ use the “Distill by file upload” option, select your sample RDFa file and “Go!” ‣ view the page source of the output file and note the RDF tagging ‣ copy all of the page source of the output file (RDF) ‣ open the W3C RDF validation service with your web browser ‣ use the “Check by direct input” option and paste in your RDF source ‣ select “Triples and graph” from the “Display result options” section ‣ click the “Parse RDF” button and explore the RDF triples and graph produced by selecting “Grid view” and “SVG graph” ‣ if time permits repeat the above process with the W3C RDF primer sample file (http://www.w3.org/2006/07/SWD/RDFa/primer/alice-example.html) only use the validator directly by selecting the “Check by URI” option and supplying the distiller service address with the sample RDFa file in a query string as follows: http://www.w3.org/2007/08/pyRdfa/extract?uri=http://www.w3.org/2006/07/SWD/ RDFa/primer/alice-example.html
  • 11. Metadata vocabularies The importance of shared metadata Everyone (and every computer) must have a common understanding of what particular entities and properties actually are ‣ concept of XML namespaces, used to make descriptions of entity classes and corresponding properties available via the web ‣ these descriptions supplied as RDF (or RDFa) files with a URL (URI) And there’s more to it than just a flat list of entities and properties ‣ a real understanding involves being aware of the relationships between entity classes as well as what properties are associated with an entity ‣ possibly a very complex “ontology” but built very simply from triples where the object of one triple may be the subject of another RDFa
  • 12. Namespaces These namespaces are used to describe entities in X number of documents Namespaces (819 known namespaces) Number of documents http://xmlns.com/foaf/0.1/ 1,261,416 http://purl.org/goodrelations/v1# 645,210 http://blogs.yandex.ru/schema/foaf/ 584,781 http://www.w3.org/2002/07/owl# 451,113 http://sites.wiwiss.fu-berlin.de/suhl/bi... 252,361 http://rdfs.org/sioc/ns# 183,228 http://www.w3.org/2003/01/geo/wgs84_pos# 157,659 http://rdfs.org/sioc/types# 117,621 http://semantic-mediawiki.org/swivt/1.0# 64,281 http://xmlns.com/foaf/spec/ 50,514 http://pingthesemanticweb.com/
  • 13. Entities The number of each entity type known by pingthesemanticweb.com Entity types (10,500 known entity types) Count http://xmlns.com/foaf/0.1/Person 19,015,352 http://xmlns.com/foaf/0.1/Document 5,115,311 http://purl.org/goodrelations/v1#Product... 1,418,899 http://purl.org/goodrelations/v1#UnitPri... 999,893 http://purl.org/goodrelations/v1#Busines... 753,812 http://purl.org/goodrelations/v1#Offerin... 644,652 http://purl.org/goodrelations/v1#TypeAnd... 626,684 http://blogs.yandex.ru/schema/foaf/Posts 585,188 http://www.w3.org/2002/07/owl#Ontology 446,664 http://purl.org/goodrelations/v1#Product... 374,456 http://pingthesemanticweb.com/
  • 14. Exploring vocabularies Commonly used metadata vocabularies Google (person, organisation, review, event, recipe) ‣ http://rdf.data-vocabulary.org/ FOAF (Friend Of A Friend) ‣ http://xmlns.com/foaf/0.1/ GoodRelations (ecommerce) ‣ http://www.heppnetz.de/ontologies/goodrelations/v1.owl Dublin Core (generic document) ‣ http://dublincore.org/2008/01/14/dcelements.rdf Creative Commons (licensing) ‣ http://creativecommons.org/ns SKOS (Simple Knowledge Organisation System) ‣ http://www.w3.org/2009/08/skos-reference/skos.rdf RDFa
  • 15. Viewing complex vocabularies—ontologies Use the OpenLink Data Explorer extension in Firefox http://ode.openlinksw.com/
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22. Exploring vocabularies Digging into metadata vocabularies Use the Firefox browser with OpenLink Data Explorer extension and/ or W3C RDF validator and grapher online service to view the following vocabularies: ‣ Dublin Core at: http://dublincore.org/2008/01/14/dcelements.rdf ‣ GoodRelations at: http://www.heppnetz.de/ontologies/goodrelations/v1.owl Use the pyRdfa distiller service to extract and view the RDF vocabulary information from the following descriptions: ‣ FOAF at: http://xmlns.com/foaf/0.1/ ‣ Creative Commons at: http://creativecommons.org/ns
  • 23. RDFa tools Summary of useful RDFa related tools RDFa distiller (extract pure RDF from HTML + RDFa) ‣ http://www.w3.org/2007/08/pyRdfa/ ‣ get RDF directly from http://example.com/sample.html using single address http://www.w3.org/2007/08/pyRdfa/extract?uri=http://example.com/sample.html RDF validator and grapher ‣ http://www.w3.org/RDF/Validator/ OpenLink Data Explorer extension for Firefox ‣ https://addons.mozilla.org/en-US/firefox/addon/8062 List global namespaces and entities ‣ http://pingthesemanticweb.com/ RDFa

Notes de l'éditeur