Channel #semsol: Logs

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

19:03:57 peterdm: Hey bengee, quick question.
19:10:57 bengee: was that so quick that I didn't even see it?
19:11:10 peterdm: nope. sorry.
19:11:34 bengee: ;)
19:11:43 peterdm: Having trouble getting ARC to recognize rdfs:member
19:12:15 peterdm: SELECT ?s ?p ?o WHERE { ?s rdfs:member ?o }
19:13:12 peterdm: Twinkle gives me back data on a simple test rdf doc (with a single rdf:Seq). ARC, unfortunately does not. Am I doing something wrong?
19:14:23 bengee: remove ?p
19:16:02 peterdm: trying... (though I think I tried before)
19:21:02 peterdm: nope.
19:21:25 peterdm: Actually, I'm potentially doing something common the hard way.
19:21:41 peterdm: Is there an easy way to insert at the end of a sequence?
19:22:21 bengee: ARC doesn't do any inference, maybe rdfs:member isn't explicitly mentioned in the RDF
19:23:40 peterdm: Oh, so without inference, I would need to connect all the dots myself.
19:24:06 peterdm: I thought I saw some support for things like rdfs:label etc...?
19:24:29 bengee: that's just some query expansion
19:24:57 bengee: you can write your own triggers that infer triples
19:25:32 peterdm: okay, so this might've been the wrong tack.
19:26:41 peterdm: My goal is to insert at the end of a sequence. I can probably just grab all of the <sequence resource> ?p ?o and parse out the (_N) from the ?p's.... capture the max N and insert at _N+1.
19:27:04 peterdm: but I feel like I might be missing some easier way to do this....
19:28:10 bengee: if _N is below 10, you can do ORDER BY DESC(?p) LIMIT 1
19:29:22 peterdm: ... but above 10 the alpha ordering gets you, yes?
19:29:31 bengee: yeah
19:30:19 peterdm: okay. I'll carry on. Just wondering if there was a SPARQL+ trick for working with container position.
19:32:56 bengee: unfortunately not
19:33:07 bengee: rdf lists are equally painful
19:33:30 bengee: maybe I should add some magic, many rdf stores do
19:40:23 peterdm: well for now, WHERE { ?s ?p ?o . FILTER regex(str(?p), "_[0-9]+$") . } will get me the pieces to parse.
19:40:44 peterdm: so I think I'm okay.
19:40:49 bengee: ok
19:40:57 peterdm: Thanks for the advice.
19:41:07 bengee: np