| 1 |
From nobody Mon Sep 18 00:25:34 2006 |
|---|
| 2 |
Received: with ECARTIS (v1.0.0; list websemantique); Mon, 18 Sep 2006 00:25:34 +0200 (CEST) |
|---|
| 3 |
MIME-Version: 1.0 |
|---|
| 4 |
Return-Path: <simon@atonie.org> |
|---|
| 5 |
X-Original-To: websemantique@gwparis.dyomedea.com |
|---|
| 6 |
Delivered-To: websemantique@gwparis.dyomedea.com |
|---|
| 7 |
Received: from localhost (acer [127.0.0.1]) |
|---|
| 8 |
by gwparis.dyomedea.com (Postfix) with ESMTP id 4238393C1B6 |
|---|
| 9 |
for <websemantique@gwparis.dyomedea.com>; |
|---|
| 10 |
Mon, 18 Sep 2006 00:25:34 +0200 (CEST) |
|---|
| 11 |
Received: from localhost (acer [127.0.0.1]) |
|---|
| 12 |
by gwparis.dyomedea.com (Postfix) with ESMTP id 4238393C1B6 |
|---|
| 13 |
for <websemantique@gwparis.dyomedea.com>; |
|---|
| 14 |
Mon, 18 Sep 2006 00:25:34 +0200 (CEST) |
|---|
| 15 |
Received: from localhost (acer [127.0.0.1]) |
|---|
| 16 |
by gwparis.dyomedea.com (Postfix) with ESMTP id 4238393C1B6 |
|---|
| 17 |
for <websemantique@gwparis.dyomedea.com>; |
|---|
| 18 |
Mon, 18 Sep 2006 00:25:34 +0200 (CEST) |
|---|
| 19 |
Received: from localhost (acer [127.0.0.1]) |
|---|
| 20 |
by gwparis.dyomedea.com (Postfix) with ESMTP id 4238393C1B6 |
|---|
| 21 |
for <websemantique@gwparis.dyomedea.com>; |
|---|
| 22 |
Mon, 18 Sep 2006 00:25:34 +0200 (CEST) |
|---|
| 23 |
Received: from localhost (acer [127.0.0.1]) |
|---|
| 24 |
by gwparis.dyomedea.com (Postfix) with ESMTP id 4238393C1B6 |
|---|
| 25 |
for <websemantique@gwparis.dyomedea.com>; |
|---|
| 26 |
Mon, 18 Sep 2006 00:25:34 +0200 (CEST) |
|---|
| 27 |
Subject: [websemantique] Films Vus et RDF |
|---|
| 28 |
From: Simon Rozet <simon@atonie.org> |
|---|
| 29 |
To: websemantique@xmlfr.org |
|---|
| 30 |
Date: Mon, 18 Sep 2006 00:25:21 +0200 |
|---|
| 31 |
Message-Id: <1158531921.24057.33.camel@bearnaise> |
|---|
| 32 |
Mime-Version: 1.0 |
|---|
| 33 |
X-Mailer: Evolution 2.6.1 (2.6.1-3.FC4.CLUB) |
|---|
| 34 |
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dyomedea.com |
|---|
| 35 |
Content-type: text/plain; charset=utf-8 |
|---|
| 36 |
Content-Transfer-Encoding: 8bit |
|---|
| 37 |
X-Spambayes-Classification: ham; 0.00 |
|---|
| 38 |
X-archive-position: 12002 |
|---|
| 39 |
X-ecartis-version: Ecartis v1.0.0 |
|---|
| 40 |
Sender: websemantique-bounce@xmlfr.org |
|---|
| 41 |
Errors-to: websemantique-bounce@xmlfr.org |
|---|
| 42 |
X-original-sender: simon@atonie.org |
|---|
| 43 |
Precedence: list |
|---|
| 44 |
Reply-to: websemantique@xmlfr.org |
|---|
| 45 |
X-list: websemantique |
|---|
| 46 |
|
|---|
| 47 |
Bonjour, |
|---|
| 48 |
|
|---|
| 49 |
Je souhaite mettre en ligne une liste des films que j'ai récemment |
|---|
| 50 |
visionnés. Il existe sûrement des services *2.0* pour ce genre de chose, |
|---|
| 51 |
mais c'est terriblement plus drÎle de faire cela soit-même, surtout |
|---|
| 52 |
quand cela devient un prétexte à l'utilisation de RDF. |
|---|
| 53 |
|
|---|
| 54 |
Je souhaite afficher les informations suivantes : |
|---|
| 55 |
|
|---|
| 56 |
- L'affiche |
|---|
| 57 |
- Le titre du film |
|---|
| 58 |
- La date de sortie |
|---|
| 59 |
- Le directeur |
|---|
| 60 |
- Le scénariste |
|---|
| 61 |
- Les acteurs et actrices principaux |
|---|
| 62 |
- La date à laquelle j'ai visionné le film |
|---|
| 63 |
|
|---|
| 64 |
L'Internet Movie Database [1] contient toutes ces informations. J'ai |
|---|
| 65 |
donc cherché et trouvé un vocabulaire RDF pour IMDb [2] |
|---|
| 66 |
Voici ce à quoi je suis arrivé : |
|---|
| 67 |
|
|---|
| 68 |
@prefix : <http://www.csd.abdn.ac.uk/~ggrimnes/dev/imdb/IMDB#> . |
|---|
| 69 |
@prefix foaf: <http://xmlns.com/foaf/0.1/> . |
|---|
| 70 |
@prefix dc: <http://purl.org/dc/elements/1.1/> . |
|---|
| 71 |
|
|---|
| 72 |
<http://imdb.com/title/tt0105236/> a :Movie; |
|---|
| 73 |
:year "1992" ; |
|---|
| 74 |
dc:title "Reservoir Dogs"; |
|---|
| 75 |
<http://atonie.org/films#watched_at> "2006-08-21" ; |
|---|
| 76 |
<http://atonie.org/films#cover> |
|---|
| 77 |
"http://ia.imdb.com/media/imdb/01/I/58/06/40/10m.jpg" ; |
|---|
| 78 |
:directed [ |
|---|
| 79 |
a foaf:Person ; |
|---|
| 80 |
foaf:name "Quentin Tarantino" |
|---|
| 81 |
] ; |
|---|
| 82 |
:writer [ |
|---|
| 83 |
a foaf:Person ; |
|---|
| 84 |
foaf:name "Quentin Tarantino" |
|---|
| 85 |
] ; |
|---|
| 86 |
:cast [ |
|---|
| 87 |
a foaf:Person ; |
|---|
| 88 |
foaf:name "Tim Roth" |
|---|
| 89 |
]; |
|---|
| 90 |
:cast [ |
|---|
| 91 |
a foaf:Person ; |
|---|
| 92 |
foaf:name "Michael Madsen" |
|---|
| 93 |
]; |
|---|
| 94 |
:cast [ |
|---|
| 95 |
a foaf:Person ; |
|---|
| 96 |
foaf:name "Chris Penn" |
|---|
| 97 |
]; |
|---|
| 98 |
:cast [ |
|---|
| 99 |
a foaf:Person ; |
|---|
| 100 |
foaf:name "Steve Buscemi" |
|---|
| 101 |
] . |
|---|
| 102 |
|
|---|
| 103 |
Mais cette solution me pause quelques problÚmes : |
|---|
| 104 |
|
|---|
| 105 |
- Je peux avoir regardé un film plusieurs fois mais à |
|---|
| 106 |
des dates différentes. |
|---|
| 107 |
- L'utilisation d'un "faux" namespace. |
|---|
| 108 |
|
|---|
| 109 |
DeuxiÚme solution : |
|---|
| 110 |
|
|---|
| 111 |
@prefix : <http://www.csd.abdn.ac.uk/~ggrimnes/dev/imdb/IMDB#> . |
|---|
| 112 |
@prefix foaf: <http://xmlns.com/foaf/0.1/> . |
|---|
| 113 |
@prefix dc: <http://purl.org/dc/elements/1.1/> . |
|---|
| 114 |
|
|---|
| 115 |
<2006-08-04reservoir_dogs> a :Movie ; |
|---|
| 116 |
dc:title "Reservoir Dogs" ; |
|---|
| 117 |
dc:date "2006-08-04" ; |
|---|
| 118 |
:year "1992" ; |
|---|
| 119 |
<http://atonie.org/films#cover> |
|---|
| 120 |
"http://ia.imdb.com/media/imdb/01/I/58/06/40/10m.jpg" ; |
|---|
| 121 |
:directed [ |
|---|
| 122 |
a foaf:Person ; |
|---|
| 123 |
foaf:name "Quentin Tarantino" |
|---|
| 124 |
] ; |
|---|
| 125 |
:writer [ |
|---|
| 126 |
a foaf:Person ; |
|---|
| 127 |
foaf:name "Quentin Tarantino" |
|---|
| 128 |
] . |
|---|
| 129 |
|
|---|
| 130 |
Cette méthode résolu l'utilisation de #watched_at puis ce que dans le |
|---|
| 131 |
cas présent, dc:date indique bien la date de création de la ressource, |
|---|
| 132 |
donc de la date à laquelle j'ai regardé le film. Mais, je suis toujours |
|---|
| 133 |
forcé d'utiliser un faux namespace pour l'affiche du film. |
|---|
| 134 |
|
|---|
| 135 |
Si vous des idées/méthodes/remarques, je serais ravi de les recevoir :-) |
|---|
| 136 |
|
|---|
| 137 |
Merci d'avance. |
|---|
| 138 |
|
|---|
| 139 |
-- |
|---|
| 140 |
Simon Rozet |
|---|
| 141 |
|
|---|
| 142 |
|
|---|
| 143 |
|
|---|
| 144 |
-- |
|---|
| 145 |
Liste de diffusion "websemantique@xmlfr.org" |
|---|
| 146 |
(http://xmlfr.org/communautes/websemantique/listes/websemantique). |
|---|
| 147 |
|
|---|
| 148 |
Contribuez au developpement du Web Semantique francophone |
|---|
| 149 |
(http://websemantique.org) ! |
|---|
| 150 |
|
|---|
| 151 |
Pour resilier votre abonnement, envoyez un message contenant |
|---|
| 152 |
la commande "unsubscribe" a websemantique-request@xmlfr.org |
|---|
| 153 |
(mailto:websemantique-request@xmlfr.org?Subject=unsubscribe) |
|---|
| 154 |
|
|---|