This is a public chat log generated from the #semsol IRC channel.
11:46:13
new ARC rev: http://twitter.com/semsol/status/5762953359
11:49:37
+/- some backslashes, PHP seems to sometimes eat one or another
11:50:52
for some reason, I can't send """baz\\""" to ARC, still have to figure this out in more detail
12:14:59
bengee: am having trouble parsing RDF/XML with ARC on PHP 5.3.
12:15:42
in which way?
12:16:34
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 prolly can't work around XML errors, ARC uses the built-in XML parser
12:17:54
unless only some configuration option changed or was added
12:26:37
Example file - http://examples.tobyinkster.co.uk/test.rdfx
12:27:19
error is 'XML error: "Unknown" at line 81 (parsing as UTF-8)'
12:27:32
my firefox claims that it is not xml, too
12:29:45
Aha! You're right - xmlns:j.0="http://www.w3.org/XML/1998/namespace"
12:30:11
This is XML output from Jena. I'll take the query over to their mailing list then...
12:31:30
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
It seems to work fine apart from that. Turtle parsing is OK for instance.
12:33:36
interesting, would have accepted lots of warnings and errors
12:34:29
:)
12:34:39
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
s/accepted/expectd/
12:40:47
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
begee, would best place to do this be in the while ($d = $this->reader->readStream()) loop?
12:43:49
s/begee/bengee/
12:44:15
where is the cool bot gone to?
12:45:23
tobyink, think so, too. just before the buffer data gets sent to the xml parser
12:45:56
That seems to have worked. Thanks.
12:46:07
ok, cool
13:11:11
That having been said, it's unusual that ARC still managed to successfully extract the first 5 triples in the file...
13:54:53
bengee: great thanks! but yeah, this should be figured out :| Weird things happen all the time with the backslahes ;)
