Channel #semsol: Logs

This is a public chat log generated from the #semsol IRC channel.

11:39:52 fresco: would anyone be able to help with a bit of SPARQL?
11:40:13 fresco: I've stored some RSS feeds in an ARC store, and am having a bit of trouble querying it
11:41:10 fresco: I can get the basic metadata, but I'm trying to select a) everything that's a content:item and b) some metadata from the parent rss:item of each of those
11:42:18 bengee: hmm, content:item?
11:42:55 fresco: http://purl.org/rss/1.0/modules/content/item
11:43:32 fresco: Here's an example feed http://tinyurl.com/2kjzaz
11:45:22 bengee: ah, I see
11:45:26 fresco: I'm trying to select x and y
11:45:39 bengee: lemme see
11:47:36 bengee: select ?x ?y WHERE { ?res a rss:item; dc:identifier ?x; content:items [ ?pos ?y ]}
11:48:50 fresco: that's it, excellent, thanks
11:49:17 bengee: (rdf:li is converted to rdf:_1, rdf:_2 etc, so you can't use li in the query)
11:52:32 fresco: it seems to select http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag as ?y sometimes, but I can live with that
11:53:07 bengee: hmm
11:53:39 bengee: ah, yeah, that's the rdf:type = Bag
11:53:45 fresco: yes
11:54:01 bengee: maybe I should add support for rdf:li in queries..
11:54:44 bengee: for now, you can add a filter FILTER (?pos != rdf:Bag) I guess
11:54:51 bengee: er
11:54:58 bengee: ?pos != rdf:type
11:55:38 fresco: ok, i'll try that
11:55:56 fresco: or if ($item['y'] == 'http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag') continue;
11:56:03 bengee: heh, right