Channel #semsol: Logs

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

06:35:32 scor: bengee: hi. is there a way to SPARQL query a graph in memory?
06:35:55 bengee: hi, no
06:35:57 scor: it seems MySQL is required for any SPARQL query?
06:36:02 scor: hum..
06:36:20 bengee: yes, no in-memory sparqling yet, although demand is growing
06:37:00 scor: what do you say to pgsql users willing to use arc2?
06:38:18 scor: any plan to support pgsql? (even if it is not as optimized as on MySQL)
06:38:44 scor: I believe some features should be possible if you abstract the db
06:38:47 bengee: they could maybe fund a pg backend, not sure
06:41:44 bengee: a bzr repository is going up today, btw, should make code contributions more practical in the future
07:31:09 scor: bengee: fantastic
07:32:08 scor: bengee: the email I just sent to arc-dev got delivered to one of my mailboxes broken. hope you get the attachments ok
07:32:44 scor: that's really awkward
07:33:31 bengee: got it, thx
07:34:12 bengee: bengee has to write a better mailing list module
07:38:54 scor: bengee: why did you write a module? do you parse them to generate some RDF, or is it just for templating them to appear on your site?
07:39:45 bengee: it's for relaying, storing, displaying
07:41:36 bengee: for shared hosts where you can't or don't want to install software
07:42:06 scor: I see. is it part of trice? open source?
07:42:16 bengee: yes
08:16:53 scor: is there any way to set up an ARC sparql endpoint with a custom default query?
08:17:20 bengee: you mean, in the textarea?
08:17:26 scor: yeah
08:17:29 kwijibo: bengee: scor does arc do streaming n triples parsing yet?
08:18:01 scor: I see conditionnal $q in getHTMLDocForm() but can't figure out where to set it
08:18:07 bengee: I added some layout options, lemme see if the query can be customized
08:18:21 scor: the one letter functions are still obscure to me :(
08:18:38 scor: that'd be great
08:18:54 kwijibo: kwijibo looks forward to the bzr repository
08:19:23 kwijibo: bengee++
08:19:25 scor: in fact what I want is to include a list of prefixes in the begining of the default query
08:19:34 bengee: kwijibo, the turtle(nt parser should stream
08:19:38 scor: hello kwijibo
08:19:43 bengee: :)
08:19:53 kwijibo: hi scor, hi bengee excellent :)
08:20:20 kwijibo: i can use the same trick with the RDF/XML parser? extend the parser and over ride the addT method ?
08:20:52 bengee: the issue with the turtle parser is that when (the end of) an object can't be properly detected, the buffer grows and grows
08:21:29 bengee: that still happens with many DBPedia URIs
08:21:46 bengee: s/object/triple term/
08:22:35 kwijibo: bengee: any idea what kind of content that happens with? weird unicode characters? or ?
08:22:44 bengee: yes
08:23:13 bengee: or just ' or { or } in URIs, I think
08:23:32 kwijibo: is that legal URI syntax?
08:23:40 bengee: I made the parser more forgiving already
08:23:52 bengee: I don't think so, but DBPedia is full of those
08:23:57 bengee: or |
08:25:09 bengee: paul houle kept sending me examples, still haven't looked at all of them
08:27:12 kwijibo: bengee I can do class StreamingNtriples extends ARC2_NTriplesParser { function addT($s, $p, $o, $t, $dt, $lang){ /*do stuff */ } } ?
08:27:20 bengee: scor, query is currently not configurable, but I'll change the endpoint class. sounds like a reasonable config option
08:28:31 bengee: for now, you can prolly do if (!isset($_GET['query])) $_GET['query'] = 'default query here'
08:28:55 bengee: bengee ducks
08:31:01 bengee: I don't think there is a dedicated NTriples_Parser class, but for ARC2_TurtleParser, the sub-classing should work
08:32:56 kwijibo: bengee: sorry, yeah, that's what i meant, thanks :)
08:41:55 scor: bengee: you mean, I should hack the ARC2 code?
08:42:12 scor: to add if (!isset($_GET['query])) $_GET['query'] =
08:43:49 bengee: scor, you can do that on the script level before the endpoint is instantiated
08:44:27 bengee: it's a hack, though
08:44:44 bengee: and you'd have to check both GET and POST
08:45:05 bengee: I've already tweaked the code locally, will upload it later
08:45:25 bengee: there is now a config option: 'endpoint_default_query'
08:45:36 scor: Could not properly handle "get" in ARC2_SPARQLPlusParser
08:46:35 scor: I have:
08:46:37 scor: if (!isset($_GET['query'])) $_GET['query'] = 'get';
08:46:39 scor: $ep = ARC2::getStoreEndpoint($config);
08:46:42 scor: $ep->go();
08:46:54 bengee: s/get/your default query here/
08:47:35 bengee: ah, wait, it'll be auto-executed then
08:47:43 scor: oh, it has to parse! sorry
08:47:54 bengee: ok, you have to wait for the patch, I guess
08:48:09 scor: no worries, looking forward to the bzr repo!