SlideShare uma empresa Scribd logo
1 de 29
RDF/XMLA brief introduction Alison Hunt      March 26, 2011 for LIS469 XML
RDF/XML is a data format It represents information  for a data model  called RDF
RDFResource Description Frameworkis a data model It structures metadata  for the Semantic Web and the RDA content standard (resource description and access)
RDFdescribes a resource LIS469 Class Blog
A resource has properties creator language LIS469 Class Blog format subject
Properties have values creator language LIS469 Class Blog format subject
RDFdescriptions make statements The LIS469 class blog was created by Aaron Rubinstein. The LIS469 class blog is written in English. The LIS469 class blog is formatted as text/HTML. The LIS469 class blog is about the subject of XML.
RDFstatements are triples Resource Subject LIS469 class blog LIS469 class blog LIS469 class blog LIS469 class blog Property Predicate Creator Language Format Subject Value Object Aaron Rubinstein English Text/HTML XML
RDF statements link two things in one direction. Node LIS469 class blog LIS469 class blog LIS469 class blog LIS469 class blog Arc Creator Language Format Subject Node Aaron Rubinstein English Text/HTML XML
RDF statements link two things in one direction. Properties may have multiple values. RDF has several ways to model this: blank nodes, bags, collections, etc. However, the end result will be a set of triples  which link the subject with each value.
RDF statements require URIs that have meaning for computer applications Resource Must be a URI <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> Here, the blog URL replaces its name
RDF Shines By using URIs,  RDF can describe things that  cannot be located or retrieved on the web. People, institutions, cars, concepts…anything. FRBR works,  expressions or manifestations Tiger Lily collective amnesia
RDF statements require URIs for properties Resource Must be a URI <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> Property Must be a URI <http://purl.org/dc/elements/1.1/creator> <http://purl.org/dc/elements/1.1/language> <http://purl.org/dc/elements/1.1/format> <http://purl.org/dc/elements/1.1/subject> Here, Dublin Core URIs are used for the property
Values can be URIs or literal strings of characters Resource Must be a URI <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> Property Must be a URI <http://purl.org/dc/elements/1.1/creator> <http://purl.org/dc/elements/1.1/language> <http://purl.org/dc/elements/1.1/format> <http://purl.org/dc/elements/1.1/subject> Value Can be URI or literal Aaron Rubinstein English Text/html <http://id.loc.gov/authorities/sh97007825#concept> Here, XML is identified by a URI  from Library of Congress Subject Headings
RDF graph with URIs Note: RDF graphs show literals in a box URIs in an oval We are using a URI as the value of the subject property. So the graph changes from box to oval. This actually indicates a really significant change… <http://purl.org/dc/elements/1.1/creator> <http://purl.org/dc/elements/1.1/language> <http://lis469.wordpress.com/> <http://purl.org/dc/elements/1.1/format> <http://purl.org/dc/elements/1.1/subject>
A value with a URI can be the subject of other statements <http://purl.org/dc/elements/1.1/creator> <http://purl.org/dc/elements/1.1/language> <http://purl.org/dc/elements/1.1/format> <http://purl.org/dc/elements/1.1/subject> Library  of Congress <http://purl.org/dc/elements/1.1/creator>
RDF links stuff!
RDF shines It is easy  to work across  different data sources, types and formats. RDF can link things  by tapping massive databases of RDF statements called "triplestores." There are more than 27 billion triples stored now.
RDF/XML is a data format 001111000010100010000100010010001111000000000011110000000111111111100000000000111111111110000000000011 XML document serializes  the RDF graph so it can be processed by computers for storage and transmission
RDF expressed as XML RDF XML Class Blog Creator 	Aaron Rubinstein Language 	English Format 	Text-HTML Subject 	XML URI The XML format is closed; it will not link like the RDF graph does.
Starting the RDF/XML file RDF RDF is the root element The rdf: prefix is from the rdf namespace We are also using Dublin Core elements XML <?xml version="1.0"?> <rdf:RDF xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# xmlns:dc=http://purl.org/dc/elements/1.1/>
Where is the resource named? RDF Each resource being described is tagged with the RDF element <description> The about attribute spells out the URI Of the resource that is the subject of the RDF statement XML <?xml version="1.0"?> <rdf:RDF xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# xmlns:dc=http://purl.org/dc/elements/1.1/> <rdf:Description Rdf:about="http://lis469.wordpress.com/">
Properties and values? RDF Properties become child elements of Description. They appear as tags. Literal RDF values become the value of those child elements, between opening and closing tags. When RDF values are expressed as URIs,  they become an attribute, called "resource,"  of the child element. XML <?xml version="1.0"?> <rdf:RDF xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# xmlns:dc=http://purl.org/dc/elements/1.1/> <rdf:Description Rdf:about="http://lis469.wordpress.com/"> <dc:creator>Aaron Rubinstein</dc:creator> <dc:language>English</dc:language> <dc:format>text/HTML</dc:format> <dc:subjectrdf:resource=" http://id.loc.gov/authorities/sh97007825#concept "/> </rdf:Description> </rdf:RDF>
But properties should be URIs! Namespace declarations generate full URIs  for each property dc: 	is equivalent to 	http://purl.org/dc/elements/1.1/ <dc:format>text/HTML</dc:format> is processed as <http://purl.org/dc/elements/1.1/ format> text/HTML </ <http://purl.org/dc/elements/1.1/ format>
RDF expressed as XML RDF XML <?xml version="1.0"?> <rdf:RDF xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# xmlns:dc=http://purl.org/dc/elements/1.1/> <rdf:Description Rdf:about="http://lis469.wordpress.com/"> <dc:creator>Aaron Rubinstein</dc:creator> <dc:language>English</dc:language> <dc:format>text/HTML</dc:format> <dc:subjectrdf:resource=" http://id.loc.gov/authorities/sh97007825#concept "/> </rdf:Description> </rdf:RDF>
RDF/XML is not the only choice PROS RDF/XML is the syntax primarily  used by the W3C from the start It plays well with the family of XML technologies. XML uses namespaces and can tag (i.e. express RDF properties) with ultimate flexibility. CONS RDF/XML files are hard for people to read. Namespaces don't always behave the way we expect Most of the developers who have to actually generate linked data find RDF/XML clunky	 RDF/XML obscures triples
Other RDF data formats are RDFa Embeds RDF metadata in html.  Part of Drupal7. TURTLE Very easy for people to read.  Preserves RDF triples. JSON Supported by major web applications like JavaScript, so easy to process and familiar to developer community.
You should know W3C is overhauling its RDF recommendations http://www.w3.org/2011/01/rdf-wg-charter You can create your own personal URI http://www.foaf-project.org/ For a great overview, skim the new e-book Linked Data: Evolving the Web into a Global Data Space http://linkeddatabook.com/editions/1.0 DBPedia is the hub of RDF-linked data http://dbpedia.org/About
The Linked World Linking Open Data cloud diagram, by Richard Cyganiak and AnjaJentzsch. http://lod-cloud.net/

