siprojuris:enrichir_les_donnes_avec_lod
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| siprojuris:enrichir_les_donnes_avec_lod [2021/12/09 13:31] – [Données disponibles dans DBPedia] fberetta | siprojuris:enrichir_les_donnes_avec_lod [2024/01/10 19:15] (Version actuelle) – Mise à jour liens valamercery | ||
|---|---|---|---|
| Ligne 18: | Ligne 18: | ||
| ===== Un exemple : Gaston, | ===== Un exemple : Gaston, | ||
| - | ATTENTION : requêtes à exécuter sur le [[http://bhp-publi.ish-lyon.cnrs.fr:8888/ | + | ATTENTION : requêtes à exécuter sur le [[https://dataforhumanities.abes.fr/ |
| ==== Son parcours biographique | ==== Son parcours biographique | ||
| Ligne 26: | Ligne 26: | ||
| WHERE | WHERE | ||
| - | {GRAPH <http://symogih.org/graph/ | + | {GRAPH <https://dataforhumanities.org/sparql-endpoint/ |
| { | { | ||
| ?tyro rdfs:label ?TyRoLabel. | ?tyro rdfs:label ?TyRoLabel. | ||
| ?tyin rdfs:label ?TyInLabel. | ?tyin rdfs:label ?TyInLabel. | ||
| - | {GRAPH <http://symogih.org/graph/ | + | {GRAPH <https://dataforhumanities.org/sparql-endpoint/ |
| {?s ?p syr: | {?s ?p syr: | ||
| sym: | sym: | ||
| Ligne 52: | Ligne 52: | ||
| { | { | ||
| - | GRAPH <http://symogih.org/graph/ | + | GRAPH <https://dataforhumanities.org/sparql-endpoint/ |
| {syr: | {syr: | ||
| } | } | ||
| Ligne 71: | Ligne 71: | ||
| WHERE | WHERE | ||
| { | { | ||
| - | {GRAPH <http://symogih.org/graph/ | + | {GRAPH <https://dataforhumanities.org/sparql-endpoint/ |
| {syr: | {syr: | ||
| } | } | ||
| Ligne 95: | Ligne 95: | ||
| SELECT * | SELECT * | ||
| WHERE { | WHERE { | ||
| - | SERVICE <http://bhp-publi.ish-lyon.cnrs.fr:8888/sparql> | + | SERVICE <https://dataforhumanities.abes.fr/ |
| { | { | ||
| - | GRAPH <http://symogih.org/graph/ | + | GRAPH <https://dataforhumanities.org/sparql-endpoint/ |
| { | { | ||
| ?s owl:sameAs ?o. | ?s owl:sameAs ?o. | ||
| Ligne 112: | Ligne 112: | ||
| WHERE { | WHERE { | ||
| { | { | ||
| - | SERVICE <http://bhp-publi.ish-lyon.cnrs.fr:8888/sparql> | + | SERVICE <https://dataforhumanities.abes.fr/ |
| {SELECT * | {SELECT * | ||
| WHERE { | WHERE { | ||
| - | GRAPH <http://symogih.org/graph/ | + | GRAPH <https://dataforhumanities.org/sparql-endpoint/ |
| { | { | ||
| ?s owl:sameAs ?idref. | ?s owl:sameAs ?idref. | ||
| Ligne 134: | Ligne 134: | ||
| WHERE { | WHERE { | ||
| { | { | ||
| - | SERVICE <http://bhp-publi.ish-lyon.cnrs.fr:8888/sparql> | + | SERVICE <https://dataforhumanities.abes.fr/ |
| {SELECT * | {SELECT * | ||
| WHERE { | WHERE { | ||
| - | GRAPH <http://symogih.org/graph/ | + | GRAPH <https://dataforhumanities.org/sparql-endpoint/ |
| { | { | ||
| ?s owl:sameAs ?idref. | ?s owl:sameAs ?idref. | ||
| Ligne 164: | Ligne 164: | ||
| WHERE { | WHERE { | ||
| { | { | ||
| - | SERVICE <http://bhp-publi.ish-lyon.cnrs.fr:8888/sparql> | + | SERVICE <https://dataforhumanities.abes.fr/ |
| {SELECT * | {SELECT * | ||
| WHERE { | WHERE { | ||
| - | GRAPH <http://symogih.org/graph/ | + | GRAPH <https://dataforhumanities.org/sparql-endpoint/ |
| { | { | ||
| ?s owl:sameAs ?idref. | ?s owl:sameAs ?idref. | ||
| Ligne 184: | Ligne 184: | ||
| - | === Les informations qu' | + | === La population cherchée |
| - | A exécuter sur le // | + | A exécuter sur le // |
| < | < | ||
| Ligne 192: | Ligne 192: | ||
| <code sparql> | <code sparql> | ||
| - | SELECT | + | PREFIX rdfs: < |
| + | PREFIX owl: < | ||
| + | |||
| + | SELECT | ||
| + | |||
| WHERE { | WHERE { | ||
| - | { | + | |
| - | SERVICE <http://bhp-publi.ish-lyon.cnrs.fr:8888/ | + | |
| - | {SELECT * | + | SERVICE <https://dataforhumanities.abes.fr/ |
| - | WHERE { | + | {SELECT * |
| - | GRAPH <http://symogih.org/graph/ | + | WHERE { |
| - | { | + | GRAPH <https://dataforhumanities.org/sparql-endpoint/ |
| - | ?s owl:sameAs ?idref. | + | { |
| - | } | + | ?s owl:sameAs ?idref; |
| - | } | + | < |
| - | } | + | |
| - | } | + | } |
| - | ?idref owl:sameAs ?uri. | + | # FILTER(CONTAINS(?label, 'Bras')) |
| - | BIND (uri(replace(str(?uri), 'foaf: | + | } |
| - | { | + | |
| - | SERVICE < | + | |
| - | { | + | |
| - | SELECT * | + | |
| - | WHERE { | + | |
| - | ?new_uri ?pb ?ob | + | |
| - | } | + | |
| - | } | + | |
| } | } | ||
| + | |||
| + | ?s_bnf owl:sameAs ?idref. | ||
| + | |||
| + | ?s_bnf owl:sameAs ?uri. | ||
| + | |||
| + | |||
| } | } | ||
| + | ORDER BY ?s_bnf | ||
| </ | </ | ||
| + | < | ||
| - | === Retenir uniquement | + | Il y a un certain nombre de ces informations qui manquent dans les données SIPROJURIS: si elles sont extraites sous forme de données semi-structurées au cours du défi, elles pourront être intégrées par les soins du projet // |
| - | A exécuter sur le // | ||
| - | < | ||
| - | Il y a un certain nombre de ces informations | + | === Toutes les informations |
| <code sparql> | <code sparql> | ||
| - | SELECT | + | PREFIX rdfs: < |
| + | PREFIX owl: < | ||
| + | |||
| + | SELECT | ||
| + | |||
| WHERE { | WHERE { | ||
| - | { | + | |
| - | SERVICE <http://bhp-publi.ish-lyon.cnrs.fr:8888/ | + | |
| - | {SELECT * | + | SERVICE <https://dataforhumanities.abes.fr/ |
| - | WHERE { | + | {SELECT * |
| - | GRAPH <http://symogih.org/graph/ | + | WHERE { |
| - | { | + | GRAPH <https://dataforhumanities.org/sparql-endpoint/ |
| - | ?s owl:sameAs ?idref. | + | { |
| - | } | + | ?s owl:sameAs ?idref; |
| - | } | + | < |
| - | } | + | |
| - | } | + | } |
| - | ?idref owl:sameAs ?uri. | + | # FILTER(CONTAINS(?label, 'Bras')) |
| - | BIND (uri(replace(str(?uri), 'foaf: | + | } |
| - | { | + | LIMIT 20 |
| - | SERVICE < | + | } |
| - | { | + | |
| - | SELECT * | + | |
| - | WHERE { | + | |
| - | ?new_uri < | + | |
| - | } | + | |
| - | } | + | |
| } | } | ||
| + | |||
| + | ?s_bnf owl:sameAs ?idref. | ||
| + | |||
| + | # ?s_bnf ?p ?entity. | ||
| + | |||
| + | ?s_bnf < | ||
| + | |||
| + | # ?entity ?p ? | ||
| + | |||
| } | } | ||
| + | ORDER BY ?s_bnf ?p | ||
| </ | </ | ||
| - | |||
| - | |||
| ==== Obtenir les données concernant des acteurs similaires ==== | ==== Obtenir les données concernant des acteurs similaires ==== | ||
| Ligne 321: | Ligne 329: | ||
| | | ||
| { | { | ||
| - | SERVICE <http://bhp-publi.ish-lyon.cnrs.fr:8888/sparql> | + | SERVICE <https://dataforhumanities.abes.fr/ |
| {SELECT * | {SELECT * | ||
| WHERE { | WHERE { | ||
| - | GRAPH <http://symogih.org/graph/ | + | GRAPH <https://dataforhumanities.org/sparql-endpoint/ |
| { | { | ||
| ?s owl:sameAs ?idref. | ?s owl:sameAs ?idref. | ||
| Ligne 353: | Ligne 361: | ||
| { | { | ||
| - | SERVICE <http://bhp-publi.ish-lyon.cnrs.fr:8888/sparql> | + | SERVICE <https://dataforhumanities.abes.fr/ |
| {SELECT * | {SELECT * | ||
| WHERE { | WHERE { | ||
| - | GRAPH <http://symogih.org/graph/ | + | GRAPH <https://dataforhumanities.org/sparql-endpoint/ |
| { | { | ||
| ?s owl:sameAs ?idref. | ?s owl:sameAs ?idref. | ||
siprojuris/enrichir_les_donnes_avec_lod.1639053093.txt.gz · Dernière modification : de fberetta
