00:10:12 ericP, another parser exception 00:10:17 do you prefer them here or email? 00:10:41 [Mon Aug 09 20:08:58 2010] [error] mod_fcgid: process /srv/dig/www/wiki/handler.py(16961) exit(communication error), get unexpected signal 6 00:10:41 terminate called after throwing an instance of 'w3c_sw::ParserException' 00:10:41 what(): @base .@prefix rdf: .@prefix rdfs: .@prefix foaf: .@prefix rsa: .@prefix cert: .@prefix admin: .<> a foaf:PersonalProfileDocument ; foaf:maker <#me> ; foaf:primaryTopic <#me> .<#me> a foaf:Person ; 00:10:42 foaf:family_name "familyname" ; foaf:givenname "firstname" ; foaf:homepage <> ; foaf:nick "testdatawiki" .:1.1-5: syntax error, unexpected LANGTAG, expecting end of file 00:12:36 oshani has quit (Quit: Mama nidi!) 00:13:48 webr3 (~nathan@host86-169-13-236.range86-169.btcentralplus.com) has joined #dig 00:15:33 oshani (~oshani@c-67-161-2-233.hsd1.ca.comcast.net) has joined #dig 00:17:37 oshani has quit (Client Quit) 00:44:55 lkagal has quit (Quit: lkagal) 01:35:49 melvster has quit (Remote host closed the connection) 02:07:31 nunnun_away is now known as nunnun 02:40:11 timbl (~timbl@pool-96-237-236-72.bstnma.fios.verizon.net) has joined #dig 02:44:52 timbl has quit (Remote host closed the connection) 02:45:03 timbl (~timbl@pool-96-237-236-72.bstnma.fios.verizon.net) has joined #dig 02:45:54 DIGlogger, pointer? 02:45:54 See http://dig.csail.mit.edu/irc/dig/2010-08-10#T02-45-54 02:48:10 knappy (~haoqi@dhcp-18-111-36-78.dyn.mit.edu) has joined #dig 02:51:48 Hi Tim are you here? 03:07:05 kennyluck has quit (Quit: kennyluck) 03:14:03 presbrey, escaping bug should be fixed -- re-building in a screen now 03:17:03 timbl, you also make be intersted in that, but i'm not sure where to copy the .so to make it available to the scripts 03:23:13 Um /srv somewhere I expect.. I think Joe mentioned on IRC way back 03:23:55 03:19:44 [presbrey] 03:23:55 ericP, i copied swobjcts.[py,so] so rebuilds dont break the actual wiki space 03:23:55 03:20:15 [presbrey] 03:23:56 copy to /srv/dig/lib/python to 'install' 03:24:06 ^ from http://dig.csail.mit.edu/irc/dig/2010-08-09.html 03:24:18 Is that what you want? 03:24:35 ericp 03:25:04 great that bug is fixed. 03:31:28 did you guys try tabulator.org/wiki/ :) 03:31:57 tabulator.org? 03:32:12 what is that running? 03:32:18 I forget 03:32:34 the data wiki 03:32:46 this one? 03:32:53 yeah melvster and i connected it earlier 03:32:59 great 03:33:19 he installed it or poxied 03:33:21 maybe 2 hours ago on swig 03:33:29 changed the domain record 03:33:29 proxied .. must be installed 03:34:07 i put up a jquery data fetching issue tracker data 03:34:11 http://presbrey.scripts.mit.edu/tabulator.html 03:34:53 s/demo/data 03:35:20 Let%27s%20see%20whether%20we%20can%20add%20a%20comment.%2023%3A15 ? 03:35:36 oh check my source 03:35:43 i just called encode() if it was a literal 03:35:50 I know that need encodeing, nor URI encoding :-) 03:35:51 htmlentities i think maybe right 03:36:25 But yes you could build thinks like a web page to report a new bug pretty easily 03:36:32 just using rdflib 03:36:44 we need to revamp the data widgets 03:36:52 of Jim's . 03:37:10 which parts 03:39:42 Well, he almost finished portin them to the tabulator evnironment 03:40:22 And i have a higher-level single entry point to sparqlUpdate.js which we shoul probably use. 03:40:42 interesting 03:40:43 (does dav untested, and sparql, and has a set of dletable statments and a set of insertable stataments) 03:41:23 kenny had done the DAV in a sparate module updateCenter but he did not appreaciate for example the bnode idntification stuff I think. 03:41:48 Have you tried to use the rdfwidgets? 03:42:01 i did the 'getting started' 03:43:05 i thought i saw some sparul'ing on some the ui elements 03:43:55 im not sure about the sparql entry-point. 03:44:23 i am curious about the hardcoded style classes. i guess that makes things easier 03:44:46 lkagal (~lkagal@pool-96-237-240-136.bstnma.fios.verizon.net) has joined #dig 03:47:04 What would you expect instead of hard coded -- add a prefxi to them from the user? 03:49:31 most stuff in apis ive seen now do their function defs like func([id/name], [options-hash]) 03:50:00 it'll take classname in the hash or method=x or whatever based on the kind of object 03:50:56 i was working up to it with my jquery tabulator issues test 03:51:06 most of the time i use prototype 03:52:01 (i also just wanted to play with the json conneg on data wiki) 03:53:53 looks like theres no good builtin js for that escape 04:00:57 "Let's test it by entering some things like a quote mark " and a 04:00:57 new line. And a \ backslash. 04:00:57 " . 04:01:24 Was the encoding on tutle serialisation supposed to be fixed? 04:02:10 Doesnt seem to have changed 04:03:09 The js code to escape stuff is in js/rdf/types.js 04:03:10 where 04:03:32 serialization bug? in state.n3 04:03:48 oh from swobjects 04:03:55 i wonder if ericP installed the new one 04:04:47 See IRC 23:17 04:09:52 they look different to me 04:09:57 ill copy it over 04:10:56 lkagal has quit (Quit: lkagal) 04:12:56 ooh ericP put in an operationsset method 04:14:07 timbl, retry your quotes 04:15:24 ok 04:16:56 sweet 04:17:07 "Let's test it with a newline\nand a quote mark \" and one backslash \\ and two of them \\\\ .\nHow do that come out?" . 04:17:33 haha nice 04:18:01 remind me -- there is a log of changes to each file? no 04:18:34 queries/uri are being error logged 04:18:49 . 04:19:04 no per-statement change log 04:19:34 we were talking about svn bloat last time 04:19:48 Ok. It would be grteat to have an n3 log in fact so that Oshani and Ian could use it as a trail of evidence of what people have done. 04:20:07 Provenance 04:20:08 is there an n3diff.py example 04:20:23 umm 04:21:10 sorry is there a schema you can point me at 04:22:06 http://www.w3.org/2000/10/swap/test/delta 04:22:29 http://www.w3.org/2000/10/swap/test/delta/detailed.tests 04:24:34 http://www.w3.org/2000/10/swap/test/delta/t2/smushed-patch.n3 is an example of a ptach file 04:25:09 where the left hand side o fthe "deleteion" is the WHERE 04:26:06 so your read it as "where ?account has account number 1234567-0 deleet that it has balance -400 04:26:38 in SPARQL WHERE { } .. DELETE {...] 04:27:01 a del;insertion is what 04:27:05 Ok, s the dat awiki is in the no knownbugs stage 04:27:10 s/stage/state/ 04:27:41 A del:insertion B is like WHERE A INSERT B 04:27:54 i was hoping the log schema was going to map easily to subversion commit variables 04:28:35 how are the logs requested 04:29:25 The diff.py program from SWAP will generate a strong diff between two files, provided it can find sufficient information in the Web to fully label the input graph 04:29:30 knappy has quit (Ping timeout: 240 seconds) 04:29:43 "commit variables" ? 04:30:37 Ok, I have to go review a document before the morning.... the data wiki is looking good, suggest we use it for stuff. 04:30:50 Nothing like usingit for real stuff to test things out. 04:32:04 vars like parts of the commit user, time, comment, files add/edit/del, diffs 05:45:37 kennyluck (~kennyluck@DHCP-21227.iis.sinica.edu.tw) has joined #dig 06:01:34 kennyluck has quit (Quit: kennyluck) 06:31:01 kennyluck (~kennyluck@DHCP-21227.iis.sinica.edu.tw) has joined #dig 07:10:28 drrho has quit (Remote host closed the connection) 07:12:17 kennyluck has quit (Quit: kennyluck) 07:17:15 drrho (~rho@chello213047112079.11.11.vie.surfer.at) has joined #dig 07:47:04 melvster (~melvster@p579F9C61.dip.t-dialin.net) has joined #dig 08:44:28 kennyluck (~kennyluck@114-25-246-70.dynamic.hinet.net) has joined #dig 14:51:59 DIGlogger (~dig-logge@groups.csail.mit.edu) has joined #dig 14:51:59 topic is: Decentralized Information Group @ MIT http://dig.csail.mit.edu/ 14:51:59 Users on #dig: DIGlogger yosi melvster oshani lkagal RalphS drrho timbl webr3 amy presbrey Yudai_ ericP sandro nunnun_away gbot46 15:02:50 lkagal has quit (Quit: lkagal) 15:07:38 nunnun_away is now known as nunnun 15:37:15 oshani has quit (Quit: Mama nidi!) 15:59:34 lkagal (~lkagal@30-6-179.wireless.csail.mit.edu) has joined #dig 16:59:39 oshani (~oshani@31-34-137.wireless.csail.mit.edu) has joined #dig 17:40:44 knappy (~haoqi@31-35-54.wireless.csail.mit.edu) has joined #dig 17:41:21 knappy has quit (Client Quit) 19:24:18 we've chatted today about returning sparql from forms other than those tabulator uses (insert/delete) eg. construct in data wiki and checking operation types with swobjects for acls 19:25:49 its always nice when you wake up to new contributions based on yesterdays work. thx for styling webr3 and melvster :) 19:26:47 i didnt do much ... but it IS cool! :) 19:27:00 yes its always cool to bring your data with you 19:28:11 quick question: is tabulator.org (without www) pointed correctly to 18.181.1.220 ? 19:28:21 looks like it 19:28:45 ok good 19:29:45 I would like to see a 'new issue' in webr3's 19:30:21 compared to tabulator 19:31:22 what are other apps good for data wikis... bookmarking? 19:31:51 there should probably be a bookmarklet that sends a sparql insert 19:32:00 personally i would say bank account :) 19:32:14 just a balance and add/subtract 19:32:41 ha good I haven't tested for any locking issues 19:32:42 maybe a bit of workflow ... aka the bank 19:36:52 Other apps good for data wikis -- yes, book mark, bookmark sync, calendaring (complicated) .. nything the WBS (w3c web-based surveys or survey money etc can do, ... doodle .. 19:37:14 voting perhaps 19:37:24 i guess that's surveys 19:40:55 i wonder if http://smob.me/ could be extended to be multi webid then you could do microblogging ... 19:45:06 if you have a good microblog interface it would be nice if I could bring my webid and use your UI with the blog I link from my webid via sparql 19:47:39 smob me is alex passante 19:48:15 but it uses sparql and also pings sindice 19:49:36 i also wonder if it's possible to create simple games based on datawiki 19:50:00 i cant think of any web scale games, to date ... 20:04:03 knappy (~haoqi@dhcp-18-111-36-78.dyn.mit.edu) has joined #dig 20:15:10 kennyluck (~kennyluck@114-25-246-70.dynamic.hinet.net) has joined #dig 20:20:32 RalphS has quit (Quit: leaving ...) 20:43:43 ? ts always nice when you wake up to new contributions based on yesterdays work. thx for styling member:webr3 and member:melvster :) ? 20:43:53 styling? 20:44:28 DIGlogger, pointer? 20:44:28 See http://dig.csail.mit.edu/irc/dig/2010-08-10#T20-44-28 20:52:18 Wow, cool. 20:52:57 kennyluck has quit (Quit: kennyluck) 20:53:19 kennyluck (~kennyluck@114-25-246-70.dynamic.hinet.net) has joined #dig 21:24:14 presbrey, new t_SWObjects.py has tests with parseNTriples 21:24:46 + test_construct, which has an assert to make sure it's a CONSTRUCT 21:27:47 triples w/ variables 21:28:21 how did you get 'member:' on those nicks timbl? I don't think I said that 21:30:02 styling the http://www.tabulator.org/wiki/tabulator/tracker/state better than I did at presbrey.scripts.mit.edu/tabulator.html >> http://webr3.org/apps/rdfjson/ 21:30:24 both use the JSON conneg as someone pointed out on diggers email 21:30:57 Must be colloquy magic -- copied and I repasted yours p- another copy-cut interruption service 21:32:09 o i c 21:32:25 thought maybe they has used the ui:style field somewhere 21:37:03 presbrey, re: triples w/ variables, i forgot about that when i s/parseTriples/parseNTriples/g'd 21:38:32 i've also come up with another strategy besides getOperationType(), but i'm not sure how it will scale 21:42:12 if we'd like the result sparqlParser.parseQuery("CONSTRUCT...") to be a SWObjects.Construct instead of SWObjects.Operation, we can have C++ functions OperationAsConstruct(), OperationAsSelect() and either call them iteratively until one doesn't return None, or switch based getOperationType() 21:43:09 (the challenge is that statically typed languages return base classes while dynamically typed languages return final classes) 21:54:00 I'm not sure what changes jambo did to ACL module for his project. I really need to go see 21:59:36 timbl, too busy today but still dreaming of ACLs... ;) 22:07:51 ericP 22:07:57 the way you test things in python is like 22:08:02 They all connect -- the wiki allows the acl to be edited, the acl controls the wiki, 22:08:09 if operation is OperationSelect: 22:08:17 elif operation is OperationDelete: 22:08:36 where OperationSelect, OperationDelete are classes theoretically inheriting Operation(object) 22:09:02 the way you test s/things/object types/ in python 22:09:52 does the strategy i outlined seem appropriate for that? 22:09:55 (it does to me) 22:10:41 its not clear to me what kind of object I'm going to end up with from OperationAsSelect after swig gets done with it 22:10:44 but sure lets try 22:12:15 I can make Cython bindings to redland C APIs easily and we can compare 22:12:44 I know dajobe was doing operation type enum-style in sparql<1.1 22:13:25 what do you get back from a parser, an Opeation or a Construct? 22:13:25 almost all of my bindings are broken with his 1.1 commits so I don't know yet 22:13:45 (sounds like you get an Operation and an enum you can test) 22:14:05 I get back a graph pattern or set of patterns 22:14:16 a pattern can have an operation, it has an enum 22:14:41 actually the latest dev I was doing with it looked like a normalized string 22:16:00 yep... 22:16:13 also we call it a query 'verb' 22:16:20 [presbrey@endor python-roqet]$ ./test.py group_union.sparql 22:16:20 {'limit': -1, 22:16:20 'order_by': [], 22:16:20 'pattern': {'operator': 'Group', 22:16:20 'patterns': [{'operator': 'Union', 22:16:21 'patterns': [{'operator': 'Basic'}, 22:16:23 {'operator': 'Basic'}]}, 22:16:25 {'operator': 'Basic'}]}, 22:16:29 'variables': ['o', 'oc'], 22:16:31 'verb': 'SELECT'} 22:16:54 like I said this is a <1.1 example as you know with OperationSets but thats the basic 22:17:27 presumably I can descend pattern['patterns'][...] evaluating ACL constraints 22:18:40 haha... 22:18:45 [presbrey@endor python-roqet]$ ./test.py insert.sparql 22:18:45 {'error_code': 1, 22:18:45 'error_messages': [{'line': 1, 22:18:45 'message': 'INSERT cannot be used with SPARQL', 22:18:45 'uri': 'http://null/'}]} 22:19:03 I probably need git Redland 22:21:17 to steal a line from a great movie 22:21:30 swobjects, you had me at INSERT ;) 22:24:16 nice 22:28:33 if(query->verb != RASQAL_QUERY_VERB_CONSTRUCT) 22:29:17 ha he starts his enum with UNKNOWN as well 22:30:29 btw, since i just renamed parseTriples, got a better name for it? 22:31:21 (the way i use it, UNKNOWN means OOPS) 22:32:16 yep. no reason to care to have the enums overlap. just interesting 22:33:04 I guess they are patterns to me; not triples 22:33:40 uri/literal references (triples) + variables => patterns? 22:34:15 triple patterns 22:42:05 parseNPatterns ? 22:42:20 whats the N for? 22:42:33 NTriples 22:42:52 NTP ok 22:42:53 to set the expectation of what syntactice shortcuts are available (specifically, none) 22:43:13 parseNTP ? 22:43:24 or is P in NTP for Parser? 22:43:39 parseNTriplesPatterns 22:43:55 NTP. justification for TTerm was that it appeared many times 22:44:12 how much does parseNTriples 22:44:20 parseNPatterns seems good 22:44:44 if you call it NTP then virtually no one will know what it does from the name alone 22:45:18 parseNPatterns loses the T 22:45:24 parseNTPatterns? 22:46:11 are you done with your toy for today? 22:47:30 the toy i was using to work out the graph cycle algorithm? 22:47:39 nah, playing with that now 22:48:10 knappy has quit (Read error: Connection reset by peer) 22:48:27 would you stumble across parseNTPatterns and guess what it does? 22:48:36 well, as well as any of the other proposals? 22:52:46 top candidates: parseNTriples, parseNPatterns, parseNTPatterns parseNTriplePatterns 22:53:23 2010-08-10T22:53:01Z infobot, roll 'em 22:53:23 2010-08-10T22:53:01Z you rolled ⚁⚀ 22:53:35 I can guess easily what parseNT does 22:53:35 hmm, forgot to assign numbers 22:53:44 so parseNTPatterns seems to follow 22:54:30 done 22:54:35 well, doing... 22:58:53 if only you knew python well ericp 22:58:54 done 22:59:06 I'm sure you would be writing your toy in python and not c++ 23:00:03 yeah, i know enough python to be able to cut and paste stuff from the web 23:00:25 is there a slick debugger that would allow me to step through and test my understanding of the program logic? 23:01:22 (that's how i'd choose the lang for exploratory code) 23:02:06 I like Wing from Wingware 23:02:23 they even issue OSS developers free Pro licenses 23:02:58 http://wingware.com/wingide/screenshots 23:04:41 looks nice, indeed 23:05:20 i like the vadar UI 23:05:55 ha at the bottom? me too. mine looks close to that 23:06:12 its actually gtk+ theme stylable 23:07:24 also has easy multi-windowing and frame-splitting, which is really nice w/ >1 monitor 23:08:37 graphs, nodes, paths, searching, all that stuff I used to do in scheme... I do in python now 23:09:22 even before 6.0(0)1 switched from scheme to python! 23:10:03 python tuple types are hashable and namedtuples are even more delightful 23:10:12 some O'Reilly folks just gave me a Python for Bioinformatics book; i should crack the binding 23:10:49 I point people at http://diveintopython.org/ sometimes 23:11:16 though I've only read the section on unicode 23:16:38 like most things it was learn by doing for me 23:17:54 yeah, i seem to be stuck to that as well 23:20:39 yosi has quit (Quit: ChatZilla 0.9.86 [Firefox 3.6.8/20100722145641]) 23:21:57 hijacking g++ throw: http://zbigg.blogspot.com/2009/03/hijacking-throw.html 23:22:43 oh right, i forgot about that mission 23:26:59 yes ParserExceptions are still causing SIGABRT 23:31:26 lkagal has quit (Quit: lkagal) 23:32:02 you don't like that? 23:37:19 no 23:37:40 do you? 23:40:37 wiki]# ./test.py insert-fail.sparql 23:40:37 terminate called after throwing an instance of 'w3c_sw::ParserException' 23:40:37 what(): INSERT { 23:40:37 :1.8-2.0: syntax error, unexpected end of file, expecting IT_GRAPH 23:40:37 Aborted 23:41:00 'w3c_sw::ParserException' need not terminate the wiki 23:41:16 terminate abort or otherwise kill 23:56:23 oshani has quit (Quit: Mama nidi!)