Channel #semsol: Logs

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

15:26:07 webholics: it seems the RemoteStore doesn't support read/write keys yet???
15:34:40 bengee: hmm
15:35:28 webholics: and i think there is a bug in ARC2_RemoteStore.php in line 140
15:35:53 webholics: the parsers like RDFXML doesn't have a method getRows()
15:36:32 bengee: yeah, but select via the remote store shouldn't return rdf/xml
15:36:48 webholics: so every SELECT query causes a php error like this one: "Fatal error: Call to undefined method ARC2_RDFXMLParser::getRows()"
15:38:04 webholics: ah :-) that's a good point
15:38:05 bengee: right, I should stop processing earlier, when the result is not sparql-xml or sparql-json, I guess
15:38:07 bengee: thx
15:38:30 webholics: yes you should call an error right in the class not a php error
15:39:53 webholics: I'm bypassing the missing key feature now this way and it seems to work:
15:40:14 bengee: bengee tweaks code
15:40:31 webholics: $config = array( 'remote_store_endpoint' => 'http://example.com/sparql?key=[key]');
15:40:36 bengee: if the result is not a result set, the raw response will be returned now
15:40:50 webholics: ok
15:41:40 bengee: re keys, POSTing them might be desirable, I'll add that to my to-do list
15:41:53 webholics: good :-)
15:42:31 webholics: hope you could establish an svn repository soon, that would make contribution easier
15:44:31 bengee: maybe a bzr/git repos one day. arto bendiken maintains a git one
15:45:09 webholics: k
15:50:38 bengee: ok, next rev will accept 'store_read_key' and 'store_write_key' as RemoteStore config options
15:59:53 webholics: good news
16:03:40 webholics: sorry i have another question
16:04:03 webholics: how can i serialize the triples i get from query('CONSTRUCT ...', 'raw') to RDFXML
16:04:31 webholics: i'm always getting errors like "undefinded index"
16:05:28 webholics: and it seems a little bit stupid to retrieve the data as rdfxml, then translate it into a php array, in order to serialize it back to rdfxml
16:05:40 webholics: isn't there a way to use this data directly?
16:06:17 bengee: ARC uses the array structures internally
16:06:47 bengee: $index = query(...); $this->toRDFXML($index); doesn't work?
16:08:04 webholics: i want to use the RDFXMLSerializer in order to get nice namespaces
16:08:35 webholics: and getSerializedTriples($store->query('CONSTRUCT...', 'raw')) does not work
16:08:56 bengee: ah, CONSTRUCT returns an index
16:09:07 bengee: you need getSerializedIndex()
16:09:16 webholics: ok i'll try it, thx a lot
16:09:56 webholics: great :-)
16:10:30 bengee: toRDFXML accepts a namespace array as 2nd parameter, btw
16:11:23 webholics: ah cool
16:12:34 bengee: maybe I should add another response type to the RemoteStore, for "really raw" data
16:13:31 bengee: the remote store was written after the local one, where the results were always php arrays
16:15:56 webholics: yes I'm not sure if it is good to use the same methods in remotestore as in normal store
16:16:20 webholics: maybe it works better to have a lower lever version here, at parse manual if needed
17:32:33 bengee: hey sparqlbot
17:57:03 bengee: hey sparqlbot
18:33:02 bengee: hey sparqlbot, bugger off