Utilisateur:Ahmed Saadé/ExerciceESGI 2020 10 09

De ESCR
Aller à la navigation Aller à la recherche

Introduction

Description

Définition de votre graphe de connaissances

Schema

Diagramme de classes ou modèle RDF (comme vue en cours)

RDF.png

Vocabulaire

Base

BASE <https://data.escr.fr/wiki/Utilisateur:Ahmed_Saadé/ExerciceESGI_2020_10_09#>

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

City
<City> rdf:type rdfs:Class .
<City> rdfs:subClassOf <ElectricityConsumption> .
ElectricityConsumption
<ElectricityConsumption> rdf:type rdfs:Class .

Propriétés

name
<name> rdf:type rdf:Property .
<name> rdfs:domain <City> .
lat
<lat> rdf:type rdf:Property .
<lat> rdfs:domain <City> .
lon
<lon> rdf:type rdf:Property .
<lon> rdfs:domain <City> .
consumptionNuclear
<consumptionNuclear> rdf:type rdf:Property .
<consumptionNuclear> rdfs:domain <ElectricityConsumption> .
consumptionElectric
<consumptionElectric> rdf:type rdf:Property .
<consumptionElectric> rdfs:domain <ElectricityConsumption> .

Exemple d'un jeu de données

<Paris> rdf:type <City>;
  <name> "Paris";
  <consumptionNuclear> 1548228;
  <consumptionElectric> 854254411;
  <lat> "48.85"^^xsd:decimal;
  <lon> "2.34"^^xsd:decimal .

<Nantes> rdf:type <City>;
  <name> "Nantes";
  <consumptionNuclear> 254444;
  <consumptionElectric> 15520001;
  <lat> "47.2173"^^xsd:decimal;
  <lon> "-1.55"^^xsd:decimal .

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
http://www.w3.org/2000/01/rdf-schema#subClassOf https://data.escr.fr/wiki/Utilisateur:Ahmed_Saadé/ExerciceESGI_2020_10_09#ElectricityConsumption
17:02:13 30/04/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
17:02:13 30/04/2024 -- Actualiser -- Durée de la requête :0.02s -- CSV


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

o
https://data.escr.fr/wiki/Utilisateur:Ahmed_Saadé/ExerciceESGI_2020_10_09#Paris
https://data.escr.fr/wiki/Utilisateur:Ahmed_Saadé/ExerciceESGI_2020_10_09#Nantes
17:02:13 30/04/2024 -- Actualiser -- Durée de la requête :0.022s -- CSV


prop value
http://www.w3.org/1999/02/22-rdf-syntax-ns#type https://data.escr.fr/wiki/Utilisateur:Ahmed_Saadé/ExerciceESGI_2020_10_09#City
https://data.escr.fr/wiki/Utilisateur:Ahmed_Saadé/ExerciceESGI_2020_10_09#consumptionElectric 854254411
https://data.escr.fr/wiki/Utilisateur:Ahmed_Saadé/ExerciceESGI_2020_10_09#consumptionNuclear 1548228
https://data.escr.fr/wiki/Utilisateur:Ahmed_Saadé/ExerciceESGI_2020_10_09#lat 48.85
https://data.escr.fr/wiki/Utilisateur:Ahmed_Saadé/ExerciceESGI_2020_10_09#lon 2.34
https://data.escr.fr/wiki/Utilisateur:Ahmed_Saadé/ExerciceESGI_2020_10_09#name Paris
17:02:13 30/04/2024 -- Actualiser -- Durée de la requête :0.021s -- CSV


Démonstration

Des copies d'écran