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

SAAM constituent images #26

Open
VladimirAlexiev opened this issue Apr 2, 2017 · 3 comments
Open

SAAM constituent images #26

VladimirAlexiev opened this issue Apr 2, 2017 · 3 comments

Comments

@VladimirAlexiev
Copy link
Member

VladimirAlexiev commented Apr 2, 2017

WebArtistBioImages.csv has data like this:

ConstituentID,FileName,MediaView,PrimaryDisplay,PublicCaption,ObjectNumber,ObjectID
36,aguado_deborah.jpg,Luce,1,"Photograph credited to Paul Seligman\n",,
23,J0001165_1b.jpg,Juley,1,"Herbert Adams, Peter A. Juley & Son Collection, Smithsonian American Art Museum J0001165",,
52,portrait_image_113717.jpg,Luce,0,"National Portrait Gallery, Smithsonian Institution\n",,
52,1966.64.1_1a.jpg,Permanent Collection,1,"Ivan Albright, <i>Self Portrait  55 East Division Street</i>, 1948, lithograph on paper, Smithsonian American Art Museum,Museum purchase  1966.64.1.",1966.64.1 ,219

It's mapped like so, and there's no useful data about that image.

<http://data.americanartcollaborative.org/saam/constituent/id/36>
  crm:P138i_has_representation <http://data.americanartcollaborative.org/saam/constituent/id/36/image>.

<http://data.americanartcollaborative.org/saam/constituent/id/36/image> a crm:E38_Image.

MediaView indicates a collection. I counted the values with
cut -d, -f3 WebArtistBioImages.csv|sort|uniq -c
and they are

    458 Juley
    595 Luce
    193 Permanent Collection

By examining the old SAAM mapping eg http://edan.si.edu/saam/id/person-institution/36. I found the image URLs of the above 4 records:

The image URLs should be calculated like this (written in Perl but I think it's understandable as pseudo-code):

$part =
  $MediaView eq "Juley" ? "JuleyBio" :
  $MediaView eq "Luce"  ? "luce/artists" :
  /* Permanent Collection */ first_part($ObjectNumber);
$image_url = "http://americanart.si.edu/images/$part/$FileName"

sub fist_part($ObjectNumber) {
  $ObjectNumber =~ m{^(\d+)};
  return $1
}

And the mapping should be like this:

<http://data.americanartcollaborative.org/saam/constituent/id/36>
  crm:P138i_has_representation <http://americanart.si.edu/images/luce/artists/aguado_deborah.jpg>.

<http://americanart.si.edu/images/luce/artists/aguado_deborah.jpg> a crm:E38_Image;
  rdfs:label "Photograph credited to Paul Seligman\n".
@bsnikhila
Copy link
Contributor

All these links seem to be broken.

@bsnikhila bsnikhila reopened this Oct 18, 2017
@bsnikhila
Copy link
Contributor

Sorry, closed it by accident. Reopening this.

@VladimirAlexiev
Copy link
Member Author

@sosarasays Guess your website is reorganized and the constituent images are gone?
Can you tell us where?

(AFAIK, I noticed a month ago that object images were also gone, so the old SAAM LOD is now broken)

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