Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to represent images #19

Open
VladimirAlexiev opened this issue Aug 25, 2017 · 2 comments
Open

how to represent images #19

VladimirAlexiev opened this issue Aug 25, 2017 · 2 comments

Comments

@VladimirAlexiev
Copy link
Member

@jimkont @chile12 @Termilion
dbpedia/extraction-framework#515 will extract more images from pages.

So we need to pick props for different kinds of images

Referring to examples in dbpedia/extraction-framework#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
Copy link

chile12 commented Sep 4, 2017

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
Copy link
Member Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants