ontology-tracker
ontology-tracker copied to clipboard
how to represent images
@jimkont @chile12 @Termilion https://github.com/dbpedia/extraction-framework/issues/515 will extract more images from pages.
So we need to pick props for different kinds of images
- currently foaf:depiction is used for the main image but this is wrong: "A depiction of some thing" is any sort of image, not necessarily the main image
- need new prop for the main image
- Schema also doesn't have such, http://schema.org/primaryImageOfPage is only applicable to web pages (but Berlin is a city not a page), see discussion in https://github.com/schemaorg/schemaorg/issues/1726
- need dbo: props for the "special images" map, coat of arms, flag, signature
- currently dbo:thumbnail is used for a reduced-size main image
- but what if I want a thumbnail of some of the other images?
- foaf:thumbnail "A derived thumbnail image" is Image->Image and that's the better idea.
- (http://mappings.dbpedia.org/index.php/OntologyProperty:Foaf:thumbnail commits criminal namespace hijacking, this should be fixed).
Referring to examples in https://github.com/dbpedia/extraction-framework/issues/515 we could go something like this:
dbr:Berlin
# no main image
dbo:coatOfArms wiki-commons:Special:FilePath/Coat_of_arms_of_Berlin.svg;
dbo:flag wiki-commons:Special:FilePath/Flag_of_Berlin.svg;
dbo:map wiki-commons:Special:FilePath/Deutschland_Lage_Berlins.svg;
foaf:depiction ... # all the rest.
dbr:Barack_Obama
dbo:image wiki-commons:Special:FilePath/President_Barack_Obama.jpg;
# or maybe better dbo:mainImage
dbo:signature wiki-commons:Special:FilePath/Barack_Obama_signature.svg;
### Dont need this since it is systematically derived, and how do you know 300 is best for me?
wiki-commons:Special:FilePath/Coat_of_arms_of_Berlin.svg a dbo:Image;
dbo:thumbnail wiki-commons:Special:FilePath/Coat_of_arms_of_Berlin.svg?width=300.
wiki-commons:Special:FilePath/Flag_of_Berlin.svg;
a dbo:Image;
dbo:thumbnail wiki-commons:Special:FilePath/Flag_of_Berlin.svg?width=300.
Notes
- This example uses CURIEs that are not valid in turtle/sparql (too lazy)
- Haven't checked what
dbo:
props already exist re the above
Dear Vladimir, probably a good idea to talk about this at the meeting. I would suggest you to broach the subject there?
I don't see anything wrong with having multiple foaf:depiction, since its not functional. But this without having thought about this very deeply.
Would be nice to have this before I start with the main extraction next month.
Also, I'd suggest a new property like: dbo:pageRankValue = http://purl.org/voc/vrank#hasRank ° http://purl.org/voc/vrank#rankValue (http://www.aifb.kit.edu/images/4/4d/Dbrank2012.pdf) This will enable us to create page-rank datasets in NT format with just one triple per resource. Atm it looks like this: http://dbpedia.org/resource/!!!_(Chk_Chk_Chk) http://purl.org/voc/vrank#hasRank [http://purl.org/voc/vrank#rankValue "0.15"^^http://www.w3.org/2001/XMLSchema#float] .
Unfortunately I won't be at the meeting (euBusinessGraph meeting at the same time).
I agree to have multiple foaf:depiction
and emit the main image as dbo:image
(Wikidata's image
property is usually single)