« LHELGOUALCH Vincent/Projet » : différence entre les versions

De ESCR
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 49 : Ligne 49 :
<PossedeChargeur> rdf:domain <Telephone> .
<PossedeChargeur> rdf:domain <Telephone> .
<PossedeChargeur> rdf:range <Battery> .
<PossedeChargeur> rdf:range <Battery> .
</rdf>
===== EmpreinteBat =====
<rdf>
<EmpreinteBat> rdf:type rdfs:Property .
<EmpreinteBat> rdf:domain <Battery> .
</rdf>
</rdf>


Ligne 72 : Ligne 78 :
ex:IphLi-ion rdf:type <Battery> .
ex:IphLi-ion rdf:type <Battery> .
ex:IphLi-ion ex:BatteryCapacity "2815"^^xsd:double .
ex:IphLi-ion ex:BatteryCapacity "2815"^^xsd:double .
ex:IphLi-ion ex:EmpreinteBat "84"^^xsd:double .
</rdf>
</rdf>


Ligne 77 : Ligne 84 :
ex:MiLi-ion rdf:type <Battery> .
ex:MiLi-ion rdf:type <Battery> .
ex:MiLi-ion ex:BatteryCapacity "4780"^^xsd:double .
ex:MiLi-ion ex:BatteryCapacity "4780"^^xsd:double .
ex:MiLi-ion ex:EmpreinteBat "58"^^xsd:double .
</rdf>
</rdf>


=== Quelques requêtes ===  
=== Tests requêtes ===  


{{#sparql:
{{#sparql:

Version du 11 décembre 2020 à 07:44

Description

Nous souhaitons montrer l'empreinte carbone des téléphones et de leurs batteries.

Définition de votre graphe de connaissance

BASE

BASE <https://data.escr.fr/wiki/LHELGOUALCH_Vincent/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#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

Classes

Telephone
<Telephone> rdf:type rdfs:Class .
Battery
<Battery> rdf:type rdfs:Class .

Propriétés

BatteryCapacity
<BatteryCapacity> rdf:type rdfs:Property .
<BatteryCapacity> rdf:domain <Battery> .
Chargeur
<Chargeur> rdf:type rdfs:Property .
<Chargeur> rdfs:domain <Telephone> .
PossedeChargeur
<PossedeChargeur> rdf:type rdfs:Property .
<PossedeChargeur> rdf:domain <Telephone> .
<PossedeChargeur> rdf:range <Battery> .
EmpreinteBat
<EmpreinteBat> rdf:type rdfs:Property .
<EmpreinteBat> rdf:domain <Battery> .

Exemple d'un jeu de données

ex:Iphone rdf:type <Telephone> .
ex:Iphone rdfs:label "Iphone 12" .

ex:Iphone ex:PossedeChargeur ex:Li-ion .
ex:Iphone ex:PossedeChargeur ex:Non .
ex:Mi10 rdf:type <Telephone> .
ex:Mi10 rdfs:label "Xiaomi Mi 10" .

ex:Mi10 ex:PossedeChargeur ex:Li-ion .
ex:Mi10 ex:PossedeChargeur ex:Oui .
ex:IphLi-ion rdf:type <Battery> .
ex:IphLi-ion ex:BatteryCapacity "2815"^^xsd:double .
ex:IphLi-ion ex:EmpreinteBat "84"^^xsd:double .
ex:MiLi-ion rdf:type <Battery> .
ex:MiLi-ion ex:BatteryCapacity "4780"^^xsd:double .
ex:MiLi-ion ex:EmpreinteBat "58"^^xsd:double .

Tests requêtes

Test
http://www.example.org/Iphone
http://www.example.org/Mi10
05:22:12 07/05/2024 -- Actualiser -- Durée de la requête :0.027s -- CSV