Mais conteúdo relacionado

Mais procurados

Introduction To RDF and RDFS
Introduction To RDF and RDFSIntroduction To RDF and RDFS
Introduction To RDF and RDFSNilesh Wagmare
 
Efficient Query Answering against Dynamic RDF Databases
Efficient Query Answering against Dynamic RDF DatabasesEfficient Query Answering against Dynamic RDF Databases
Efficient Query Answering against Dynamic RDF DatabasesAlexandra Roatiș
 
Reimagining Serials: Small Steps toward a Linked Data Future
Reimagining Serials: Small Steps toward a Linked Data FutureReimagining Serials: Small Steps toward a Linked Data Future
Reimagining Serials: Small Steps toward a Linked Data FutureNASIG
 
Reimagining serials: Small steps toward a linked data future
Reimagining serials: Small steps toward a linked data futureReimagining serials: Small steps toward a linked data future
Reimagining serials: Small steps toward a linked data futureKevin Balster
 
Debunking some “RDF vs. Property Graph” Alternative Facts
Debunking some “RDF vs. Property Graph” Alternative FactsDebunking some “RDF vs. Property Graph” Alternative Facts
Debunking some “RDF vs. Property Graph” Alternative FactsNeo4j
 
18 ° Nexa Lunch Seminar - Lo stato dell'arte dei Linked Open Data italiani
18 ° Nexa Lunch Seminar - Lo stato dell'arte dei Linked Open Data italiani18 ° Nexa Lunch Seminar - Lo stato dell'arte dei Linked Open Data italiani
18 ° Nexa Lunch Seminar - Lo stato dell'arte dei Linked Open Data italianiDiego Valerio Camarda
 
#sod14 - ok, è un endpoint SPARQL non facciamoci prendere dal panico
#sod14 - ok, è un endpoint SPARQL non facciamoci prendere dal panico#sod14 - ok, è un endpoint SPARQL non facciamoci prendere dal panico
#sod14 - ok, è un endpoint SPARQL non facciamoci prendere dal panicoDiego Valerio Camarda
 
