Idée sélectionner le cloud pour sa machine virtuelle en fonction de son impact environnemental

De ESCR
Aller à la navigation Aller à la recherche

Introduction

Description

  • page 1 : consommation des datacenter de kw/h
  • page 2 : type de serveur ( en % ) dans chaque datacenter ( virtualiser ou non )

L'objectif est d'identifier au niveau Green IT, le cas le plus interessant pour les devops

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:Magnus_dot/projet#>

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#>

Classes

Datacenter
<Datacenter> rdf:type rdfs:Class .
Server
<Server> rdf:type rdfs:Class .
type
<Type> rdf:type rdfs:Class .
<Type> rdfs:subClassOf <Server>.

Propriétés

participatesIn
<participatesIn> rdf:type 		 rdf:Property .
participatesIn
<starsIn> 	rdf:type 		 rdf:Property .
<starsIn> 	rdfs:subPropertyOf <participatesIn> .

<starsIn>  rdfs:domain <Server>.
<starsIn>  rdfs:range  <Type>.

Exemple d'un jeu de données

ex:OvhLille rdf:type <Datacenter>.
ex:OvhLille ex:starsIn ex:Cloud .

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
22:59:04 18/04/2024 -- Actualiser -- Durée de la requête :0.018s -- CSV


p v
http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2000/01/rdf-schema#Class
22:59:04 18/04/2024 -- Actualiser -- Durée de la requête :0.023s -- 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
22:59:04 18/04/2024 -- Actualiser -- Durée de la requête :0.027s -- 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
22:59:04 18/04/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/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
22:59:04 18/04/2024 -- Actualiser -- Durée de la requête :0.028s -- 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
22:59:04 18/04/2024 -- Actualiser -- Durée de la requête :0.021s -- CSV


Démonstration

Des copies d'écran