View hashlib-openrefine.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
return hashlib.sha1(value.encode('utf-8')).digest().encode('hex') |
View query_wikidata_visual_VC.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * WHERE { | |
?visual wdt:P31 ?type . | |
?type wdt:P279*|wdt:P31 wd:Q4502142 . | |
?visual wdt:P18 ?image ; | |
wdt:P571 ?time . | |
OPTIONAL { | |
?visual wdt:P170 ?creator | |
} |
View smithsonian_crm.sparql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT ?creation_date ?appellation ?label ?dimension_value ?dimension_unit | |
WHERE { | |
?x crm:P1_is_identified_by ?appellation ; | |
crm:P43_has_dimension ?dimension . | |
?creation_event crm:P108_has_produced ?x ; | |
crm:P4_has_time-span ?creation_date . |
View names_mermaid.mmd
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View artwork_mmd.mmd
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View convert_geonames.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# script modified from https://github.com/rhasan/sw/blob/master/genames/convert2ntriples.py | |
# This script will take genames rdf dump available here http://download.geonames.org/all-geonames-rdf.zip | |
# and convert each triples to N-Triple seralization. | |
# The dump has one rdf document per toponym on every line of the file. | |
# The produced N-Triples will be written in geonames.nt file. The final geonames.nt file is approximately 13.21GB | |
#!/usr/bin/python | |
import rdflib | |
fo = open("geonames.nt", "wb") |
View viaf_sameness.nt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<http://viaf.org/viaf/122650373> <http://schema.org/sameAs> <http://www.wikidata.org/entity/Q19596483> . | |
<http://viaf.org/viaf/122650373> <http://schema.org/sameAs> <http://viaf.org/viaf/122650373> . |
View bnf_encoding_sameness.nt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<http://data.bnf.fr/ark:/12148/cb11896729n> <http://www.w3.org/2002/07/owl#sameAs> <http://wikidata.org/entity/Q7192019> . | |
<http://data.bnf.fr/ark:/12148/cb11896729n> <http://xmlns.com/foaf/0.1/focus> <http://data.bnf.fr/ark:/12148/cb11896729n#about> . | |
<http://data.bnf.fr/ark:/12148/cb11896729n#about> <http://www.w3.org/2002/07/owl#sameAs> <http://data.bnf.fr/ark:/12148/cb11896729n#foaf:Person> . | |
<http://data.bnf.fr/ark:/12148/cb11896729n#about> <http://www.w3.org/2002/07/owl#sameAs> <http://viaf.org/viaf/44296876> . | |
<http://data.bnf.fr/ark:/12148/cb11896729n#about> <http://www.w3.org/2002/07/owl#sameAs> <http://www.idref.fr/026787431/id> . |
View bnf_encoding_labels.nt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<http://data.bnf.fr/ark:/12148/cb11896729n> <http://xmlns.com/foaf/0.1/focus> <http://data.bnf.fr/ark:/12148/cb11896729n#about> . | |
<http://data.bnf.fr/ark:/12148/cb11896729n#about> <http://xmlns.com/foaf/0.1/familyName> "Choffard" . | |
<http://data.bnf.fr/ark:/12148/cb11896729n#about> <http://xmlns.com/foaf/0.1/gender> "male" . | |
<http://data.bnf.fr/ark:/12148/cb11896729n#about> <http://xmlns.com/foaf/0.1/givenName> "Pierre-Philippe" . | |
<http://data.bnf.fr/ark:/12148/cb11896729n#about> <http://xmlns.com/foaf/0.1/name> "Pierre-Philippe Choffard" . | |
NewerOlder