
2D presentation (O for overview, ? for help). Continuous HTML. Publications
There is an active BG Wikipedia community:
For a year now, an idea has been bandied around to focus BG cultural heritage documentation efforts around Wikipedia/DBpedia/Wikidata. These free information resources, the center of the Linked Open Data cloud, can enable cultural heritage workers to collaborate on describing the common elements of our Cultural Heritage. It's not right that foreign Wikipedias have more information about our kings, artists, politicians and events; and the data extracted in BG DBpedia is half missing and half wrong.
The BG Wikipedia community has done two GLAM projects, see Wikimedia-CEE-2014 Report
https://bg.wikipedia.org/wiki/Уикипедия:Сътрудничество/Държавна_агенция_„Архиви“#Mapped_to_DBpedia
http://mappings.dbpedia.org/server/extraction/commons/extract?revid=&format=turtle-triples&extractors=custom&title=File:Hristogdanov.jpgBG Wikipedia Chapter meeting on Sun 8 Feb 2015
Ontotext has long used DBpedia and other LOD datasets for NLP and semantic extraction tasks. Until recently, there was little interest and market for Bulgarian NLP applications, and few language resources. Recent developments in two domains have raised the interest:
Ontotext is in the middle of many of these developments, and we see the Bulgarian Wikipedia and DBpedia as crucial national resources to focus the efforts of the Bulgarian cultural heritage community.
Ontotext started hosting http://bg.dbpedia.org on 2015-02-05
Брой факти
select (count(*) as ?c) {?s ?p ?o}
Брой страници
select (count(*) as ?c) {?thing foaf:isPrimaryTopicOf ?page}
Брой хора
select (count(*) as ?c) {?person a dbo:Person}
Брой организации
select (count(*) as ?c) {?org a dbo:Organisation}
Брой места
select (count(*) as ?c) {?place a dbo:Place}
Брой растения/животни
select (count(*) as ?c) {?place a dbo:Species}
Брой произведения
select (count(*) as ?c) {?place a dbo:Work}
Брой страници без тип
select (count(*) as ?c) { ?thing foaf:isPrimaryTopicOf ?page. filter not exists{?thing a ?type. filter (?type in (owl:Thing,dbo:Place,dbo:Species))}}
Страници без тип: с техните категории
select ?thing (group_concat(?cat;separator="; ") as ?cats) { ?thing foaf:isPrimaryTopicOf ?page. filter not exists{?thing a ?type. filter (?type in (owl:Thing,dbo:Place,dbo:Species))} ?thing dct:subject ?category. bind(strafter(str(?category),"http://bg.dbpedia.org/resource/Категория:") as ?cat) } group by ?thing
Най-големи страници
select * { ?x dbo:wikiPageLength ?len } order by desc(?len) limit 100
Страници с най-много линкове
select ?x (count(*) as ?links) { ?x dbo:wikiPageWikiLink ?l } group by ?x order by desc(?links) limit 100
Най-големи нас.места:
PREFIX bgdbp: <http://bg.dbpedia.org/property/> PREFIX dbo: <http://dbpedia.org/ontology/> select ?x ?area { ?x bgdbp:wikiPageUsesTemplate <http://bg.dbpedia.org/resource/Шаблон:Селище_в_България>; dbo:areaLand ?area } order by desc(?area) limit 100
https://bg.wikipedia.org/wiki/Мътеница_(село):
Землище 33 035 km²
https://bg.wikipedia.org/w/index.php?title=Мътеница_(село)&action=edit
| площ = 33 035
1 nbsp;234, което се извлича като "1" :-(В момента информацията за административната структура на местата (и броят население) не може да се извлече
Напр за Мътеница https://bg.wikipedia.org/w/index.php?title=Мътеница_(село)&action=edit
{{Селище в България
| екатте = 49624
| надм-височина=441 ...
Населени места с най-голямо население
PREFIX bgdbp: <http://bg.dbpedia.org/property/> PREFIX dbo: <http://dbpedia.org/ontology/> select * { ?x bgdbp:wikiPageUsesTemplate <http://bg.dbpedia.org/resource/Шаблон:Селище_в_България>; dbo:populationTotal ?pop } order by desc(?pop) limit 100
Ура! Тези май са верни :-)
Музикални изпълнители и групи
PREFIX dbo: <http://dbpedia.org/ontology/> select * { ?x a ?type filter (?type in (dbo:MusicalArtist, dbo:Band)) }
Причината е, че мапингът Музикален_изпълнител имаше следният проблем:
{{ Condition
| templateProperty = фон
| operator = isSet
| mapping = {{ TemplateMapping | mapToClass = Band }}
}}
Сега го оправихме да има следната сложна логика:
Музикални изпълнители за които са посочени жанрове
PREFIX dbo: <http://dbpedia.org/ontology/> select ?x (group_concat(?genre;separator="; ") as ?genres) { ?x a ?type. filter (?type in (dbo:MusicalArtist, dbo:Band)) ?x dbo:genre ?g. bind (strafter(str(?g),"http://bg.dbpedia.org/resource/") as ?genre) } group by ?x
Музикални жанрове по популярност
PREFIX dbo: <http://dbpedia.org/ontology/> select ?genre (count(*) as ?c) { ?x a ?type. filter (?type in (dbo:MusicalArtist, dbo:Band)) ?x dbo:genre ?g. bind (strafter(str(?g),"http://bg.dbpedia.org/resource/") as ?genre) } group by ?genre order by desc(?c) limit 20
Най-популярните са
Поп_музика 356 (изненада!) Хард_рок 313 Хеви_метъл 238
Please retweet, post to facebook & linkedin