« Utilisateur:Ahmed Saadé/ExerciceESGI 2020 10 09 » : différence entre les versions

De ESCR
Aller à la navigation Aller à la recherche
Ligne 90 : Ligne 90 :
Vérification que le vocabulaire est bien chargé :
Vérification que le vocabulaire est bien chargé :
{{#sparql:
{{#sparql:
BASE <https://data.escr.fr/wiki/Utilisateur:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#>
BASE <https://data.escr.fr/wiki/Utilisateur:Ahmed_Saadé/ExerciceESGI_2020_10_09#>
SELECT *  
SELECT *  
WHERE {
WHERE {
Ligne 98 : Ligne 98 :


{{#sparql:
{{#sparql:
BASE <https://data.escr.fr/wiki/Utilisateur:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#>
BASE <https://data.escr.fr/wiki/Utilisateur:Ahmed_Saadé/ExerciceESGI_2020_10_09#>
SELECT *  
SELECT *  
WHERE {
WHERE {
Ligne 106 : Ligne 106 :


{{#sparql:
{{#sparql:
BASE <https://data.escr.fr/wiki/Utilisateur:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#>
BASE <https://data.escr.fr/wiki/Utilisateur:Ahmed_Saadé/ExerciceESGI_2020_10_09#>
SELECT *  
SELECT *  
WHERE {
WHERE {
Ligne 114 : Ligne 114 :


{{#sparql:
{{#sparql:
BASE <https://data.escr.fr/wiki/Utilisateur:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#>
BASE <https://data.escr.fr/wiki/Utilisateur:Ahmed_Saadé/ExerciceESGI_2020_10_09#>
SELECT *  
SELECT *  
WHERE {
WHERE {
Ligne 122 : Ligne 122 :


{{#sparql:
{{#sparql:
BASE <https://data.escr.fr/wiki/Utilisateur:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#>
BASE <https://data.escr.fr/wiki/Utilisateur:Ahmed_Saadé/ExerciceESGI_2020_10_09#>
SELECT *  
SELECT *  
WHERE {
WHERE {

Version du 9 décembre 2020 à 21:47

Introduction

Description

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/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 .

<Nante> rdf:type <City>;
  <name> "Nante";
  <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
09:32:40 17/05/2024 -- Actualiser -- Durée de la requête :0.025s -- CSV


p v
09:32:40 17/05/2024 -- Actualiser -- Durée de la requête :0.026s -- CSV


p v
09:32:40 17/05/2024 -- Actualiser -- Durée de la requête :0.023s -- CSV


p v
09:32:40 17/05/2024 -- Actualiser -- Durée de la requête :0.024s -- CSV


p v
09:32:40 17/05/2024 -- Actualiser -- Durée de la requête :0.02s -- 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
09:32:40 17/05/2024 -- Actualiser -- Durée de la requête :0.027s -- CSV


Démonstration

Des copies d'écran