Channel #semsol: Logs

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

09:20:34 kwijibo: bengee: I want to bundle the talis_store code as a plugin, but it's more than one file, and I'd like to bundle it all up in a directory of its own - is that possible?
09:21:09 bengee: hmm
09:22:18 bengee: you'd have to write your own inc method, I think. and the main plugin fil would have to be in the plugin dir directly
09:22:59 bengee: so that you can use arc's inc() method to include the plugin, and then the plugin's inc() for sub-components
09:23:57 bengee: I could maybe extend ARC's inc() to allow vendor namespaces..
09:24:49 bengee: so that you can have a Talis_MyExtensionPlugin which could go into /plugins/talis/
09:24:58 kwijibo: or even just to look for a directory with the component name, than look for the file in that directory
09:25:15 kwijibo: ARC_foo/ARC_foo.php
09:25:56 bengee: that would break the current dir naming, I guess
09:26:35 bengee: but taking a plugin class' prefix and checking for a dir would be possible
09:26:52 kwijibo: yeah, that's what I mean
09:27:39 bengee: the whole idea of ARC_ is that you can mix in other code such as Trice_ or Talis_
09:28:11 bengee: don't I have another fix of yours lying around here that didn't go into a rev yet?
09:28:22 bengee: the html escaping
09:28:27 kwijibo: emm, maybe
09:28:30 kwijibo: ah yeah
09:28:41 bengee: lemme see if I can do a quick rev with support for vendor plugins
09:29:08 kwijibo: cool, cheers bengee
09:29:28 bengee: I should do client work, but I started to rewrite Trice yesterday, so everything is a bit off atm
09:29:53 kwijibo: don't put yourself out :) it's not urgent
09:29:59 kwijibo: or important
09:53:48 bengee: ok, seems to be possible
10:04:49 bengee: new rev is online (2008-03-20)
10:05:00 bengee: I'll update the plugin doc now
10:06:00 bengee: you have to use your own include mechanism for files in your directory (apart form the main ..._plugin file)
10:11:26 kwijibo: thanks muchly bengee
10:19:11 bengee: ok, doc is updated now, too
10:23:11 kwijibo: cool
10:24:28 kwijibo: bengee, see in your store class - is this right? if an operatoin fails, the errors just get logged in ->errors and the operation returns an empty results array?
10:24:46 kwijibo: (I want to make sure that my store class behaves as similarly as possible)
10:27:13 bengee: I think it may directly dump an error when some serious mysql error occurs, and returns false/0 on query parser errors, but otherwise, yeah, just an empty result
10:51:25 Asga: hi there
10:52:04 Asga: can i parse input data with the semHTML parser when i got the data right in the sourcecode?
10:52:54 Asga: i tried parse($base, $data); (i don't know what has to be in $base...) and it returns no results but there is rdfa in the code
10:53:11 bengee: that should have worked
10:54:01 bengee: $base is neded for relative path resolution
10:55:21 Asga: okay
10:55:26 bengee: if you have a recent ARC2, it should be possible to do $parser->parse($base, $data); $triples = $parser->getTriples()
10:56:00 Asga: well $triples is empty and $rdfxml is also empty (because of the triples)...
10:56:07 bengee: it may be that the parser needs a root html node to find an entry point
10:56:24 Asga: i tried the code snippet in the documentation
10:56:31 Asga: ah that can be it...
10:56:35 bengee: do you have a pointer to the data
10:56:40 Asga: you meen root as <html> <body> ?
10:56:43 Asga: mean even
10:56:47 bengee: yes
10:56:56 Asga: okay my data lacks these
10:56:58 Asga: ill try that
10:57:07 bengee: lemme see what is needed
10:59:13 Asga: what do you mean?
10:59:20 Asga: but i think that solved it
10:59:31 Asga: now it finds some triples
11:00:49 bengee: ok, the parser does not need <html>, but the rdfa extractor does
11:01:22 Asga: ah okay
11:01:24 Asga: good
11:01:26 Asga: thank you
11:01:32 bengee: np
11:01:35 Asga: now everything works
11:01:42 bengee: great
11:02:45 bengee: maybe I can tweak my code to accept a non-html root node
11:07:18 Asga: that would be good but it's not so necessary i think... i now just surrounded the data myself with <html> <body> ec.
11:07:20 Asga: etc.
12:02:02 kwijibo: bengee: does INSERT need a target GRAPH ?
12:02:32 bengee: yes
12:04:55 bengee: I made it optional in the data wiki plugin, but the sparql+ parser still needs it
12:05:24 kwijibo: ok, cheers
12:05:46 kwijibo: how did you make it optional?
12:05:48 bengee: there is example code in the data wiki plugin for injecting INTO/FROM
12:06:00 kwijibo: thanks
12:06:16 bengee: first couple of lines in getUpdatedIndex()
12:24:30 kwijibo: bengee, how do you do access control in arc nowadays?
12:24:53 kwijibo: I remember you used to split certain predicates off into a seperate table
12:25:03 kwijibo: is there a graph-based solution now?
12:25:10 bengee: no
12:25:25 bengee: no access control beyond smple api keys in the endpoint
12:26:06 bengee: danbri was exploring this GRAPH injection, but I dont think that's as simple as he thought
12:27:12 kwijibo: graph injection?
12:27:46 bengee: what we discussed in london. somehow adding GRAPH keywords into the query to then filter the results
12:28:09 kwijibo: hmm
12:28:48 kwijibo: it would be better, I think, to specify which graphs are allowed/not allowed in a config of the endpoint
12:28:55 kwijibo: and push that down to the SQL level
12:29:04 kwijibo: if that's possible
12:29:13 bengee: dunno
12:29:17 kwijibo: does mysql 4 have subselects?
12:29:28 bengee: no
12:30:03 kwijibo: hmm, maybe not necessary
12:30:10 bengee: well, not 4.0.x
12:30:20 bengee: 4.1 does, I think
12:34:07 kwijibo: would it be viable, in the config array to have 'private_graphs' => array('#a', '#b') ?
12:34:28 kwijibo: and then in the SQL generation, check for prvate graphs in the config, and add constraints
12:34:56 kwijibo: g != '#a' AND g != '#b'
12:35:27 kwijibo: anyway, just thinking out loud, sorry to bother you
12:38:25 bengee: arc normalises graphs into a separate table. really tricky to auto-inject constraints
12:38:55 kwijibo: hmm, feck :p
14:21:21 kwijibo: bengee: SNP list?
14:21:50 kwijibo: not scottish national party i take it ? ;)
14:34:59 bengee: heh, google's social-network-portability
14:35:15 bengee: conquer'd by spammers
14:35:29 kwijibo: lol
17:19:47 peterkz: Thank you!.
17:19:49 kwijibo: np
17:19:50 peterkz: (testing)
17:19:51 bengee: ok, site is up again
17:19:52 kwijibo: yay
17:40:16 peterkz: Question: clicking the latest releaselink in this page: http://arc.semsol.org/download/notes redirectos to a login page. Clicking the download link here http://arc.semsol.org/download does not. Bug or feature?
17:40:47 bengee: oh
17:40:55 bengee: bug
17:41:31 bengee: fixed
17:41:33 bengee: thx
18:06:32 kwijibo: bengee: http://n2.talis.com/svn/playground/kwijibo/PHP/arc/plugins/trunk/Talis_Store/