« Utilisateur:Karima Rafes/Exemple de page projet pour ESGI » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
(insert a sample of XML) |
||
Ligne 12 : | Ligne 12 : | ||
Three datasets exists and these data have to be reusable in a knowledge graph accessible via a SPARQL service. | Three datasets exists and these data have to be reusable in a knowledge graph accessible via a SPARQL service. | ||
A XML file of an organisational structure of the client: | |||
<syntaxhighlight lang="xml"> | |||
<orgmap> | |||
<dept id="1" name="Engineering"> | |||
<manager> | |||
<email>A.B@company.org</email> | |||
<name>A B</name> | |||
<address>street1 number1, CodePostal1 city1</address> | |||
<phone>phonenumber1</phone> | |||
</manager> | |||
<employees> | |||
<employee> | |||
<email>C.D@company.org</email> | |||
<name>C D</name> | |||
<address>street2 number2, CodePostal2 city2</address> | |||
<phone>phonenumber2</phone> | |||
<productExpert>TV, Transistor</productExpert> | |||
</employee> | |||
<employee> | |||
<email>E.F@company.org</email> | |||
<name>E F</name> | |||
<address>street3 number3, CodePostal1 city1</address> | |||
<phone>phonenumber3</phone> | |||
<productExpert>TV, Oscillator</productExpert> | |||
</employee> | |||
</employees> | |||
<products> | |||
<product id="A000-1234567" /> | |||
<product id="A000-1234568" /> | |||
</products> | |||
<services> | |||
<service id="B000-8776317" /> | |||
<service id="B000-3449390" /> | |||
</services> | |||
</dept> | |||
<orgmap> | |||
</syntaxhighlight> | |||
Version du 5 septembre 2021 à 07:45
Based on the given datasets, an ontology should be engineered, the data shall be integrated in a knowledge graph as well as the business questions should be answered from that graph.
Objectives
A company want to make their knowledge graph accessible via a SPARQL service.
The SPARQL service need to answer business questions, examples:
- Find related products (e.g. cluster by packaging size or weight)
- Find services / products without a product manager
- Find services / products without responsible department
- Identify alternative experts that can take over responsibility
Three datasets exists and these data have to be reusable in a knowledge graph accessible via a SPARQL service.
A XML file of an organisational structure of the client:
<orgmap>
<dept id="1" name="Engineering">
<manager>
<email>A.B@company.org</email>
<name>A B</name>
<address>street1 number1, CodePostal1 city1</address>
<phone>phonenumber1</phone>
</manager>
<employees>
<employee>
<email>C.D@company.org</email>
<name>C D</name>
<address>street2 number2, CodePostal2 city2</address>
<phone>phonenumber2</phone>
<productExpert>TV, Transistor</productExpert>
</employee>
<employee>
<email>E.F@company.org</email>
<name>E F</name>
<address>street3 number3, CodePostal1 city1</address>
<phone>phonenumber3</phone>
<productExpert>TV, Oscillator</productExpert>
</employee>
</employees>
<products>
<product id="A000-1234567" />
<product id="A000-1234568" />
</products>
<services>
<service id="B000-8776317" />
<service id="B000-3449390" />
</services>
</dept>
<orgmap>
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:Karima_Rafes/Exemple_de_page_projet_pour_ESGI#>
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 |
03:02:36 22/11/2024 -- Actualiser -- Durée de la requête :0.022s -- CSV |
p | v |
---|---|
http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://www.w3.org/2000/01/rdf-schema#Class |
03:02:37 22/11/2024 -- Actualiser -- Durée de la requête :0.019s -- 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 |
03:02:37 22/11/2024 -- Actualiser -- Durée de la requête :0.024s -- 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 |
03:02:37 22/11/2024 -- Actualiser -- Durée de la requête :0.02s -- CSV |
Vérification que les données sont chargées :
Démonstration
Des copies d'écran