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

De ESCR
Aller à la navigation Aller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
 
(2 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
BASE <https://data.escr.fr/wiki/Utilisateur:Chricris/ExerciceESGI_2020_10_0#>
Introduction


== Description ==
== 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:Chricris/ExerciceESGI_2020_10_09#>
</rdf>
==== Préfixes ====
<rdf>
PREFIX ex: <http://www.example.org/>
PREFIX ex: <http://www.example.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
</rdf>


==== Classes ====
===== Movie =====
<rdf>
<Movie> rdf:type rdfs:Class .
<Movie> rdf:type rdfs:Class .
</rdf>


===== MovieStaff =====
<rdf>
<MovieStaff> rdf:type rdfs:Class .
<MovieStaff> rdf:type rdfs:Class .
</rdf>


===== Actor =====
<rdf>
<Actor> rdf:type rdfs:Class .
<Actor> rdf:type rdfs:Class .
<Actor> rdfs:subClassOf <MovieStaff>.
<Actor> rdfs:subClassOf <MovieStaff>.
</rdf>


==== Propriétés====
===== participatesIn =====
<rdf>
<participatesIn> rdf:type rdf:Property .
<participatesIn> rdf:type rdf:Property .
</rdf>


===== participatesIn =====
<rdf>
<starsIn> rdf:type rdf:Property .
<starsIn> rdf:type rdf:Property .
<starsIn> rdfs:subPropertyOf <participatesIn> .
<starsIn> rdfs:subPropertyOf <participatesIn> .
Ligne 19 : Ligne 54 :
<starsIn>  rdfs:domain <Actor>.
<starsIn>  rdfs:domain <Actor>.
<starsIn>  rdfs:range  <Movie>.
<starsIn>  rdfs:range  <Movie>.
</rdf>


=== Exemple d'un jeu de données ===
<rdf>
ex:bradPitt rdf:type <Actor>.
ex:bradPitt rdf:type <Actor>.
ex:bradPitt ex:starsIn ex:worldWarZ .
ex:bradPitt ex:starsIn ex:worldWarZ .
</rdf>
=== Requêtes ===
Vérification que le vocabulaire est bien chargé :
{{#sparql:
BASE <https://data.escr.fr/wiki/Utilisateur:Chricris/ExerciceESGI_2020_10_09#>
SELECT *
WHERE {
<Movie> ?p ?v .
}
}}
{{#sparql:
BASE <https://data.escr.fr/wiki/Utilisateur:Chricris/ExerciceESGI_2020_10_09#>
SELECT *
WHERE {
<MovieStaff> ?p ?v .
}
}}
{{#sparql:
BASE <https://data.escr.fr/wiki/Utilisateur:Chricris/ExerciceESGI_2020_10_09#>
SELECT *
WHERE {
<Actor> ?p ?v .
}
}}
{{#sparql:
BASE <https://data.escr.fr/wiki/Utilisateur:Chricris/ExerciceESGI_2020_10_09#>
SELECT *
WHERE {
<participatesIn> ?p ?v .
}
}}
{{#sparql:
BASE <https://data.escr.fr/wiki/Utilisateur:Chricris/ExerciceESGI_2020_10_09#>
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 .
}
}}

Version actuelle datée du 30 octobre 2020 à 08:15

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:Chricris/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#>

Classes

Movie
<Movie> rdf:type rdfs:Class .
MovieStaff
<MovieStaff> rdf:type rdfs:Class .
Actor
<Actor> rdf:type rdfs:Class .
<Actor> rdfs:subClassOf <MovieStaff>.

Propriétés

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

<starsIn>  rdfs:domain <Actor>.
<starsIn>  rdfs:range  <Movie>.

Exemple d'un jeu de données

ex:bradPitt rdf:type <Actor>.
ex:bradPitt ex:starsIn ex:worldWarZ .

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
09:49:19 03/05/2024 -- Actualiser -- Durée de la requête :0.031s -- CSV


p v
http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2000/01/rdf-schema#Class
09:49:19 03/05/2024 -- Actualiser -- Durée de la requête :0.028s -- 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:Chricris/ExerciceESGI_2020_10_09#MovieStaff
09:49:19 03/05/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
09:49:19 03/05/2024 -- Actualiser -- Durée de la requête :0.029s -- 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:Chricris/ExerciceESGI_2020_10_09#participatesIn
http://www.w3.org/2000/01/rdf-schema#domain https://data.escr.fr/wiki/Utilisateur:Chricris/ExerciceESGI_2020_10_09#Actor
http://www.w3.org/2000/01/rdf-schema#range https://data.escr.fr/wiki/Utilisateur:Chricris/ExerciceESGI_2020_10_09#Movie
09:49:19 03/05/2024 -- Actualiser -- Durée de la requête :0.027s -- 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:49:19 03/05/2024 -- Actualiser -- Durée de la requête :0.028s -- CSV