Channel #semsol: Logs

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

11:46:13 bengee: new ARC rev: http://twitter.com/semsol/status/5762953359
11:49:37 bengee: +/- some backslashes, PHP seems to sometimes eat one or another
11:50:52 bengee: for some reason, I can't send """baz\\""" to ARC, still have to figure this out in more detail
12:14:59 tobyink: bengee: am having trouble parsing RDF/XML with ARC on PHP 5.3.
12:15:42 bengee: in which way?
12:16:34 tobyink: Stops passing after only having read a few triples. Claims an XML error. Same file under PHP 5.2 worked fine. Let me find an example...
12:17:28 bengee: bengee prolly can't work around XML errors, ARC uses the built-in XML parser
12:17:54 bengee: unless only some configuration option changed or was added
12:26:37 tobyink: Example file - http://examples.tobyinkster.co.uk/test.rdfx
12:27:19 tobyink: error is 'XML error: "Unknown" at line 81 (parsing as UTF-8)'
12:27:32 ^Jenny^: my firefox claims that it is not xml, too
12:29:45 tobyink: Aha! You're right - xmlns:j.0="http://www.w3.org/XML/1998/namespace"
12:30:11 tobyink: This is XML output from Jena. I'll take the query over to their mailing list then...
12:31:30 bengee: but I assume that the current ARC code doesn't work with php5.3, will have to add "static" keywords and such
12:32:55 tobyink: It seems to work fine apart from that. Turtle parsing is OK for instance.
12:33:36 bengee: interesting, would have accepted lots of warnings and errors
12:34:29 ^Jenny^: :)
12:34:39 tobyink: I think there's quite a few notices, but not errors and warnings - though my production code has all those switched off anyway.
12:34:48 bengee: s/accepted/expectd/
12:40:47 tobyink: OK, reported to Jena mailing list. In the mean time I'll hack my copy of ARC's RDF/XML parser to str_replace that before parsing.
12:43:40 tobyink: begee, would best place to do this be in the while ($d = $this->reader->readStream()) loop?
12:43:49 tobyink: s/begee/bengee/
12:44:15 ^Jenny^: where is the cool bot gone to?
12:45:23 bengee: tobyink, think so, too. just before the buffer data gets sent to the xml parser
12:45:56 tobyink: That seems to have worked. Thanks.
12:46:07 bengee: ok, cool
13:11:11 tobyink: That having been said, it's unusual that ARC still managed to successfully extract the first 5 triples in the file...
13:54:53 fgiasson: bengee: great thanks! but yeah, this should be figured out :| Weird things happen all the time with the backslahes ;)