Mapping bg talk:Монарх: Difference between revisions
From Mediawiki1
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Pictures == | |||
Could someone fill me in on what's the best way to map images, coatOfArms (I made such a property), etc? | |||
E.g. for this Bulgarian tzar: https://bg.wikipedia.org/w/index.php?title=Симеон_I&action=edit | |||
It has these fields: | |||
| изображение за личността=[[Файл:SimeonTheGreatAntonoff.jpg|300px]] | |||
| описание на изображението=Симеон пред портите на Константинопол (графика [[Николай Павлович]]) | |||
Which are mapped like so: | |||
{{ PropertyMapping | templateProperty = изображение за личността | ontologyProperty = picture }} | |||
{{ PropertyMapping | templateProperty = описание на изображението | ontologyProperty = pictureDescription }} | |||
Unfortunately in the result: http://mappings.dbpedia.org/server/extraction/bg/extract?title=Симеон+I&revid=&format=turtle-triples&extractors=custom | |||
* picture is not mapped, maybe because it's not at Commons but a local attachment [[Файл:...]] | |||
* pictureDescription is mapped to the URL of the painter <http://bg.dbpedia.org/resource/Николай_Павлович>, since it's an objectProperty | |||
== Testing == | == Testing == | ||
* [http://mappings.dbpedia.org/server/extraction/bg/extract?title=Елизабет+II&revid=&format=turtle-triples&extractors=custom Елизабет II]: gender Female | * [http://mappings.dbpedia.org/server/extraction/bg/extract?title=Елизабет+II&revid=&format=turtle-triples&extractors=custom Елизабет II]: gender Female | ||
* [http://mappings.dbpedia.org/server/extraction/bg/extract?title=Бисер+Киров&revid=&format=turtle-triples&extractors=custom Цар Борис]: gender Male | * [http://mappings.dbpedia.org/server/extraction/bg/extract?title=Бисер+Киров&revid=&format=turtle-triples&extractors=custom Цар Борис]: gender Male | ||
* [http://mappings.dbpedia.org/server/extraction/bg/extract?title=Владислав+Постум&revid=&format=turtle-triples&extractors=custom Владислав Постум]: has coatOfArms | * [http://mappings.dbpedia.org/server/extraction/bg/extract?title=Владислав+Постум&revid=&format=turtle-triples&extractors=custom Владислав Постум]: has coatOfArms | ||
* [http://mappings.dbpedia.org/server/extraction/bg/extract?title=Симеон+I&revid=&format=turtle-triples&extractors=custom Симеон I]: has picture, pictureDescription |
Revision as of 07:20, 24 December 2014
Pictures
Could someone fill me in on what's the best way to map images, coatOfArms (I made such a property), etc? E.g. for this Bulgarian tzar: https://bg.wikipedia.org/w/index.php?title=Симеон_I&action=edit
It has these fields:
| изображение за личността=300px | описание на изображението=Симеон пред портите на Константинопол (графика Николай Павлович)
Which are mapped like so:
Property Mapping (help) | |
---|---|
template property | изображение за личността |
ontology property | picture |
Property Mapping (help) | |
---|---|
template property | описание на изображението |
ontology property | pictureDescription |
Unfortunately in the result: http://mappings.dbpedia.org/server/extraction/bg/extract?title=Симеон+I&revid=&format=turtle-triples&extractors=custom
- picture is not mapped, maybe because it's not at Commons but a local attachment Файл:...
- pictureDescription is mapped to the URL of the painter <http://bg.dbpedia.org/resource/Николай_Павлович>, since it's an objectProperty
Testing
- Елизабет II: gender Female
- Цар Борис: gender Male
- Владислав Постум: has coatOfArms
- Симеон I: has picture, pictureDescription