« Liste de lunettes et d'opticiens » : différence entre les versions
Aller à la navigation
Aller à la recherche
(6 versions intermédiaires par 2 utilisateurs non affichées) | |||
Ligne 4 : | Ligne 4 : | ||
== Description == | == Description == | ||
[[Fichier:Projet web semantique.png|vignette]] | |||
Pour tester le démonstrateur: | |||
1.Cliquer sur lien du projet github: https://github.com/moxxxa/web-semantique | |||
2.Cloner le projet et ouvrir le fichier main dans votre navigateur | |||
== Définition de votre graphe de connaissances == | == Définition de votre graphe de connaissances == | ||
Ligne 21 : | Ligne 23 : | ||
==== Base ==== | ==== Base ==== | ||
<rdf> | <rdf> | ||
BASE <https://data.escr.fr/wiki/Liste_de_lunettes_et_d | BASE <https://data.escr.fr/wiki/Liste_de_lunettes_et_d'opticiens#> | ||
</rdf> | </rdf> | ||
Ligne 41 : | Ligne 43 : | ||
===== Lunette ===== | ===== Lunette ===== | ||
<rdf> | <rdf> | ||
<Lunette> rdf:type rdfs: | <Lunette> rdf:type rdfs:class. | ||
</rdf> | </rdf> | ||
===== Composant ===== | ===== Composant ===== | ||
<rdf> | <rdf> | ||
<Composant> rdf:type rdfs: | <Composant> rdf:type rdfs:class. | ||
</rdf> | </rdf> | ||
Ligne 176 : | Ligne 178 : | ||
{{#sparql: | {{#sparql: | ||
BASE <https://data.escr.fr/wiki/ | BASE <https://data.escr.fr/wiki/Liste_de_lunettes_et_d'opticiens#> | ||
SELECT * | SELECT * | ||
WHERE { | WHERE { | ||
Ligne 185 : | Ligne 187 : | ||
{{#sparql: | {{#sparql: | ||
BASE <https://data.escr.fr/wiki/ | BASE <https://data.escr.fr/wiki/Liste_de_lunettes_et_d'opticiens#> | ||
SELECT * | SELECT * | ||
WHERE { | WHERE { | ||
Ligne 193 : | Ligne 195 : | ||
{{#sparql: | {{#sparql: | ||
BASE <https://data.escr.fr/wiki/ | BASE <https://data.escr.fr/wiki/Liste_de_lunettes_et_d'opticiens#> | ||
SELECT * | SELECT * | ||
WHERE { | WHERE { | ||
Ligne 202 : | Ligne 204 : | ||
{{#sparql: | {{#sparql: | ||
PREFIX ex: <http://www.example.org/> | PREFIX ex: <http://www.example.org/> | ||
SELECT * | SELECT * | ||
Ligne 211 : | Ligne 212 : | ||
{{#sparql: | {{#sparql: | ||
PREFIX ex: <http://www.example.org/> | PREFIX ex: <http://www.example.org/> | ||
SELECT * | SELECT * | ||
Ligne 220 : | Ligne 220 : | ||
{{#sparql: | {{#sparql: | ||
PREFIX ex: <http://www.example.org/> | PREFIX ex: <http://www.example.org/> | ||
SELECT * | SELECT * | ||
Ligne 229 : | Ligne 228 : | ||
{{#sparql: | {{#sparql: | ||
PREFIX ex: <http://www.example.org/> | PREFIX ex: <http://www.example.org/> | ||
SELECT * | SELECT * | ||
Ligne 238 : | Ligne 236 : | ||
{{#sparql: | {{#sparql: | ||
PREFIX ex: <http://www.example.org/> | PREFIX ex: <http://www.example.org/> | ||
SELECT * | SELECT * | ||
Ligne 247 : | Ligne 244 : | ||
{{#sparql: | {{#sparql: | ||
PREFIX ex: <http://www.example.org/> | PREFIX ex: <http://www.example.org/> | ||
SELECT * | SELECT * |
Version actuelle datée du 18 juin 2021 à 08:21
Introduction: Cette page Web permet de comparer les lunettes présentes dans différents opticiens.
Description
Pour tester le démonstrateur: 1.Cliquer sur lien du projet github: https://github.com/moxxxa/web-semantique
2.Cloner le projet et ouvrir le fichier main dans votre navigateur
Définition de votre graphe de connaissances
Schema
Diagramme de classes ou modèle RDF (comme vue en cours)
Vocabulaire
Base
BASE <https://data.escr.fr/wiki/Liste_de_lunettes_et_d'opticiens#>
Préfixes
PREFIX ex: <http://www.example.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
Classes
Opticien
<Opticien> rdf:type rdfs:class.
Lunette
<Lunette> rdf:type rdfs:class.
Composant
<Composant> rdf:type rdfs:class.
Propriétés
Nom du composant
<composantName> rdf:type rdf:Property;
rdfs:domain <Composant>.
Matière du composant
<composantMatière> rdf:type rdf:Property;
rdfs:domain <Composant>.
Nom de l'opticien
<opticienName> rdf:type rdf:Property;
rdfs:domain <Opticien>.
Marque de lunette
<lunetteMarque> rdf:type rdf:Property;
rdfs:domain <Lunette>.
Prix de lunette
<lunettePrix> rdf:type rdf:Property;
rdfs:domain <Lunette>.
Opticien contient lunette
<opticienLunette> rdf:type rdf:Property;
rdfs:domain <Opticien>;
rdfs:range <Lunette>.
Exemple d'un jeu de données
Composants
ex:monture_métal rdf:type <Composant> .
ex:monture_métal <composantName> "Monture en métal" .
ex:monture_métal <composantMatière> "Métal" .
ex:monture_aluminium rdf:type <Composant> .
ex:monture_aluminium <composantName> "Monture en aluminium" .
ex:monture_aluminium <composantMatière> "Aluminium" .
ex:monture_titane rdf:type <Composant> .
ex:monture_titane <composantName> "Monture en titane" .
ex:monture_titane <composantMatière> "Titane" .
ex:verre_unifocaux rdf:type <Composant> .
ex:verre_unifocaux <composantName> "Verre unifocaux" .
ex:verre_unifocaux <composantMatière> "Verre minéral " .
ex:verre_progressifs rdf:type <Composant> .
ex:verre_progressifs <composantName> "Verre progressifs" .
ex:verre_progressifs <composantMatière> "Verre polycarbonate " .
ex:verre_midistance rdf:type <Composant> .
ex:verre_midistance <composantName> "Verre midistance" .
ex:verre_midistance <composantMatière> "Verre organique " .
lunettes
ex:lunette_john_jess_j43 rdf:type <Lunette> .
ex:lunette_john_jess_j43 <lunetteMarque> "John & Jess" .
ex:lunette_john_jess_j43 <lunettePrix> "150"^^xsd:double .
ex:lunette_john_jess_j43 <lunetteComposant> ex:verre_midistance .
ex:lunette_john_jess_j43 <lunetteComposant> ex:monture_titane .
ex:lunette_SL_234_F_003 rdf:type <Lunette> .
ex:lunette_SL_234_F_003 <lunetteMarque> "John & Jess" .
ex:lunette_SL_234_F_003 <lunettePrix> "230"^^xsd:double .
ex:lunette_SL_234_F_003 <lunetteComposant> ex:verre_progressifs .
ex:lunette_SL_234_F_003 <lunetteComposant> ex:monture_aluminium .
ex:lunette_carrera_1123 rdf:type <Lunette> .
ex:lunette_carrera_1123 <lunetteMarque> "Carrera" .
ex:lunette_carrera_1123 <lunettePrix> "380"^^xsd:double .
ex:lunette_carrera_1123 <lunetteComposant> ex:verre_unifocaux .
ex:lunette_carrera_1123 <lunetteComposant> ex:monture_aluminium .
Opticien
ex:opticien_courbevoie_1 rdf:type <Opticien> .
ex:opticien_courbevoie_1 <opticienName> "Lissac l'Opticien Courbevoie" .
ex:opticien_courbevoie_1 <opticienLunette> ex:lunette_carrera_1123 .
ex:opticien_courbevoie_1 <opticienLunette> ex:lunette_SL_234_F_003 .
ex:opticien_courbevoie_2 rdf:type <Opticien> .
ex:opticien_courbevoie_2 <opticienName> "Opticien Krys Courbevoie" .
ex:opticien_courbevoie_2 <opticienLunette> ex:lunette_john_jess_j43 .
ex:opticien_courbevoie_2 <opticienLunette> ex:lunette_SL_234_F_003 .
ex:opticien_courbevoie_3 rdf:type <Opticien> .
ex:opticien_courbevoie_3 <opticienName> "L'Opticien-Optique Médicale" .
ex:opticien_courbevoie_3 <opticienLunette> ex:lunette_john_jess_j43 .
ex:opticien_courbevoie_3 <opticienLunette> ex:lunette_carrera_1123 .
Requêtes
s |
---|
http://www.example.org/monture_aluminium |
http://www.example.org/monture_métal |
http://www.example.org/monture_titane |
http://www.example.org/verre_midistance |
http://www.example.org/verre_progressifs |
http://www.example.org/verre_unifocaux |
14:46:29 19/05/2024 -- Actualiser -- Durée de la requête :0.031s -- CSV |
s |
---|
http://www.example.org/opticien_courbevoie_1 |
http://www.example.org/opticien_courbevoie_2 |
http://www.example.org/opticien_courbevoie_3 |
14:46:29 19/05/2024 -- Actualiser -- Durée de la requête :0.025s -- CSV |
s |
---|
http://www.example.org/lunette_SL_234_F_003 |
http://www.example.org/lunette_carrera_1123 |
http://www.example.org/lunette_john_jess_j43 |
14:46:29 19/05/2024 -- Actualiser -- Durée de la requête :0.028s -- CSV |
p | v |
---|---|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type | https://data.escr.fr/wiki/Liste_de_lunettes_et_d'opticiens#Composant |
https://data.escr.fr/wiki/Liste_de_lunettes_et_d'opticiens#composantMatière | Verre organique |
https://data.escr.fr/wiki/Liste_de_lunettes_et_d'opticiens#composantName | Verre midistance |
14:46:29 19/05/2024 -- Actualiser -- Durée de la requête :0.028s -- CSV |
Démonstration
Des copies d'écran