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