« Comparatif de la consommation d'énergie des téléphones » : différence entre les versions

De ESCR
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
 
(9 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
Introduction
== Description ==
== Description ==


Comparatif de la consommation d'énergie des téléphones
Comparatif de la consommation d'énergie des téléphones


Le démonstrateur de ce projet se compose de 2 pages Web :
=== Liens ===
# ...
# ...
 
== Définition de votre graphe de connaissances ==
 
=== Schema ===
 
Diagramme de classes ou modèle RDF (comme vue en cours)
 
=== Vocabulaire ===
 
==== Base ====
<rdf>
BASE <https://data.escr.fr/wiki/Utilisateur:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#>
</rdf>
 
==== Préfixes ====
<rdf>
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#>
</rdf>
 
==== Classes ====
 
===== Movie =====
<rdf>
<Movie> rdf:type rdfs:Class .
</rdf>
 
===== MovieStaff =====
<rdf>
<MovieStaff> rdf:type rdfs:Class .
</rdf>


===== Actor =====
Gitlab : https://gitlab.com/abdelhakim.belmakdem/phone-battery
<rdf>
<Actor> rdf:type rdfs:Class .
<Actor> rdfs:subClassOf <MovieStaff>.
</rdf>


==== Propriétés====
Site web : https://inspiring-easley-11485a.netlify.app/
===== participatesIn =====
<rdf>
<participatesIn> rdf:type rdf:Property .
</rdf>
 
===== participatesIn =====
<rdf>
<starsIn> rdf:type rdf:Property .
<starsIn> rdfs:subPropertyOf <participatesIn> .
 
<starsIn>  rdfs:domain <Actor>.
<starsIn>  rdfs:range  <Movie>.
</rdf>
 
=== Exemple d'un jeu de données ===
 
<rdf>
ex:bradPitt rdf:type <Actor>.
ex:bradPitt ex:starsIn ex:worldWarZ .
 
 
</rdf>


=== Requêtes ===
=== Requêtes ===
Vérification que le vocabulaire est bien chargé :
{{#sparql:
BASE <https://data.escr.fr/wiki/Utilisateur:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#>
SELECT *
WHERE {
<Movie> ?p ?v .
}
}}
{{#sparql:
BASE <https://data.escr.fr/wiki/Utilisateur:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#>
SELECT *
WHERE {
<MovieStaff> ?p ?v .
}
}}
{{#sparql:
BASE <https://data.escr.fr/wiki/Utilisateur:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#>
SELECT *
WHERE {
<Actor> ?p ?v .
}
}}
{{#sparql:
BASE <https://data.escr.fr/wiki/Utilisateur:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#>
SELECT *
WHERE {
<participatesIn> ?p ?v .
}
}}
{{#sparql:
BASE <https://data.escr.fr/wiki/Utilisateur:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#>
SELECT *
WHERE {
<starsIn> ?p ?v .
}
}}
Vérification que les données sont chargées :
{{#sparql:
PREFIX ex: <http://www.example.org/>
SELECT *
WHERE {
ex:bradPitt  ?p ?v .
}
}}
== Démonstration ==
Des copies d'écran
== Exemple ==


{{#sparql:PREFIX bd: <http://www.bigdata.com/rdf#>  
{{#sparql:PREFIX bd: <http://www.bigdata.com/rdf#>  
Ligne 136 : Ligne 17 :


# select  *
# select  *
 
select  ?telephoneLabel ?telephone ?battery ?image
where {
    ?telephone wdt:P31 wd:Q10929058 ;
                wdt:P279 wd:Q22645 ;
                wdt:P4140 ?battery ;
              wdt:P18 ?image.
  SERVICE wikibase:label{
    bd:serviceParam wikibase:language "fr,enf,de"
  }
}
LIMIT 10
LIMIT 10
| endpoint = https://query.wikidata.org/sparql
| endpoint = https://query.wikidata.org/sparql

Version actuelle datée du 18 juin 2021 à 06:53

Description

Comparatif de la consommation d'énergie des téléphones

Liens

Gitlab : https://gitlab.com/abdelhakim.belmakdem/phone-battery

Site web : https://inspiring-easley-11485a.netlify.app/

Requêtes