consumo de endpoint sparql desde drupal
TRANSCRIPT
![Page 1: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/1.jpg)
Consumo de endpoint S PAR QL desde Drupal
Pablo Martín Muñoz29 de mayo de 2012
![Page 2: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/2.jpg)
HE LLO WOR LD!
Pablo Martín Muñoz
Open S ource Architect / Data S cientist@ edipotrebolhttp://edipotrebol.eshttp://enreda.coop
![Page 3: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/3.jpg)
¿ PE R O DE QUÉ VA E S TO?
Vamos a ver:● En dónde estamos● Algo de Drupal● Algo de R DF y S parql● “Mucho” de consumo de datos
[Imagen] http://commons.wikimedia.org/wiki/File:A-4.png?uselang=es
![Page 4: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/4.jpg)
E n dónde estamos
![Page 5: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/5.jpg)
E S TADIOS DE INTE R NE T
● Internet 1.0: Web● Internet 2.0: Web social● Internet 3.0: Web semántica
[Imagen] http://www.wrike.com/projectmanagement/09/01/2010/C ritical-Path-is-E asy-as-1-2-3l
![Page 6: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/6.jpg)
INTE R NE T 1.0
● Páginas HTML● Hiperenlaces entre páginas HTML● Todo e l mundo tie ne una we b
[Imagen] http://www.losfontaneros.com
![Page 7: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/7.jpg)
INTE R NE T 2.0
● Web participativa● Web colaborativa● S e introducen las web apps (HTML5)● Todo e l mundo tie ne un F ace book y un Twitte r
[Imagen] http://www.twitter.com/davidbisbal
![Page 8: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/8.jpg)
INTE R NE T 3.0
● Proveer de signifcado a los elementos● Colaboración entre webs● Basado en estándares● Inicios de OpenData● L a we b de las cos as (Inte rne t of things )
[Imagen] http://www.dw.de/dw/article/0,,15911207,00.html
![Page 9: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/9.jpg)
Algo de Drupal
![Page 10: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/10.jpg)
¿ QUÉ E S DR UPAL?
● CMS● LAMP como S tack Tecnológico● API + Módulos● GRAN comunidad● Don't mod core
[Imagen] http://www.drupal.org
![Page 11: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/11.jpg)
VE R S IONE S DE DR UPAL
● Drupal 6 (anterior)● Drupal 7 (actual)● Drupal 8 (futura)
[Imagen] http://www.drupal.org
![Page 12: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/12.jpg)
C OMPONE NTE S DE DR UPAL
● Core● Módulos● Tipos de contenido● Vistas● Agregadores● ...
[Imagen] http://www.drupal.org
![Page 13: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/13.jpg)
Algo de R DF y S parql
![Page 14: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/14.jpg)
OPE NDATA E S ...
Datos abiertos (open data en inglés) es una flosofía y práctica que persigue que determinados datos estén disponibles de forma libre a todo el mundo, sin restricciones de copyright, patentes u otros mecanismos de control. Tiene una ética similar a otros movimientos y comunidades abiertos como el S oftware libre, el código abierto (open source en inglés) y el acceso libre (open access en inglés).
- Wikipediahttp://es.wikipedia.org/wiki/Datos_abiertos
![Page 15: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/15.jpg)
LAS 5 E S TR E LLAS DE L OPE N(LINKE D)DATA
- Tim Berners-Lee
make your stuf available on the web (whatever format)make it available as structured data (e.g. excel instead of image scan of a table)non-proprietary format (e.g. csv instead of excel)use UR Ls to identify things, so that people can point at your stuflink your data to other people’s data to provide context
![Page 16: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/16.jpg)
R DF E XAMPLE
[Imagen] http://en.wikipedia.org/wiki/File:R df_graph_for_E ric_Miller.png
![Page 17: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/17.jpg)
S PAR QL
● Sparql Protocol And Rdf Query Language● Lenguaje de consulta para formato R DF● S imilar a S QL● R ecomendación W3C● S parql endpoint: S ervicio que acepta consultas S parql y devuelve
resultados.
[Imagen] http://www.dajobe.org/talks/201105-sparql-11/
![Page 18: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/18.jpg)
S PAR QL E XAMPLE
¿ Cuáles son las capitales de los países de África?PREFIX abc: <http://example.com/exampleOntology#>
SELECT ?capital ?country
WHERE {
?x abc:cityname ?capital ;
abc:isCapitalOf ?y .
?y abc:countryname ?country ;
abc:isInContinent abc:Africa .
}
[Imagen] http://www.dajobe.org/talks/201105-sparql-11/
![Page 19: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/19.jpg)
“Mucho” de consumo de datos
![Page 20: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/20.jpg)
INGR E DIE NTE S
● Fuente de datos ● S istema de búsqueda● S istema de publicación
[Imagen] http://drupal.org/project/odv
![Page 21: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/21.jpg)
INGR E DIE NTE S
● Fuente de datos: CIA Factbook● S istema de búsqueda: Sparql endpoint (Kasabi)● S istema de publicación: CMS Drupal 7
[Imagen] http://drupal.org/project/odv
![Page 22: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/22.jpg)
MODO DE E LABOR AC IÓN
● Obtener APIKey de Kasabi (registro y suscripción en dataset)● Instalación Drupal 7 + módulos:
● ctools● entity● views (views + views_ui)● libraries● rdfx (rdfx + rdfui)● sparql● sparql_views
[Imagen] http://drupal.org/project/odv
![Page 23: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/23.jpg)
MODO DE E LABOR AC IÓN (DR UPAL)
● Drupal:● Añadir “S parql endpoint” con confguración de Kasabi (C IA
Factbook)● Añadir un “S parql view resource type” y generar campos● Indicar en los campos del recurso el vocabulario R DF al que hace
referencia● Generar vista de tipo S parql● S eleccionar los campos en la vista● Voilá!
[Imagen] http://drupal.org/project/odv
![Page 24: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/24.jpg)
MANOS A LA OBR A...
[Imagen] http://www.zazzle.com/drupal_beer_stein_mug-168649947428630288
![Page 25: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/25.jpg)
¿ PR E GUNTAS ?
<?php
if ($preguntas) esperar_y_responder();
else echo 'Muchas gracias por la atención';
?>
![Page 26: Consumo de endpoint Sparql desde Drupal](https://reader033.vdocuments.net/reader033/viewer/2022052507/5590386b1a28ab090d8b45aa/html5/thumbnails/26.jpg)