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)

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 <Ingredient> .
ex:verre_unifocaux <ComposantName> "Verre unifocaux" .
ex:verre_unifocaux <ComposantMatière> "Verre minéral " .
ex:verre_progressifs rdf:type <Ingredient> .
ex:verre_progressifs <ComposantName> "Verre progressifs" .
ex:verre_progressifs <ComposantMatière> "Verre polycarbonate " .
ex:verre_midistance rdf:type <Ingredient> .
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 ex:lunetteComposant ex:verre_midistance .
ex:lunette_john_jess_j43 ex: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 ex:lunetteComposant ex:verre_progressifs .
ex:lunette_SL_234_F_003 ex: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 ex:lunetteComposant ex:verre_unifocaux .
ex:lunette_carrera_1123 ex: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 ex:OpticienLunette ex:lunette_carrera_1123 .
ex:opticien_courbevoie_1 ex: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 ex:OpticienLunette ex:lunette_john_jess_j43 .
ex:opticien_courbevoie_2 ex: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 ex:OpticienLunette ex:lunette_john_jess_j43 .
ex:opticien_courbevoie_3 ex: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:49:45 07/05/2024 -- Actualiser -- Durée de la requête :0.034s -- CSV


p v
http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2000/01/rdf-schema#Class
11:49:45 07/05/2024 -- Actualiser -- Durée de la requête :0.02s -- 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:49:45 07/05/2024 -- Actualiser -- Durée de la requête :0.02s -- 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:49:46 07/05/2024 -- Actualiser -- Durée de la requête :0.026s -- 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:49:46 07/05/2024 -- Actualiser -- Durée de la requête :0.023s -- 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:49:46 07/05/2024 -- Actualiser -- Durée de la requête :0.025s -- CSV


Démonstration

Des copies d'écran