SlideShare a Scribd company logo
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/
How RDFa works
How RDFa works
How RDFa works
How RDFa works
How RDFa works
How RDFa works
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
How RDFa works

More Related Content

What's hot (20)

PPTX
GDG Meets U event - Big data & Wikidata - no lies codelab
CAMELIA BOBAN
 
PDF
#sod14 - ok, è un endpoint SPARQL non facciamoci prendere dal panico
Diego Valerio Camarda
 
PDF
쉽게 이해하는 LOD
Myungjin Lee
 
PPT
RDF Views of SQL Data Power Point Presentation - 1
rumito
 
PPT
Virtuoso Sponger - RDFizer Middleware for creating RDF from non RDF Data Sources
rumito
 
PDF
Introduction to RDFa
Ivan Herman
 
KEY
Linked data: spreading data over the web
shellac
 
PDF
FOAF
R A Akerkar
 
PDF
Poster - Completeness Statements about RDF Data Sources and Their Use for Qu...
Fariz Darari
 
PPTX
Saveface - Save your Facebook content as RDF data
Fuming Shih
 
PDF
Introducing JSONpedia
SpazioDati
 
PDF
RDF Transformations
Felix Ostrowski
 
KEY
Creating web applications with LODSPeaKr
Alvaro Graves
 
PPTX
4 sw architectures and sparql
Mariano Rodriguez-Muro
 
PPTX
A Little SPARQL in your Analytics
Dr. Neil Brittliff
 
PDF
Programming with LOD
Fumihiro Kato
 
PDF
DHWI Linked Open Data - Show and Tell
Georgina Goodlander
 
PDF
XSPARQL Tutorial
net2-project
 
PPTX
Linked data for librarians
trevorthornton
 
PPT
Exploring and using the Semantic Web - SSSW09 tutorial
Mathieu d'Aquin
 
GDG Meets U event - Big data & Wikidata - no lies codelab
CAMELIA BOBAN
 
#sod14 - ok, è un endpoint SPARQL non facciamoci prendere dal panico
Diego Valerio Camarda
 
쉽게 이해하는 LOD
Myungjin Lee
 
RDF Views of SQL Data Power Point Presentation - 1
rumito
 
Virtuoso Sponger - RDFizer Middleware for creating RDF from non RDF Data Sources
rumito
 
Introduction to RDFa
Ivan Herman
 
Linked data: spreading data over the web
shellac
 
Poster - Completeness Statements about RDF Data Sources and Their Use for Qu...
Fariz Darari
 
Saveface - Save your Facebook content as RDF data
Fuming Shih
 
Introducing JSONpedia
SpazioDati
 
RDF Transformations
Felix Ostrowski
 
Creating web applications with LODSPeaKr
Alvaro Graves
 
4 sw architectures and sparql
Mariano Rodriguez-Muro
 
A Little SPARQL in your Analytics
Dr. Neil Brittliff
 
Programming with LOD
Fumihiro Kato
 
DHWI Linked Open Data - Show and Tell
Georgina Goodlander
 
XSPARQL Tutorial
net2-project
 
Linked data for librarians
trevorthornton
 
Exploring and using the Semantic Web - SSSW09 tutorial
Mathieu d'Aquin
 

Viewers also liked (9)

PPTX
A Tale of Two Cities (Neil Currant)
JISC Netskills
 
PDF
Introducing digital storytelling
JISC Netskills
 
PDF
Web tools for administrators
JISC Netskills
 
PDF
Lisa Gray (JISC) ePortfolios - October 2012
JISC Netskills
 
PPTX
A quick guide to taking awesome photos
JISC Netskills
 
PDF
Digital storytelling for public engagement
JISC Netskills
 
PDF
Digital maps & data mash ups
JISC Netskills
 
PDF
Digital Storytelling (Changing the Learner Landscape event)
JISC Netskills
 
PDF
Engage 2014 going dragon hunting
JISC Netskills
 
A Tale of Two Cities (Neil Currant)
JISC Netskills
 
Introducing digital storytelling
JISC Netskills
 
Web tools for administrators
JISC Netskills
 
Lisa Gray (JISC) ePortfolios - October 2012
JISC Netskills
 
A quick guide to taking awesome photos
JISC Netskills
 
Digital storytelling for public engagement
JISC Netskills
 
Digital maps & data mash ups
JISC Netskills
 
Digital Storytelling (Changing the Learner Landscape event)
JISC Netskills
 
Engage 2014 going dragon hunting
JISC Netskills
 
Ad

Similar to How RDFa works (20)

PDF
RDFa: introduction, comparison with microdata and microformats and how to use it
Jose Luis Lopez Pino
 
PPT
Publishing data on the Semantic Web
Peter Mika
 
PDF
RDFa: introduction, comparison with microdata and microformats and how to use it
Jose Luis Lopez Pino
 
PPTX
"RDFa - what, why and how?" by Mike Hewett and Shamod Lacoul
Shamod Lacoul
 
PPTX
RDFa: an introduction
Kai Li
 
