Introducción a RDFa

Post on 07-Dec-2014

1.799 views 1 download

description

Slides used at the RDFa tutorial at the Summer Courses of UPM (Universidad Politécnica de Madrid), 15 July 2010

Transcript of Introducción a RDFa

<rdfa>

Diego Berruetadiego.berrueta@fundacionctic.org

Contenidos

• Introducción

• Sintaxis y ejemplos

• Futuro

Introducción

Principios → tecnología

1. Identificar

2. Describir

3. Enlazar

4. Publicar

• Consultar

1. URI

2. RDF

3. Hiperenlace

4. HTTP

• SPARQL

En la práctica

• Duplicación de contenido (HTML+RDF)

• Negociación de contenido HTTP

• Sintaxis RDF/XML

<Extender HTML>

Con RDFa

• Un único fichero HTML+RDFa

• Sintaxis más familiar

Antecedentes

• HTML meta tags

• Microformatos

Microformatos / RDFa

• Dominios específicos

• Parsers específicos

• Centralizado

• Difícil combinar vocabularios

• “Humans first,machines second”

• Cualquier dominio

• Parser genérico

• Descentralizado

• Combinación de vocabularios

• Interpretable como tripletas RDF

Sintaxis

CURIEs

foaf:

http://xmlns.com/foaf/0.1/

foaf:Person

http://xmlns.com/foaf/0.1/Person

foaf:name

http://xmlns.com/foaf/0.1/name

Atributos RDFa

• @rel

• @rev

• @content

• @href

• @src

• @about

• @property

• @resource

• @datatype

• @typeof

@about

¿de qué estamos hablando?

@typeof

clasifica los recursos

@property@content@datatype

propiedades de tipo dato

@rel / @rev@href / @src

@resource

propiedades relacionales

Ejemplos

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

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

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

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

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

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

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

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

Usan RDFa

El futuro

HTML5

• Microdata

• RDFa en HTML

XHTML

• RDFa

• XHTML2 (R.I.P.)

</rdfa>

Curso de verano“Linked data: ¿una oportunidad o un riesgo?”

La Granja de San Ildefonso (Segovia)12-15 Julio 2010

Sobre esta presentación...

Esta presentación se distribuye bajo licenciaCreative Commons BY-NC-SA 3.0

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)

Créditos y agradecimientos