Advertisement

Introducción a RDFa

Software engineer at Atlassian
Jul. 16, 2010
Advertisement

More Related Content

Advertisement
Advertisement

Introducción a RDFa

  1. <rdfa> Diego Berrueta diego.berrueta@fundacionctic.org
  2. Contenidos • Introducción • Sintaxis y ejemplos • Futuro
  3. Introducción
  4. Principios → tecnología 1. Identificar 1. URI 2. Describir 2. RDF 3. Enlazar 3. Hiperenlace 4. Publicar 4. HTTP • Consultar • SPARQL
  5. En la práctica • Duplicación de contenido (HTML+RDF) • Negociación de contenido HTTP • Sintaxis RDF/XML
  6. <Extender HTML>
  7. Con RDFa • Un único fichero HTML +RDFa • Sintaxis más familiar
  8. Antecedentes • HTML meta tags • Microformatos
  9. Microformatos / RDFa • Dominios específicos • Cualquier dominio • Parsers específicos • Parser genérico • Centralizado • Descentralizado • Difícil combinar • Combinación de vocabularios vocabularios • “Humans first, • Interpretable como machines second” tripletas RDF
  10. Sintaxis
  11. CURIEs
  12. foaf: http://xmlns.com/foaf/0.1/
  13. foaf:Person http://xmlns.com/foaf/0.1/Person
  14. foaf:name http://xmlns.com/foaf/0.1/name
  15. Atributos RDFa • @rel • @about • @rev • @property • @content • @resource • @href • @datatype • @src • @typeof
  16. @about ¿de qué estamos hablando?
  17. @typeof clasifica los recursos
  18. @property @content @datatype propiedades de tipo dato
  19. @rel / @rev @href / @src @resource propiedades relacionales
  20. Ejemplos
  21. <html> <head> <title>Curso de verano</title> </head> <body> <p> Voy a dar clase en un curso de verano, el 15 de Julio a las 12:30. </p> </body> </html>
  22. <html> <head> <title>Curso de verano</title> </head> <body> <p> Voy a dar clase en un <span> curso de verano </span>, el <span> 15 de Julio a las 12:30 </span>. </p> </body> </html>
  23. <html> <head> <title>Curso de verano</title> </head> <body xmlns:cal="http://www.w3.org/2002/12/cal/ical#"> <p> Voy a dar clase en un <span property="cal:summary"> curso de verano </span>, el <span property="cal:dtstart" content="2010-07-15T12:30:00+02:00" datatype="xsd:dateTime"> 15 de Julio a las 12:30 </span>. </p> </body> </html>
  24. <html> <head> <title>Curso de verano</title> </head> <body xmlns:cal="http://www.w3.org/2002/12/cal/ical#"> <p> Voy a dar clase en un <span property="cal:summary"> curso de verano </span>, el <span property="cal:dtstart" content="2010-07-15T12:30:00+02:00" datatype="xsd:dateTime"> 15 de Julio a las 12:30 </span>. </p> </body> </html>
  25. <html> <head> <title>Curso de verano</title> </head> <body xmlns:cal="http://www.w3.org/2002/12/cal/ical#"> <p> Voy a dar clase en un <span property="cal:summary"> curso de verano </span>, el <span property="cal:dtstart" content="2010-07-15T12:30:00+02:00" datatype="xsd:dateTime"> 15 de Julio a las 12:30 </span>. </p> </body> </html>
  26. <html> <head> <title>Curso de verano</title> </head> <body xmlns:cal="http://www.w3.org/2002/12/cal/ical#"> <p> Voy a dar clase en un <span property="cal:summary"> curso de verano </span>, el <span property="cal:dtstart" content="2010-07-15T12:30:00+02:00" datatype="xsd:dateTime"> 15 de Julio a las 12:30 </span>. </p> </body> </html>
  27. <html> <head> <title>Curso de verano</title> </head> <body xmlns:cal="http://www.w3.org/2002/12/cal/ical#"> <p> Voy a dar clase en un <span property="cal:summary"> curso de verano </span>, el <span property="cal:dtstart" content="2010-07-15T12:30:00+02:00" datatype="xsd:dateTime"> 15 de Julio a las 12:30 </span>. </p> </body> </html>
  28. <html> <head> <title>Curso de verano</title> </head> <body xmlns:cal="http://www.w3.org/2002/12/cal/ical#"> <p> Voy a dar clase en un <span property="cal:summary"> curso de verano </span>, el <span property="cal:dtstart" content="2010-07-15T12:30:00+02:00" datatype="xsd:dateTime"> 15 de Julio a las 12:30 </span>. </p> </body> </html>
  29. Usan RDFa
  30. El futuro
  31. HTML5 • Microdata • RDFa en HTML
  32. XHTML • RDFa • XHTML2 (R.I.P.)
  33. </rdfa>
  34. Sobre esta presentación... Curso de verano “Linked data: ¿una oportunidad o un riesgo?” La Granja de San Ildefonso (Segovia) 12-15 Julio 2010
  35. Esta presentación se distribuye bajo licencia Creative Commons BY-NC-SA 3.0
  36. Créditos y agradecimientos Contiene recursos gráficos creados por: Deleket @ iconfinder (CC icon) Ariel Meter @ flickr (winding road) Paraflyer @ flickr (straight road) Levente Fulop @ flickr (light bulb) Nobel Prize Foundation (P. and M. Curie) Alexandre Moore @ iconfinder (HTML icon) dierk schaefer @ flickr (brain) Steve Jurvetson @ flickr (Arnie) Thomas Bresson @ flickr (lightning) toffehoff @ flickr (tug of war)
Advertisement