Find your way in Graph labyrinths
Find your way in Graph labyrinthsFind your way in Graph labyrinths
Find your way in Graph labyrinthsDaniel Camarda
 
Special Topics: Authority Control and Creating Access Points
Special Topics: Authority Control and Creating Access PointsSpecial Topics: Authority Control and Creating Access Points
Special Topics: Authority Control and Creating Access PointsALAeLearningSolutions
 
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
 
Two graph data models : RDF and Property Graphs
Two graph data models : RDF and Property GraphsTwo graph data models : RDF and Property Graphs
Two graph data models : RDF and Property Graphsandyseaborne
 
SPARQL Query Forms
SPARQL Query FormsSPARQL Query Forms
SPARQL Query FormsLeigh Dodds
 
Python Data types properties
Python Data types propertiesPython Data types properties
Python Data types propertiesjyostna bodapati
 

Mais procurados (20)

Introduction To RDF and RDFS
Introduction To RDF and RDFSIntroduction To RDF and RDFS
Introduction To RDF and RDFS
 
Efficient Query Answering against Dynamic RDF Databases
Efficient Query Answering against Dynamic RDF DatabasesEfficient Query Answering against Dynamic RDF Databases
Efficient Query Answering against Dynamic RDF Databases
 
Tutorial Linked APIs
Tutorial Linked APIsTutorial Linked APIs
Tutorial Linked APIs
 
Reimagining Serials: Small Steps toward a Linked Data Future
Reimagining Serials: Small Steps toward a Linked Data FutureReimagining Serials: Small Steps toward a Linked Data Future
Reimagining Serials: Small Steps toward a Linked Data Future
 
Reimagining serials: Small steps toward a linked data future
Reimagining serials: Small steps toward a linked data futureReimagining serials: Small steps toward a linked data future
Reimagining serials: Small steps toward a linked data future
 
Jesús Barrasa
Jesús BarrasaJesús Barrasa
Jesús Barrasa
 
Debunking some “RDF vs. Property Graph” Alternative Facts
Debunking some “RDF vs. Property Graph” Alternative FactsDebunking some “RDF vs. Property Graph” Alternative Facts
Debunking some “RDF vs. Property Graph” Alternative Facts
 
18 ° Nexa Lunch Seminar - Lo stato dell'arte dei Linked Open Data italiani
18 ° Nexa Lunch Seminar - Lo stato dell'arte dei Linked Open Data italiani18 ° Nexa Lunch Seminar - Lo stato dell'arte dei Linked Open Data italiani
18 ° Nexa Lunch Seminar - Lo stato dell'arte dei Linked Open Data italiani
 
Ist16-04 An introduction to RDF
Ist16-04 An introduction to RDF Ist16-04 An introduction to RDF
Ist16-04 An introduction to RDF
 
#sod14 - ok, è un endpoint SPARQL non facciamoci prendere dal panico
#sod14 - ok, è un endpoint SPARQL non facciamoci prendere dal panico#sod14 - ok, è un endpoint SPARQL non facciamoci prendere dal panico
#sod14 - ok, è un endpoint SPARQL non facciamoci prendere dal panico
 
Ontologies in RDF-S/OWL
Ontologies in RDF-S/OWLOntologies in RDF-S/OWL
Ontologies in RDF-S/OWL
 
Find your way in Graph labyrinths
Find your way in Graph labyrinthsFind your way in Graph labyrinths
Find your way in Graph labyrinths
 
Xml Overview
Xml OverviewXml Overview
Xml Overview
 
Keynote session - LOD2014 W3C event
Keynote session - LOD2014 W3C eventKeynote session - LOD2014 W3C event
Keynote session - LOD2014 W3C event
 
Special Topics: Authority Control and Creating Access Points
Special Topics: Authority Control and Creating Access PointsSpecial Topics: Authority Control and Creating Access Points
Special Topics: Authority Control and Creating Access Points
 
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
 
Two graph data models : RDF and Property Graphs
Two graph data models : RDF and Property GraphsTwo graph data models : RDF and Property Graphs
Two graph data models : RDF and Property Graphs
 
RDA
RDA RDA
RDA
 
SPARQL Query Forms
SPARQL Query FormsSPARQL Query Forms
SPARQL Query Forms
 
Python Data types properties
Python Data types propertiesPython Data types properties
Python Data types properties
 

Semelhante a 469 talk

