Skip to content

Commit

Permalink
récupérer dbpedia
Browse files Browse the repository at this point in the history
  • Loading branch information
atterebf committed May 6, 2024
1 parent f40621d commit 099caa1
Show file tree
Hide file tree
Showing 3 changed files with 1,577 additions and 14 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

## fichiers provisoirement invisibles
/notebooks_jupyter/dbpedia_exploration/dbp_merge_relations_interactif.ipynb
/notebooks_jupyter/wikidata_exploration/wikidata_get_data_from_dbpedia.ipynb
/notebooks_jupyter/wikidata_exploration/wikidata_get_data_from_dbpedia_rdflib.ipynb

# CSV non versionnés, sauf exceptions
Expand Down
13 changes: 0 additions & 13 deletions Wikidata/codage_occupations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,6 @@ ORDER BY eff DESC
LIMIT 100;


WTIH tw1 AS (
SELECT DISTINCT wp.personUri, wp.personLabel, od.label
FROM wdt_person_occupation po
JOIN wdt_occupation wo ON po.occupationUri = wo.wdt_uri
JOIN wdt_personne wp ON wp.personUri = po.personUri
LEFT JOIN occupation_domain od ON od.pk_occupation_domain = wo.fk_domain
ORDER BY wp.personUri, od.label)
SELECT wp.personUri, wp.personLabel, count(*), group_concat(od.label)
FROM tw1
GROUP BY wp.personUri, wp.personLabel;




-- regrouper par effectifs de domaines
WITH tw1 AS (
Expand Down
Loading

0 comments on commit 099caa1

Please sign in to comment.