« Choisir une boulangerie bio sans intermédiaire » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
== | == Définition de votre graphe de connaissances == | ||
=== Vocabulaire === | |||
==== Base ==== | |||
<rdf> | |||
BASE <https://data.escr.fr/wiki/Utilisateur:Stan/Test#> | |||
</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#> | |||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |||
</rdf> | |||
==== Classes ==== | |||
===== Ingredient ===== | |||
<rdf> | |||
<Ingredient> rdf:type rdfs:class. | |||
</rdf> | |||
===== Baguette ===== | |||
<rdf> | |||
<Baguette> rdf:type rdfs:class. | |||
</rdf> | |||
===== Boulangerie ===== | |||
<rdf> | |||
<Boulangerie> rdf:type rdfs:class. | |||
</rdf> | |||
==== Propriétés ==== | |||
===== Ingredient Name ===== | |||
<rdf> | |||
<ingredientName> rdf:type rdf:Property; | |||
rdfs:domain <Ingredient>. | |||
</rdf> | |||
===== Ingredient Calorie ===== | |||
<rdf> | |||
<ingredientCalorie> rdf:type rdf:Property; | |||
rdfs:domain <Ingredient>. | |||
</rdf> | |||
===== Baguette Name ===== | |||
<rdf> | |||
<baguetteName> rdf:type rdf:Property; | |||
rdfs:domain <Baguette>. | |||
</rdf> | |||
===== Baguette Calorie ===== | |||
<rdf> | |||
<baguettePrice> rdf:type rdf:Property; | |||
rdfs:domain <Baguette>. | |||
</rdf> | |||
===== Baguette Ingredient ===== | |||
<rdf> | |||
<baguetteIngredients> rdf:type rdf:Property; | |||
rdfs:domain <Baguette>; | |||
rdfs:range <Ingredient>. | |||
</rdf> | |||
===== Boulangerie Name ===== | |||
<rdf> | |||
<boulangerieName> rdf:type rdf:Property; | |||
rdfs:domain <Boulangerie>. | |||
</rdf> | |||
===== Boulangerie contain baguettes ===== | |||
<rdf> | |||
<boulangerieBaguette> rdf:type rdf:Property; | |||
rdfs:domain <Boulangerie>; | |||
rdfs:range <Baguette>. | |||
</rdf> | |||
==== Data Exemple ==== | |||
===== ingredients ===== | |||
<rdf> | |||
ex:farine_seigle rdf:type <Ingredient> . | |||
ex:farine_seigle <ingredientName> "Farine de seigle" . | |||
ex:farine_seigle <ingredientCalorie> "30"^^xsd:double . | |||
</rdf> | |||
<rdf> | |||
ex:farine_ble rdf:type <Ingredient> . | |||
ex:farine_ble <ingredientName> "Farine de Blé" . | |||
ex:farine_ble <ingredientCalorie> "20"^^xsd:double . | |||
</rdf> | |||
<rdf> | |||
ex:graine_melange rdf:type <Ingredient> . | |||
ex:graine_melange <ingredientName> "Mélange de Graines" . | |||
ex:graine_melange <ingredientCalorie> "10"^^xsd:double . | |||
</rdf> | |||
<rdf> | |||
ex:piments_poudre rdf:type <Ingredient> . | |||
ex:piments_poudre <ingredientName> "Piments en pouvre" . | |||
ex:piments_poudre <ingredientCalorie> "50"^^xsd:double . | |||
</rdf> | |||
===== baguette ===== | |||
<rdf> | |||
ex:baguette_seigle rdf:type <Baguette> . | |||
ex:baguette_seigle <baguetteName> "Baguette de seigle" . | |||
ex:baguette_seigle <baguettePrice> "1"^^xsd:double . | |||
ex:baguette_seigle ex:baguetteIngredients ex:farine_seigle . | |||
ex:baguette_seigle ex:baguetteIngredients ex:graine_melange . | |||
</rdf> | |||
<rdf> | |||
ex:baguette_bio rdf:type <Baguette> . | |||
ex:baguette_bio <baguetteName> "Pain Bio" . | |||
ex:baguette_bio <baguettePrice> "2"^^xsd:double . | |||
ex:baguette_bio ex:baguetteIngredients ex:farine_ble . | |||
</rdf> | |||
<rdf> | |||
ex:baguette_piments rdf:type <Baguette> . | |||
ex:baguette_piments <baguetteName> "Pain Piments" . | |||
ex:baguette_piments <baguettePrice> "3"^^xsd:double . | |||
ex:baguette_piments ex:baguetteIngredients ex:farine_ble . | |||
ex:baguette_piments ex:baguetteIngredients ex:graine_melange . | |||
ex:baguette_piments ex:baguetteIngredients ex:piments_poudre . | |||
</rdf> | |||
===== boulangerie ===== | |||
<rdf> | |||
ex:boulangerie_gagny_1 rdf:type <Boulangerie> . | |||
ex:boulangerie_gagny_1 <boulangerieName> "Baguette de seigle" . | |||
ex:boulangerie_gagny_1 ex:boulangerieBaguette ex:baguette_seigle . | |||
</rdf> | |||
<rdf> | |||
ex:boulangerie_gagny_2 rdf:type <Boulangerie> . | |||
ex:boulangerie_gagny_2 <boulangerieName> "Baguette de seigle" . | |||
ex:boulangerie_gagny_2 ex:boulangerieBaguette ex:baguette_seigle . | |||
</rdf> |
Version du 11 décembre 2020 à 14:38
Définition de votre graphe de connaissances
Vocabulaire
Base
BASE <https://data.escr.fr/wiki/Utilisateur:Stan/Test#>
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
Ingredient
<Ingredient> rdf:type rdfs:class.
Baguette
<Baguette> rdf:type rdfs:class.
Boulangerie
<Boulangerie> rdf:type rdfs:class.
Propriétés
Ingredient Name
<ingredientName> rdf:type rdf:Property;
rdfs:domain <Ingredient>.
Ingredient Calorie
<ingredientCalorie> rdf:type rdf:Property;
rdfs:domain <Ingredient>.
Baguette Name
<baguetteName> rdf:type rdf:Property;
rdfs:domain <Baguette>.
Baguette Calorie
<baguettePrice> rdf:type rdf:Property;
rdfs:domain <Baguette>.
Baguette Ingredient
<baguetteIngredients> rdf:type rdf:Property;
rdfs:domain <Baguette>;
rdfs:range <Ingredient>.
Boulangerie Name
<boulangerieName> rdf:type rdf:Property;
rdfs:domain <Boulangerie>.
Boulangerie contain baguettes
<boulangerieBaguette> rdf:type rdf:Property;
rdfs:domain <Boulangerie>;
rdfs:range <Baguette>.
Data Exemple
ingredients
ex:farine_seigle rdf:type <Ingredient> .
ex:farine_seigle <ingredientName> "Farine de seigle" .
ex:farine_seigle <ingredientCalorie> "30"^^xsd:double .
ex:farine_ble rdf:type <Ingredient> .
ex:farine_ble <ingredientName> "Farine de Blé" .
ex:farine_ble <ingredientCalorie> "20"^^xsd:double .
ex:graine_melange rdf:type <Ingredient> .
ex:graine_melange <ingredientName> "Mélange de Graines" .
ex:graine_melange <ingredientCalorie> "10"^^xsd:double .
ex:piments_poudre rdf:type <Ingredient> .
ex:piments_poudre <ingredientName> "Piments en pouvre" .
ex:piments_poudre <ingredientCalorie> "50"^^xsd:double .
baguette
ex:baguette_seigle rdf:type <Baguette> .
ex:baguette_seigle <baguetteName> "Baguette de seigle" .
ex:baguette_seigle <baguettePrice> "1"^^xsd:double .
ex:baguette_seigle ex:baguetteIngredients ex:farine_seigle .
ex:baguette_seigle ex:baguetteIngredients ex:graine_melange .
ex:baguette_bio rdf:type <Baguette> .
ex:baguette_bio <baguetteName> "Pain Bio" .
ex:baguette_bio <baguettePrice> "2"^^xsd:double .
ex:baguette_bio ex:baguetteIngredients ex:farine_ble .
ex:baguette_piments rdf:type <Baguette> .
ex:baguette_piments <baguetteName> "Pain Piments" .
ex:baguette_piments <baguettePrice> "3"^^xsd:double .
ex:baguette_piments ex:baguetteIngredients ex:farine_ble .
ex:baguette_piments ex:baguetteIngredients ex:graine_melange .
ex:baguette_piments ex:baguetteIngredients ex:piments_poudre .
boulangerie
ex:boulangerie_gagny_1 rdf:type <Boulangerie> .
ex:boulangerie_gagny_1 <boulangerieName> "Baguette de seigle" .
ex:boulangerie_gagny_1 ex:boulangerieBaguette ex:baguette_seigle .
ex:boulangerie_gagny_2 rdf:type <Boulangerie> .
ex:boulangerie_gagny_2 <boulangerieName> "Baguette de seigle" .
ex:boulangerie_gagny_2 ex:boulangerieBaguette ex:baguette_seigle .