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