AtilioA / wikidata-evaluation-based-on-ontologies

🔬 Some SPARQL queries and Python scripts I've written during my undergraduate research (Scientific Initiation) in 2020-2021.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An evaluation of the Wikidata platform based on ontologies

Some SPARQL queries and Python scripts I've written during my undergraduate research (Scientific Initiation) in 2020-2021.

Running scripts does not require any external libraries except for graphviz (as stated in requirements.txt) if you want to generate graphs with scripts/identify_taxonomic_trees.py. Stardog is only required for labels to be added to the ranking and to find subclasses before generating graphs, so it is possible to generate rankings without it, but labels for entities will be missing. Stardog was used to query local Wikidata dump and stardog is required to be set on your PATH variable. It is also required having a Stardog server up and running (stardog-admin server start) for queries to be served. These scripts were only tested and executed on Linux distributions (especifically, Linux Mint 20) and may not work on other operating systems.

Directory structure

queries/: .sparql files for queries;

    queries/results: queries results;

    queries/other: old/unused .sparql files;


scripts/: scripts that manipulate queries results, etc;

    queries/output: scripts outputs;

        queries/output/dots: graphs produced with graphviz;

        queries/output/ranking: rankings for AP1 and AP2;

    queries/other: old/unused files.

About

🔬 Some SPARQL queries and Python scripts I've written during my undergraduate research (Scientific Initiation) in 2020-2021.

License:The Unlicense


Languages

Language:Python 100.0%