Liste de lunettes et d'opticiens

De ESCR
Aller à la navigation Aller à la recherche

Introduction: Cette page Web permet de comparer les lunettes présentes dans différents opticiens.

Description

Le cas d'usage de ce projet...

Le démonstrateur de ce projet se compose de 2 pages Web :

  1. ...
  2. ...

Définition de votre graphe de connaissances

Schema

Diagramme de classes ou modèle RDF (comme vue en cours) Rdf-simplifier.png

Vocabulaire

Base

BASE <https://data.escr.fr/wiki/Liste_de_lunettes_et_d%27opticiens#>

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

Vérification que le vocabulaire est bien chargé :

p v
http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2000/01/rdf-schema#Class
11:09:15 07/05/2024 -- Actualiser -- Durée de la requête :0.021s -- CSV


p v
http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2000/01/rdf-schema#Class
11:09:15 07/05/2024 -- Actualiser -- Durée de la requête :0.021s -- CSV


p v
http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2000/01/rdf-schema#Class
http://www.w3.org/2000/01/rdf-schema#subClassOf https://data.escr.fr/wiki/Utilisateur:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#MovieStaff
11:09:15 07/05/2024 -- Actualiser -- Durée de la requête :0.025s -- CSV


p v
http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/1999/02/22-rdf-syntax-ns#Property
11:09:15 07/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 http://www.w3.org/1999/02/22-rdf-syntax-ns#Property
http://www.w3.org/2000/01/rdf-schema#subPropertyOf https://data.escr.fr/wiki/Utilisateur:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#participatesIn
http://www.w3.org/2000/01/rdf-schema#domain https://data.escr.fr/wiki/Utilisateur:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#Actor
http://www.w3.org/2000/01/rdf-schema#range https://data.escr.fr/wiki/Utilisateur:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#Movie
11:09:15 07/05/2024 -- Actualiser -- Durée de la requête :0.03s -- CSV


Vérification que les données sont chargées :

p v
http://www.w3.org/1999/02/22-rdf-syntax-ns#type https://data.escr.fr/wiki/Utilisateur:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#Actor
http://www.w3.org/1999/02/22-rdf-syntax-ns#type https://data.escr.fr/Magnus_dot/projet:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#Actor
http://www.w3.org/1999/02/22-rdf-syntax-ns#type https://data.escr.fr/wiki/Utilisateur:Chricris/ExerciceESGI_2020_10_09#Actor
http://www.w3.org/1999/02/22-rdf-syntax-ns#type https://data.escr.fr/wiki/Utilisateur:Chricris/Projet-ESGI#EnergieConso
http://www.example.org/starsIn http://www.example.org/worldWarZ
http://www.example.org/consome http://www.example.org/worldWarZ
11:09:15 07/05/2024 -- Actualiser -- Durée de la requête :0.023s -- CSV


Démonstration

Des copies d'écran