Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Datasets for Knowledge Graph Completion with textual information about the entities
| Date | Stars |
|---|---|
| 2026-07-31 | 297 |
| 2026-08-02 | 297 |
| 2026-08-06 | 297 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# Datasets for Knowledge Graph Completion with Textual Information about Entities
I needed textual information about the entities in knowledge completion datasets
so I aquired it. I'm sharing it here, no proof for correctness. Use it with caution.
Under `other/` you can find other (mostly toyish) KGC datasets where no text matching has been done.
## FB15k / FB15k-237
These datasets are based on the Freebase Knowledge Graph and entities are mentioned
by their Freebase id. As the Freebase KG is archived and not in use anymore, I matched
the entities with Wikidata entities and obtained metadata from Wikidata. Wikidata entities
contain a `freebase_id` relation, which was used to match the entities. However, not all
entities could be resolved that way so I queried DBPedia for the remaining.
There still remained about ~40 entities for which no textual information could be found.
See the [entity2wikidata.json](FB15k-237) file for metadata about the Freebase entities.
```python
def freebase2wikidata(entities):
"""
This method constructs a dictionary mapping an freebase id to some wikidata entities.
:param entities: an iterable of string entities
:return:
"""
import requests
from SPARQLWrapper import SPARQLWrapper, JSON
sparql = SPARQLWrapper("http://dbpedia.org/sparql")
sparql.setReturnFormat(JSON)
def dbpedia_with_freebase(entities):
"""
:param entities: list of entities
:return: dict: { "freebase" : { "wikidata1" : {},
"wikidata2" : {},
},
...}
"""
### Part 1 ####
# Query DBPedia for Wikidata Ids
# finds all wikidata_ids that have this freebase id
dbpedia_query = """PREFIX dbpedia: <http://dbpedia.org/resource/>
SELECT DISTINCT ?other WHERE {
?obj (owl:sameAs) <http://rdf.freebase.com/ns/%s>.
?obj (owl:sameAs) ?other .
FILTER (strstarts(str(?other), 'http://www.wikidata.org/entity/'))
}"""
res = {}
for e in entities:
q = dbpedia_query % e[1:].replace('/', '.') # /m/xxxx -> m.xxxx
sparql.setQuery(q)
results = sparql.query().convert()
for result in results["results"]["bindings"]:
if e not in res:
res[e] = {}
wd = result['other']['value'].replace(
'http://www.wikidata.org/entity/', '')
res[e][wd] = {}
return res
def wikidata_with_freebase(entities):
"""
:param entities: list of freebase entities
:return: dict {
'/m/01bs9f': {'Q13582652': {'alternatives': set(),
'description': 'engineer specialising
in design, construction
and maintenance of the
built environment',
'label': 'civil engineer',
'wikipedia': set()
}
},
'/m/01cky2': ...
}
"""
query_wikidata_with_freebase = '''
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?wd ?fb ?wdLabel ?wdDescription ?alternative ?sitelink
WHERE {
?wd wdt:P646 ?fb .
OPTIONAL { ?wd schema:description ?itemdesc . }
OPTIONAL { ?wd skos:altLabel ?alternative .
FILTER (lang(?alternaExcerpt of 12,676 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:5ca4fece5b5a0eb1, topic:dataset, name:datasets, desc:datasets
matched fp:5ca4fece5b5a0eb1, topic:knowledge-graph, desc:knowledge graph