Hi everyone, I have a question with regards to forming a SPARQL query for DBPedia. I'm new to SPARQL and some help here will really be appreciated.
What I'm trying to do is to pull off the list of colors, as well as their corresponding hex values off of this resource: http://dbpedia.org/resource/List_of_colors My test SPARQL query to grab all of the content in there looks like this: SELECT ?property ?hasValue WHERE { <http://dbpedia.org/resource/List_of_colors> ?property ?hasValue } And it looks good; I'm getting color names nicely split into separate elements: http://dbpedia.org/property/name http://dbpedia.org/resource/Alice_blue http://dbpedia.org/property/name http://dbpedia.org/resource/Alizarin http://dbpedia.org/property/name http://dbpedia.org/resource/Amaranth_%28color%29 http://dbpedia.org/property/name http://dbpedia.org/resource/Aqua_%28color%29 ... The problem is, the corresponding hex values are dumped further down in separate rows: http://dbpedia.org/property/hex 0000C8 http://dbpedia.org/property/hex 0000CD http://dbpedia.org/property/hex 0000FF http://dbpedia.org/property/hex 002FA7 ... This list of colors are ordered by their hex value, and so do not match the same order of the list of color names. So my question is this: how will I be able to grab the matching hex values for each color? Thanks and regards, Andrew ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Dbpedia-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
