Skip to content

Instantly share code, notes, and snippets.

View Daniel-Mietchen's full-sized avatar
🐢
The climate crisis requires swift and sustained ACTION.

Daniel Mietchen Daniel-Mietchen

🐢
The climate crisis requires swift and sustained ACTION.
View GitHub Profile

How to use Gephi to visualize from Wikidata

I'm a long-time fan of the graph visualization tool Gephi and since Wikimania 2019 I got involved with Wikidata. I was aware of the Gephi plugin "Semantic Web Importer", but when I check it out, I only find old tutorials connecting to DBpedia, not Wikidata:

@Daniel-Mietchen
Daniel-Mietchen / YASHE.md
Last active April 7, 2020 23:17 — forked from mistermboy/YASHE.md
#YASHE: How to use YASHE

This example shows how to use YASHE in your own project.

You can initialize YASHE via its constructor, or via the command fromTextArea.

In the html files shown below, you will see how to initialize YASHE both ways.

@Daniel-Mietchen
Daniel-Mietchen / Wikidata-IDs-for-Altmetric-top-100-2017.txt
Last active December 13, 2017 23:11
Wikidata IDs for the Altmetric Top 100 for 2017. This file provides an additional column for the CSV at http://doi.org/10.6084/m9.figshare.5683957 , from which the order of rows has been retained. This column contains the Wikidata identifiers for the publications mentioned in the Altmetric dataset.
Wikidata ID
Q38597346
Q45374345
Q39088812
Q45370513
Q30397942
Q42213749
Q45370518
Q27979455
Q30151500
import html
import requests
import threading
class AskPubMed(threading.Thread):
def __init__ (self, threadID, name, packages):
threading.Thread.__init__(self)
self.threadID = threadID
self.name = name
self.packages = packages