C# Class mergedServices.imageGrapper

the glass grabs an image for the given entity URI
Mostra file Open project: sherifkandeel/weet-it_WCF

Public Methods

Method Description
get_fb_link ( string dbpedialink, E imgsize ) : string

this one will get freebaseimage directly without checking dbpedia link

retrieve_img ( string dbpediaUri, E imgsize = E.small ) : List

this function will check first for dbpedia image link

Private Methods

Method Description
check_link ( string dbpedialink ) : bool

Method Details

get_fb_link() public static method

this one will get freebaseimage directly without checking dbpedia link
public static get_fb_link ( string dbpedialink, E imgsize ) : string
dbpedialink string e.g http://dbpedia.org/resource/Syria
imgsize E
return string

retrieve_img() public static method

this function will check first for dbpedia image link
public static retrieve_img ( string dbpediaUri, E imgsize = E.small ) : List
dbpediaUri string e.g http://dbpedia.org/resource/Egypt
imgsize E max sizeof the image required
return List