PPT
Introduction To RDF and RDFS
Nilesh Wagmare
 
PPT
Understanding RDF: the Resource Description Framework in Context (1999)
Dan Brickley
 
KEY
RDF presentation at DrupalCon San Francisco 2010
scorlosquet
 
PPTX
Hacia la Internet del Futuro: Web Semántica y Open Linked Data, Parte 2
Diego López-de-Ipiña González-de-Artaza
 
PDF
Introduction to RDF
Dr Sukhpal Singh Gill
 
ODP
Ontologies and Semantic in OpenSource projects
jgato
 
PPT
A Semantic Multimedia Web (Part 2)
Raphael Troncy
 
PPTX
NISO/DCMI Webinar: Schema.org and Linked Data: Complementary Approaches to Pu...
National Information Standards Organization (NISO)
 
PDF
Graph databases & data integration v2
Dimitris Kontokostas
 
PPT
Introduction to RDF
Narni Rajesh
 
PDF
Publishing Data Using Semantic Web Technologies
Nikolaos Konstantinou
 
PPTX
Introduction to RDF Data Model
Cesar Augusto Nogueira
 
PPTX
Sem webmaubeuge
Jose Emilio Labra Gayo
 
PPTX
Jarrar: RDFa
Mustafa Jarrar
 
PDF
Introduction to RDF & SPARQL
Open Data Support
 
RDFa: introduction, comparison with microdata and microformats and how to use it
Jose Luis Lopez Pino
 
Publishing data on the Semantic Web
Peter Mika
 
RDFa: introduction, comparison with microdata and microformats and how to use it
Jose Luis Lopez Pino
 
"RDFa - what, why and how?" by Mike Hewett and Shamod Lacoul
Shamod Lacoul
 
RDFa: an introduction
Kai Li
 
Introduction To RDF and RDFS
Nilesh Wagmare
 
Understanding RDF: the Resource Description Framework in Context (1999)
Dan Brickley
 
RDF presentation at DrupalCon San Francisco 2010
scorlosquet
 
Hacia la Internet del Futuro: Web Semántica y Open Linked Data, Parte 2
Diego López-de-Ipiña González-de-Artaza
 
Introduction to RDF
Dr Sukhpal Singh Gill
 
Ontologies and Semantic in OpenSource projects
jgato
 
A Semantic Multimedia Web (Part 2)
Raphael Troncy
 
NISO/DCMI Webinar: Schema.org and Linked Data: Complementary Approaches to Pu...
National Information Standards Organization (NISO)
 
Graph databases & data integration v2
Dimitris Kontokostas
 
Introduction to RDF
Narni Rajesh
 
Publishing Data Using Semantic Web Technologies
Nikolaos Konstantinou
 
Introduction to RDF Data Model
Cesar Augusto Nogueira
 
Sem webmaubeuge
Jose Emilio Labra Gayo
 
Jarrar: RDFa
Mustafa Jarrar
 
Introduction to RDF & SPARQL
Open Data Support
 
Ad

More from JISC Netskills (20)

PPTX
Embedding Mahara at Birmingham City University
JISC Netskills
 
PDF
Digital storytelling for the flipped classroom
JISC Netskills
 
PDF
Using free web based tools for collaborative e learning
JISC Netskills
 
PDF
QR codes - the virtual poking into the real
JISC Netskills
 
PPT
Greenevents2
JISC Netskills
 
PPT
Greeningthedatacentre
JISC Netskills
 
PPT
Suste tech
JISC Netskills
 
PPT
Proco2
JISC Netskills
 
PPT
Kit catalogue
JISC Netskills
 
PPT
Virtually sustainable
JISC Netskills
 
PPT
Ucare
JISC Netskills
 
PPT
Stor c
JISC Netskills
 
PPT
Recso
JISC Netskills
 
PPT
Open to-change
JISC Netskills
 
PPT
Ibuilding
JISC Netskills
 
PPT
Heatandlight
JISC Netskills
 
PPT
Green in-silico
JISC Netskills
 
PPT
Green ICT in London HEIs
JISC Netskills
 
PPT
ER4SeR
JISC Netskills
 
Embedding Mahara at Birmingham City University
JISC Netskills
 
Digital storytelling for the flipped classroom
JISC Netskills
 
Using free web based tools for collaborative e learning
JISC Netskills
 
QR codes - the virtual poking into the real
JISC Netskills
 
Greenevents2
JISC Netskills
 
Greeningthedatacentre
JISC Netskills
 
Suste tech
JISC Netskills
 
Kit catalogue
JISC Netskills
 
Virtually sustainable
JISC Netskills
 
Open to-change
JISC Netskills
 
Ibuilding
JISC Netskills
 
Heatandlight
JISC Netskills
 
Green in-silico
JISC Netskills
 
Green ICT in London HEIs
JISC Netskills
 

Recently uploaded (20)

PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Complete Network Protection with Real-Time Security
L4RGINDIA
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
July Patch Tuesday
Ivanti
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Complete Network Protection with Real-Time Security
L4RGINDIA
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 

How RDFa works

  • 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/
  • 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