I hereby claim:
- I am mommi84 on github.
- I am mommi84 (https://keybase.io/mommi84) on keybase.
- I have a public key whose fingerprint is C192 8E2A E379 94E5 B045 6C93 EF6D 3A8A 8892 1453
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
""" | |
From Sagemath console: | |
cd /path/to/file/ | |
load("visual_all_in_one.py") | |
Author: Tommaso Soru <[email protected]> | |
""" | |
import sys |
This list contains repositories of libraries and approaches for knowledge graph embeddings, which are vector representations of entities and relations in a multi-relational directed labelled graph. Licensed under CC0.
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> | |
SELECT DISTINCT ?s ?t2 WHERE { | |
?s a ?t2 | |
MINUS { | |
?s a ?t1, ?t2 . | |
?t1 rdfs:subClassOf ?t2 . | |
} | |
} |
#!/usr/bin/env python | |
import sys | |
import urllib2, urllib, httplib, json | |
reload(sys) | |
sys.setdefaultencoding("utf-8") | |
ENDPOINT = "http://stats.lod2.eu/sparql" | |
GRAPH = "" | |
BUFFER = 10000 |
#!/usr/bin/env python | |
""" | |
Conversion from integer numbers to English words. | |
Author: Tommaso Soru <[email protected]> | |
Example: | |
$ python numbers_words.py 3213213000312 | |
threetrillionstwohundredsthirteenbillionstwohundredsthirteenmillionsthreehundredstwelve |
#!/usr/bin/env python | |
""" | |
ProDiMem - Processor, disk, memory monitor for computations. | |
Usage: | |
python prodimem.py [PID] [SECONDS] | |
Author: | |
Tommaso Soru <[email protected]> |
SELECT ?s (count(?o) AS ?c) { | |
{ | |
<Y> ?p ?o . | |
?s ?p ?o ; a <X> | |
} UNION { | |
?o ?p <Y> , ?s . | |
?s a <X> | |
} | |
} GROUP BY ?s ORDER BY DESC(?c) LIMIT 11 |
#!/usr/bin/env python | |
import sys | |
import bibtexparser | |
reload(sys) | |
sys.setdefaultencoding("utf-8") | |
def fd(s): | |
if s[-1] != '.': | |
s += '.' |
import urllib2, urllib, httplib, json | |
import sys | |
MAX_RESULTS = 10000 | |
graph = "" | |
endpoint = "" | |
# Execute a SPARQL query. | |
def sparql_query(query): |