Skip to content

Instantly share code, notes, and snippets.

View jimkont's full-sized avatar

Dimitris Kontokostas jimkont

View GitHub Profile
@jimkont
jimkont / Wikimedia-Different-birthDates-wkd-nl-el.tsv
Last active August 31, 2017 07:28
Provides resources from Wikidata, Dutch DBpedia and Greek DBpedia that have a dbo:birthdate defined and it is different
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 4 columns, instead of 3. in line 1.
DBpediaIdentifier date1 date2 date3
http://wikidata.dbpedia.org/resource/Q770369 wkd:1980-3-30 nl:1977-03-30
http://wikidata.dbpedia.org/resource/Q2361400 wkd:1950-1-1 nl:1950-01-25
http://wikidata.dbpedia.org/resource/Q704588 wkd:1892-12-7 nl:1894-12-07
http://wikidata.dbpedia.org/resource/Q505970 wkd:1982-9-18 el:1980-09-18
http://wikidata.dbpedia.org/resource/Q16201004 wkd:1988-1-1 nl:1988-02-04
http://wikidata.dbpedia.org/resource/Q256250 wkd:1994-11-30 nl:1994-12-25
http://wikidata.dbpedia.org/resource/Q16230068 wkd:1995-4-6 nl:1994-04-06
http://wikidata.dbpedia.org/resource/Q2419981 wkd:1929-11-10 nl:1921-11-10
http://wikidata.dbpedia.org/resource/Q434474 wkd:1973-12-24 nl:1973-12-27
package org.dbpedia.extraction.mappings
import org.dbpedia.extraction.destinations.{Dataset, DBpediaDatasets, Quad}
import org.dbpedia.extraction.ontology.Ontology
import org.dbpedia.extraction.util.{ExtractorUtils, Language}
import org.dbpedia.extraction.wikiparser._
import scala.language.reflectiveCalls
/**
Verifying that +jimkont is my blockchain ID. https://onename.com/jimkont
@jimkont
jimkont / 2789548-Koševo Stadion
Last active August 29, 2015 14:16
DBpedia Live json cache
{"org.dbpedia.extraction.mappings.LabelExtractor" : {
"hash": "db80d3e63cf8b0e4cb9121ca567bd08b",
"triples": [{"http:\/\/nl.dbpedia.org\/resource\/Koševo_Stadion" : { "http:\/\/www.w3.org\/2000\/01\/rdf-schema#label": [ { "value" : "Koševo Stadion", "type" : "literal", "lang" : "nl" } ] } }
]},"org.dbpedia.extraction.mappings.ArticlePageExtractor" : {
"hash": "640691834decdd5d8885092a304aa4a9",
"triples": [{"http:\/\/nl.dbpedia.org\/resource\/Koševo_Stadion" : { "http:\/\/xmlns.com\/foaf\/0.1\/isPrimaryTopicOf" : [ { "value" : "http:\/\/nl.wikipedia.org\/wiki\/Koševo_Stadion", "type" : "uri" } ] } },
{"http:\/\/nl.wikipedia.org\/wiki\/Koševo_Stadion" : { "http:\/\/purl.org\/dc\/elements\/1.1\/language": [ { "value" : "nl", "type" : "literal", "datatype" : "http:\/\/www.w3.org\/2001\/XMLSchema#string" } ] } },
{"http:\/\/nl.wikipedia.org\/wiki\/Koševo_Stadion" : { "http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#type" : [ { "value" : "http:\/\/xmlns.com\/foaf\/0.1\/Document", "type" : "uri" } ] } },
{"h