SemanticWeb Nuts 'n Bolts
SemanticWeb Nuts 'n BoltsSemanticWeb Nuts 'n Bolts
SemanticWeb Nuts 'n BoltsRinke Hoekstra
 
ontology.ppt
ontology.pptontology.ppt
ontology.pptPrerak10
 
Epiphany: Adaptable RDFa Generation Linking the Web of Documents to the Web o...
Epiphany: Adaptable RDFa Generation Linking the Web of Documents to the Web o...Epiphany: Adaptable RDFa Generation Linking the Web of Documents to the Web o...
Epiphany: Adaptable RDFa Generation Linking the Web of Documents to the Web o...Benjamin Adrian
 
Getting Started With The Talis Platform
Getting Started With The Talis PlatformGetting Started With The Talis Platform
Getting Started With The Talis PlatformLeigh Dodds
 
An introduction to Semantic Web and Linked Data
An introduction to Semantic Web and Linked DataAn introduction to Semantic Web and Linked Data
An introduction to Semantic Web and Linked DataGabriela Agustini
 
W3C Tutorial on Semantic Web and Linked Data at WWW 2013
W3C Tutorial on Semantic Web and Linked Data at WWW 2013W3C Tutorial on Semantic Web and Linked Data at WWW 2013
W3C Tutorial on Semantic Web and Linked Data at WWW 2013Fabien Gandon
 
An introduction to Semantic Web and Linked Data
An introduction to Semantic  Web and Linked DataAn introduction to Semantic  Web and Linked Data
An introduction to Semantic Web and Linked DataGabriela Agustini
 
Semantic Web
Semantic WebSemantic Web
Semantic Webhardchiu
 
Ks2007 Semanticweb In Action
Ks2007 Semanticweb In ActionKs2007 Semanticweb In Action
Ks2007 Semanticweb In ActionRinke Hoekstra
 
RDFa Introductory Course Session 2/4 How RDFa
RDFa Introductory Course Session 2/4 How RDFaRDFa Introductory Course Session 2/4 How RDFa
RDFa Introductory Course Session 2/4 How RDFaPlatypus
 
Facet: Building Web Pages with SPARQL
Facet: Building Web Pages with SPARQLFacet: Building Web Pages with SPARQL
Facet: Building Web Pages with SPARQLLeigh Dodds
 
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
 
Culture Geeks Feb talk: Adventures in Linked Data Land
Culture Geeks Feb talk: Adventures in Linked Data LandCulture Geeks Feb talk: Adventures in Linked Data Land
Culture Geeks Feb talk: Adventures in Linked Data Landval.cartei
 
The Semantic Web #9 - Web Ontology Language (OWL)
The Semantic Web #9 - Web Ontology Language (OWL)The Semantic Web #9 - Web Ontology Language (OWL)
The Semantic Web #9 - Web Ontology Language (OWL)Myungjin Lee
 

Semelhante a 469 talk (20)

SemanticWeb Nuts 'n Bolts
SemanticWeb Nuts 'n BoltsSemanticWeb Nuts 'n Bolts
SemanticWeb Nuts 'n Bolts
 
XML Bible
XML BibleXML Bible
XML Bible
 
ontology.ppt
ontology.pptontology.ppt
ontology.ppt
 
Epiphany: Adaptable RDFa Generation Linking the Web of Documents to the Web o...
Epiphany: Adaptable RDFa Generation Linking the Web of Documents to the Web o...Epiphany: Adaptable RDFa Generation Linking the Web of Documents to the Web o...
Epiphany: Adaptable RDFa Generation Linking the Web of Documents to the Web o...
 
Getting Started With The Talis Platform
Getting Started With The Talis PlatformGetting Started With The Talis Platform
Getting Started With The Talis Platform
 
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
 
An introduction to Semantic Web and Linked Data
An introduction to Semantic Web and Linked DataAn introduction to Semantic Web and Linked Data
An introduction to Semantic Web and Linked Data
 
W3C Tutorial on Semantic Web and Linked Data at WWW 2013
W3C Tutorial on Semantic Web and Linked Data at WWW 2013W3C Tutorial on Semantic Web and Linked Data at WWW 2013
W3C Tutorial on Semantic Web and Linked Data at WWW 2013
 
An introduction to Semantic Web and Linked Data
An introduction to Semantic  Web and Linked DataAn introduction to Semantic  Web and Linked Data
An introduction to Semantic Web and Linked Data
 
Semantic Web
Semantic WebSemantic Web
Semantic Web
 
