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