dbpedia / ontology-tracker

Here we keep track of modification requests in the DBpedia Ontology
35 stars 11 forks source link

how to represent images #19

Open VladimirAlexiev opened 7 years ago

VladimirAlexiev commented 7 years ago

@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

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

  1. This example uses CURIEs that are not valid in turtle/sparql (too lazy)
  2. Haven't checked what dbo: props already exist re the above
chile12 commented 7 years ago

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] .

VladimirAlexiev commented 7 years ago

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)