Channel #semsol: Logs

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

12:11:26 scor: hi all
12:11:40 bengee: heya scor
12:12:01 scor: bengee: great to see the ML and IRC archives online!
12:12:29 scor: I wonder if there is a SPARQL endpoint built in ARC2
12:13:01 bengee: yeah, the bots are still a bit touchy, but seem to finally work ok now
12:13:18 bengee: yes, ARC2 has an endpoint class
12:13:26 bengee: with http bindings
12:13:42 scor: great! is there any documentation on that?
12:14:03 scor: I googled it but found the old url which does not work (and is for ARC1)
12:14:04 bengee: I'm writing ARC2 docs as we speak
12:14:35 scor: cool... I'll be happy to use them as the become available
12:15:10 bengee: the endpoint is just 10 lines, I can put that up first if you like
12:15:22 scor: yeah that would be great
12:15:38 scor: I need that to include ARC2 in our benchmark
12:16:03 bengee: bengee checks if arc-bot is logging
13:01:28 bengee: scor, endpoint doc is now online at http://arc.semsol.org/docs/v2/endpoint
13:02:33 scor: Brilliant! Thanks you so much bengee :)
13:02:38 bengee: you can use sparql+ to load data (see http://arc.semsol.org/docs/v2/sparql+ ) for LOAD and DELETE syntax
13:04:11 bengee: at the moment, ARC2 is most probably slower than ARC1, esp. for smaller datasets. The query rewriting needs more db accesses
13:06:22 bengee: there is no cache for translated queries and I'll have to optimize the storage a little bit. whatever is added at this stage will be compatible with the preview code and generated mysql tables, though
13:06:59 scor: bengee: OK, that's good to know
13:26:47 kwijibo: bengee: can I suggest a change to ARC2->getScriptURI() ?
13:27:42 bengee: sure
13:28:34 bengee: send it to the list, maybe?
13:28:55 kwijibo: the unchecked use of $_SERVER causes an error when running without a server invoked - eg: shell scripts and unit tests
13:29:54 bengee: what would you like ARC to return in that case?
13:31:39 bengee: re there any env vars available that I could use, e.g. together with file://?
13:31:51 bengee: s/re there/are there/
13:32:55 kwijibo: I thought there ought to be
13:33:20 kwijibo: I wasn't really fussy, so I just changed it to return __FILE__ but that's a bit rubbish
13:33:34 kwijibo: so I'm looking now for something better ...
13:36:57 kwijibo: bengee: maybe $_SERVER["SCRIPT_FILENAME"] ?
13:38:08 bengee: bengee thought $_SERVER was not set
13:39:18 kwijibo: that still seems to work when run from the command line
13:39:24 kwijibo: I think it's just the $_SERVER['SERVER_PROTOCOL'])).'://'.$_SERVER['SERVER_NAME'] but that causes the problems
13:39:58 kwijibo: i thought so too - that would be sort of logical :s but I think it's just part of the array that isn't set
13:42:08 bengee: ok, then I could try to do "file://" . $_SERVER[
13:42:40 kwijibo: kwijibo forgets how to get the full path of the script filename
13:44:09 bengee: I think it gives you an abs path
13:44:21 bengee: /home/foo/...
13:44:37 scor: bengee: no it's the relative path
13:45:25 scor: If a script is executed with the CLI, as a relative path, such as file.php or ../file.php, $_SERVER['SCRIPT_FILENAME'] will contain the relative path specified by the user.
13:46:44 bengee: ah, ok, hmm
13:48:18 scor: what are trying exactly? retrieving the absolute path of a file?
13:48:39 bengee: yes
13:49:10 bengee: what about realpath?
13:51:57 scor: looks good
14:03:37 bengee: kwijibo, a new revision is online
14:04:08 bengee: can't test it locally, hope it works..
14:08:59 bengee: bengee off for a bit
14:30:24 kwijibo: cheers bengee!
16:38:45 bengee: yw, kwijibo
16:39:05 kwijibo: :)