This is a public chat log generated from the #semsol IRC channel.
08:43:24
bengee: I can think of two use cases for pre-query triggers now: SPARQL-rewriting, and generating changesets with each DELETE/INSERT
08:45:25
interesting
08:45:53
maybe triggers could have before and after methods
08:46:15
those are rather hoks than triggers, though, I guess. You'd want to adjust parameters and in-scope variables, which is a bit tricky to generalize
08:46:25
s/hoks/hooks/
08:47:35
hmm - well you pass $infos to the trigger's constructor - I was thinking that would be enough for the use cases I was thinking about
08:48:20
yeah, but the triggers don't affect any other app flow
08:49:09
a pre-query trigger couldn't change the actual query
08:51:21
it could - you could make it takes the infos from the trigger/hook object before doing something with it (if there are any triggers set)
08:53:31
sounds a bit too fragile to me. every pre-query trigger then had to return some defined structure that conatined the changed infos and other stuff
08:54:49
i'm not seeing the problem?
08:56:13
we'd have to hard-code what a pre-query trigger had to return
08:57:08
sort-of
08:57:23
not necessarily
08:58:09
how does the query method then know that the the infos were changed?
08:58:19
the processTriggers part could just call the pre() method
08:58:56
and then, if $trigger->infos is set (and not empty perhaps), take that value
08:59:00
for infos
08:59:11
and pass it to the next trigger in the queue
08:59:52
pre() ?
09:00:09
or before() or whatever
09:00:50
(I was thinking instead of two different classes of trigger object, it might be more useful to have two different methods on the same object)
09:05:43
I'd probably replace the current triggers with a more generic hook mechanims as well
09:07:14
hooks could be definded for selected methods, either as entry-hooks at the very beginning (where thy could change input parameters), or as exit-hooks at the very end (where they could change return values)
09:20:53
sounds fair enough
10:13:24
kwijibo wonders what the difference between query time and load time is
10:13:58
bengee too ;)
10:14:10
I think load_time doesn't include index updating
10:58:45
bengee: if micrordf is a true superset, could it be a convincing answer to the testing and compound difficulties they've been having?
10:59:25
I hope
11:00:53
it might be that micrordf disagrees with some deployed microformats, though (e.g. when you put multiple node-type indicators on a single tag)
11:01:25
like <div class="vcard hentry">... or so
11:02:09
well, that could actually be valid..
11:05:37
another use case I had for hooks is to do on-the-fly fetching and caching of data from FROM graphs over the web
11:06:21
oh, right, that'd be nice
11:09:31
I did it as an option on the talis store, but the hook functionality would allow it to work with any arc persisted store
11:10:21
yeah, and w/o having to hard-code it, you could just enable the hook
11:16:44
yeah, exactly
11:17:07
atm, you have to set it as a config param to the store instantiation
11:17:15
a hook would be neater
13:02:38
hmm, I wonder if there's some useful way to use the live FROM idea with 'virtual graphs' that used search engines like google and amazon
13:02:58
or perhaps, more amenably, sindice
15:56:07
bengee: RDFa doesn't default to XMLLiteral anymore? it's XMLSchema#String ?
15:56:36
it's plain, I think, unless you have ags in the literal
15:56:43
s/ags/tags/
15:56:55
hmm
15:57:10
then is xmlliteral, unless you have @datatype=""
15:57:11
so you have to autodetect what's in the literal?
15:57:23
yes
15:57:27
fookin hell :p
15:57:38
more complicated than I though
15:57:43
*thought
15:58:33
If not specified, then the default value is string as defined in [XMLSCHEMA]. - so that's a plain literal?
15:59:12
I'm doing a get_plain_content(), and get_raw_content(), and when the two are identical, I'm not setting a datatype, which was straight-4ward to implement
16:00:08
I don't think plain values should be auto-typed as xsd:string
16:00:34
hope not
16:00:41
that would be daft
16:01:22
the test cases expect plain literals
17:50:50
bengee: Isn't it possible to *only* extract rdfa from some html?
17:51:41
yeah, set the sem_html_formats to 'rdfa'
17:52:16
or set auto-extract to false, and then do a extractRDF('rdfa')
17:53:10
oh yeah
17:53:15
I see it now :)
18:17:05
bengee: http://n2.talis.com/svn/playground/kwijibo/PHP/arc/plugins/trunk/ARC2_RDFaSerializer/
18:17:48
wow