W3 C Specification For Interoperability And Accessibility For Ajax, Dhtml, Xm...
W3 C Specification For Interoperability And Accessibility For Ajax, Dhtml, Xm...W3 C Specification For Interoperability And Accessibility For Ajax, Dhtml, Xm...
W3 C Specification For Interoperability And Accessibility For Ajax, Dhtml, Xm...
 
Ks2007 Semanticweb In Action
Ks2007 Semanticweb In ActionKs2007 Semanticweb In Action
Ks2007 Semanticweb In Action
 
RDFa Introductory Course Session 2/4 How RDFa
RDFa Introductory Course Session 2/4 How RDFaRDFa Introductory Course Session 2/4 How RDFa
RDFa Introductory Course Session 2/4 How RDFa
 
How RDFa works
How RDFa worksHow RDFa works
How RDFa works
 
Web 3 0
Web 3 0Web 3 0
Web 3 0
 
Aall denver 2010
Aall denver 2010Aall denver 2010
Aall denver 2010
 
Facet: Building Web Pages with SPARQL
Facet: Building Web Pages with SPARQLFacet: Building Web Pages with SPARQL
Facet: Building Web Pages with SPARQL
 
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
 
Culture Geeks Feb talk: Adventures in Linked Data Land
Culture Geeks Feb talk: Adventures in Linked Data LandCulture Geeks Feb talk: Adventures in Linked Data Land
Culture Geeks Feb talk: Adventures in Linked Data Land
 
The Semantic Web #9 - Web Ontology Language (OWL)
The Semantic Web #9 - Web Ontology Language (OWL)The Semantic Web #9 - Web Ontology Language (OWL)
The Semantic Web #9 - Web Ontology Language (OWL)
 

469 talk

  • 1. RDF/XMLA brief introduction Alison Hunt March 26, 2011 for LIS469 XML
  • 2. RDF/XML is a data format It represents information for a data model called RDF
  • 3. RDFResource Description Frameworkis a data model It structures metadata for the Semantic Web and the RDA content standard (resource description and access)
  • 4. RDFdescribes a resource LIS469 Class Blog
  • 5. A resource has properties creator language LIS469 Class Blog format subject
  • 6. Properties have values creator language LIS469 Class Blog format subject
  • 7. RDFdescriptions make statements The LIS469 class blog was created by Aaron Rubinstein. The LIS469 class blog is written in English. The LIS469 class blog is formatted as text/HTML. The LIS469 class blog is about the subject of XML.
  • 8. RDFstatements are triples Resource Subject LIS469 class blog LIS469 class blog LIS469 class blog LIS469 class blog Property Predicate Creator Language Format Subject Value Object Aaron Rubinstein English Text/HTML XML
  • 9. RDF statements link two things in one direction. Node LIS469 class blog LIS469 class blog LIS469 class blog LIS469 class blog Arc Creator Language Format Subject Node Aaron Rubinstein English Text/HTML XML
  • 10. RDF statements link two things in one direction. Properties may have multiple values. RDF has several ways to model this: blank nodes, bags, collections, etc. However, the end result will be a set of triples which link the subject with each value.
  • 11. RDF statements require URIs that have meaning for computer applications Resource Must be a URI <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> Here, the blog URL replaces its name
  • 12. RDF Shines By using URIs, RDF can describe things that cannot be located or retrieved on the web. People, institutions, cars, concepts…anything. FRBR works, expressions or manifestations Tiger Lily collective amnesia
  • 13. RDF statements require URIs for properties Resource Must be a URI <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> Property Must be a URI <http://purl.org/dc/elements/1.1/creator> <http://purl.org/dc/elements/1.1/language> <http://purl.org/dc/elements/1.1/format> <http://purl.org/dc/elements/1.1/subject> Here, Dublin Core URIs are used for the property
  • 14. Values can be URIs or literal strings of characters Resource Must be a URI <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> <http://lis469.wordpress.com/> Property Must be a URI <http://purl.org/dc/elements/1.1/creator> <http://purl.org/dc/elements/1.1/language> <http://purl.org/dc/elements/1.1/format> <http://purl.org/dc/elements/1.1/subject> Value Can be URI or literal Aaron Rubinstein English Text/html <http://id.loc.gov/authorities/sh97007825#concept> Here, XML is identified by a URI from Library of Congress Subject Headings
  • 15. RDF graph with URIs Note: RDF graphs show literals in a box URIs in an oval We are using a URI as the value of the subject property. So the graph changes from box to oval. This actually indicates a really significant change… <http://purl.org/dc/elements/1.1/creator> <http://purl.org/dc/elements/1.1/language> <http://lis469.wordpress.com/> <http://purl.org/dc/elements/1.1/format> <http://purl.org/dc/elements/1.1/subject>
  • 16. A value with a URI can be the subject of other statements <http://purl.org/dc/elements/1.1/creator> <http://purl.org/dc/elements/1.1/language> <http://purl.org/dc/elements/1.1/format> <http://purl.org/dc/elements/1.1/subject> Library of Congress <http://purl.org/dc/elements/1.1/creator>
  • 18. RDF shines It is easy to work across different data sources, types and formats. RDF can link things by tapping massive databases of RDF statements called "triplestores." There are more than 27 billion triples stored now.
  • 19. RDF/XML is a data format 001111000010100010000100010010001111000000000011110000000111111111100000000000111111111110000000000011 XML document serializes the RDF graph so it can be processed by computers for storage and transmission
  • 20. RDF expressed as XML RDF XML Class Blog Creator Aaron Rubinstein Language English Format Text-HTML Subject XML URI The XML format is closed; it will not link like the RDF graph does.
  • 21. Starting the RDF/XML file RDF RDF is the root element The rdf: prefix is from the rdf namespace We are also using Dublin Core elements XML <?xml version="1.0"?> <rdf:RDF xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# xmlns:dc=http://purl.org/dc/elements/1.1/>
  • 22. Where is the resource named? RDF Each resource being described is tagged with the RDF element <description> The about attribute spells out the URI Of the resource that is the subject of the RDF statement XML <?xml version="1.0"?> <rdf:RDF xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# xmlns:dc=http://purl.org/dc/elements/1.1/> <rdf:Description Rdf:about="http://lis469.wordpress.com/">
  • 23. Properties and values? RDF Properties become child elements of Description. They appear as tags. Literal RDF values become the value of those child elements, between opening and closing tags. When RDF values are expressed as URIs, they become an attribute, called "resource," of the child element. XML <?xml version="1.0"?> <rdf:RDF xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# xmlns:dc=http://purl.org/dc/elements/1.1/> <rdf:Description Rdf:about="http://lis469.wordpress.com/"> <dc:creator>Aaron Rubinstein</dc:creator> <dc:language>English</dc:language> <dc:format>text/HTML</dc:format> <dc:subjectrdf:resource=" http://id.loc.gov/authorities/sh97007825#concept "/> </rdf:Description> </rdf:RDF>
  • 24. But properties should be URIs! Namespace declarations generate full URIs for each property dc: is equivalent to http://purl.org/dc/elements/1.1/ <dc:format>text/HTML</dc:format> is processed as <http://purl.org/dc/elements/1.1/ format> text/HTML </ <http://purl.org/dc/elements/1.1/ format>
  • 25. RDF expressed as XML RDF XML <?xml version="1.0"?> <rdf:RDF xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns# xmlns:dc=http://purl.org/dc/elements/1.1/> <rdf:Description Rdf:about="http://lis469.wordpress.com/"> <dc:creator>Aaron Rubinstein</dc:creator> <dc:language>English</dc:language> <dc:format>text/HTML</dc:format> <dc:subjectrdf:resource=" http://id.loc.gov/authorities/sh97007825#concept "/> </rdf:Description> </rdf:RDF>
  • 26. RDF/XML is not the only choice PROS RDF/XML is the syntax primarily used by the W3C from the start It plays well with the family of XML technologies. XML uses namespaces and can tag (i.e. express RDF properties) with ultimate flexibility. CONS RDF/XML files are hard for people to read. Namespaces don't always behave the way we expect Most of the developers who have to actually generate linked data find RDF/XML clunky RDF/XML obscures triples
  • 27. Other RDF data formats are RDFa Embeds RDF metadata in html. Part of Drupal7. TURTLE Very easy for people to read. Preserves RDF triples. JSON Supported by major web applications like JavaScript, so easy to process and familiar to developer community.
  • 28. You should know W3C is overhauling its RDF recommendations http://www.w3.org/2011/01/rdf-wg-charter You can create your own personal URI http://www.foaf-project.org/ For a great overview, skim the new e-book Linked Data: Evolving the Web into a Global Data Space http://linkeddatabook.com/editions/1.0 DBPedia is the hub of RDF-linked data http://dbpedia.org/About
  • 29. The Linked World Linking Open Data cloud diagram, by Richard Cyganiak and AnjaJentzsch. http://lod-cloud.net/