IRC log of dig on 2009-05-28

Timestamps are in UTC.

00:03:08 [oshani]
kennyluck, is this the right proof?
00:03:08 [oshani]
http://people.csail.mit.edu/kennyluck/SVN-DIG/Papers/SocialComp/code/cwm_test/complete_proof.n3
00:03:18 [oshani]
It gives me the following error:
00:03:25 [oshani]
Error: uncaught exception: Can't convert from NT"9980000000"^^<http://dbpedia.org/units/Dollar>
00:20:06 [oshani]
also Tabulator's n3 parser seem to choke on http://people.csail.mit.edu/kennyluck/SVN-DIG/Papers/SocialComp/code/cwm_test/intermidiate_result.n3
01:16:31 [presbrey]
hey ericP did you get my notes about building swobject?
01:35:06 [lkagal]
lkagal (n=lkagal@33.68.171.66.subscriber.vzavenue.net) has joined #dig
01:35:58 [lkagal]
lkagal has quit (Client Quit)
01:50:46 [drrho]
drrho has quit (pratchett.freenode.net irc.freenode.net)
01:51:03 [drrho]
drrho (n=rho@chello213047112079.11.11.vie.surfer.at) has joined #dig
03:01:40 [fuming]
fuming (n=fuming@WESTGATE-TWO-TWENTY-TWO.MIT.EDU) has joined #dig
03:06:39 [lkagal]
lkagal (n=lkagal@33.68.171.66.subscriber.vzavenue.net) has joined #dig
03:11:39 [ericP]
presbrey, yeah, i hadn't really thought about the functionality if the web client code isn't there
03:12:25 [ericP]
been hacking a bit to make it handle file:// relatively nicely, and mostly to make it construct RdfDBs regardless of whether you have xml parsers, web clients, etc.
03:13:25 [ericP]
the only web client interface is boost::asio, and if i weren't so yorked at dlib for changing ifaces over minor releases, i'd try to figure out how to use it to do GET
03:14:41 [ericP]
do you want to grab a newer boost? i think asio shows up in 1.35 (current version is maybe 1.38)
03:32:08 [lkagal]
lkagal has quit ()
03:41:24 [fuming]
fuming has quit ()
04:41:42 [kennyluck]
kennyluck: oshani, http://dig.csail.mit.edu/2007/wiki/sandbox/Will#Will
05:42:15 [oshani]
oshani has left #dig
11:39:40 [RalphS]
RalphS (n=swick@30-7-227.wireless.csail.mit.edu) has joined #dig
12:31:16 [charles2]
charles2 (n=charles2@dhcp-18-111-59-229.dyn.mit.edu) has joined #dig
12:39:23 [lkagal]
lkagal (n=lkagal@33.68.171.66.subscriber.vzavenue.net) has joined #dig
13:10:40 [Pipian]
Pipian (n=pipian@w3cdhcp27.w3.org) has joined #dig
13:21:47 [timbl]
timbl has quit (Read error: 113 (No route to host))
13:35:37 [lkagal]
lkagal has quit ()
13:39:30 [lkagal]
lkagal (n=lkagal@33.68.171.66.subscriber.vzavenue.net) has joined #dig
13:42:46 [timbl]
timbl (n=timbl@128.30.55.132) has joined #dig
13:47:04 [fturkmen]
fturkmen (n=fturkmen@w3cdhcp11.w3.org) has joined #dig
13:47:41 [charles2]
charles2 has quit ()
14:01:18 [fuming]
fuming (n=fuming@WESTGATE-SIX-EIGHTY-THREE.MIT.EDU) has joined #dig
14:03:45 [charles2]
charles2 (n=charles2@30-5-183.wireless.csail.mit.edu) has joined #dig
14:04:31 [lkagal]
lkagal has quit ()
14:05:01 [fuming]
fuming has quit (Client Quit)
14:07:18 [oshani]
oshani (n=oshani@w3cdhcp4.w3.org) has joined #dig
14:11:31 [lkagal]
lkagal (n=lkagal@33.68.171.66.subscriber.vzavenue.net) has joined #dig
14:13:38 [RalphS]
RalphS has quit ("rebooting ...")
14:14:43 [lkagal]
lkagal has quit (Client Quit)
14:28:23 [lkagal]
lkagal (n=lkagal@33.68.171.66.subscriber.vzavenue.net) has joined #dig
14:28:28 [timbl_]
timbl_ (n=timbl@30-6-176.wireless.csail.mit.edu) has joined #dig
14:29:21 [timbl_]
timbl_ has quit (Client Quit)
14:31:27 [lkagal]
lkagal has quit (Client Quit)
14:34:00 [timbl_]
timbl_ (n=timbl@31-33-51.wireless.csail.mit.edu) has joined #dig
14:35:32 [lkagal]
lkagal (n=lkagal@33.68.171.66.subscriber.vzavenue.net) has joined #dig
14:41:20 [lkagal]
lkagal has quit ()
14:42:07 [RalphS]
RalphS (n=swick@w3cdhcp81.w3.org) has joined #dig
14:42:20 [RalphS]
RalphS has quit (Client Quit)
14:42:46 [Ralph]
Ralph (n=swick@w3cdhcp81.w3.org) has joined #dig
14:42:56 [Ralph]
Ralph is now known as RalphS
14:44:17 [timbl]
timbl has quit (Read error: 110 (Connection timed out))
14:45:31 [lkagal]
lkagal (n=lkagal@33.68.171.66.subscriber.vzavenue.net) has joined #dig
14:48:24 [lkagal]
lkagal has quit (Client Quit)
14:58:11 [lkagal]
lkagal (n=lkagal@33.68.171.66.subscriber.vzavenue.net) has joined #dig
15:13:13 [lkagal]
lkagal has quit ()
15:52:21 [fuming]
fuming (n=fuming@WESTGATE-THREE-TWENTY-ONE.MIT.EDU) has joined #dig
16:13:54 [fuming]
fuming has quit ()
16:22:27 [timbl_]
timbl_ has quit ()
16:42:17 [lkagal]
lkagal (n=lkagal@30-6-179.wireless.csail.mit.edu) has joined #dig
16:43:00 [charles2]
I am looking at a foaf generated by identi.ca with Tabulator, and I am finding that it does not expose the information about the person (name, location, etc) but I can see it if I look at the raw source. Does anyone know what I might be doing wrong?
17:08:48 [timbl]
timbl (n=timbl@w3cdhcp5.w3.org) has joined #dig
17:32:44 [timbl]
Oshani, to see a lot of time used scanning for RDFa, try loading the HTML5 spec http://dev.w3.org/html5/spec/Overview.html
17:33:48 [oshani]
timbl, yes.. that's very interesting
17:34:45 [oshani]
I wonder if there's any way I could speed up the parsing for large docs like that
17:35:02 [timbl]
Is the algorith, currently linear in the size of the document?
17:35:19 [oshani]
yes, linear
17:39:25 [oshani]
timbl, BTW I am currently experimenting on a new pane on Tabulator to send twitter updates using pushback - so far so good :-)
17:39:44 [oshani]
the only negative thing about this would be that I am relying on the DERI's pushback controller hosted on their server - so, it's centralized
17:45:01 [fturkmen]
oshani, just a suggestion for better parsing; you may try different xml parsers (hopefully there is an implementation required by your application, JS I guess), apart from SAX implementations, you may want to try this : http://vtd-xml.sourceforge.net/, and some possible inspirations from AJAX approaches
17:47:17 [oshani]
fturkmen, thanks... but I wonder whether these can be used for efficient HTML DOM traversal.
17:47:35 [oshani]
jQuery is the best out there that I know of
17:47:57 [lkagal]
lkagal has quit ()
17:49:26 [fturkmen]
oshani, you need to parse the document or traverse a DOM tree?
17:50:15 [oshani]
you have to parse the document by traversing the DOM tree isn't it? correct me if I'm wrong
17:56:18 [lkagal]
lkagal (n=lkagal@30-6-179.wireless.csail.mit.edu) has joined #dig
18:11:36 [timbl]
twitter updates using pushback -- sending the update using the Twitter API or using a server to translate from SPARQL to Twitter API?
18:12:00 [timbl]
centralised, but so is wtwitter
18:12:11 [timbl]
they just havce a twitterwrapper
18:12:15 [timbl]
That is oK IMHO
18:13:13 [timbl]
oashani, re parsiung, you start from the DOM, not the but stream, right?
18:13:31 [timbl]
Do you have to traverse the whole tree for every document?
18:13:50 [timbl]
So it is linear in the total number of nodes?
18:25:12 [oshani]
timbl, pushback on Tab is designed to do updates through SPARUL to the DERI endpoint. Then that updates to the Twitter API via their PB Write wrapper
18:25:19 [oshani]
at least that's the plan
18:25:27 [oshani]
and re: RDFa parsing
18:25:40 [oshani]
yes I travel the whole DOM tree
18:25:51 [oshani]
not sure what you mean by "but stream"
18:26:52 [oshani]
Fatih mentioned of a pull parsing model like SAX... but I am not sure whether we can use it here
18:27:01 [oshani]
but I guess it's worth investigating
18:27:33 [oshani]
s/travel/traverse
18:27:35 [oshani]
:)
18:27:36 [fuming]
fuming (n=fuming@WESTGATE-THREE-TWENTY-ONE.MIT.EDU) has joined #dig
19:19:54 [charles2]
does the statementsMatching method return a string?
19:40:31 [charles2]
charles2 has quit ()
19:44:20 [charles2]
charles2 (n=charles2@dhcp-18-111-19-208.dyn.mit.edu) has joined #dig
19:50:33 [Pipian]
Pipian has quit (Remote closed the connection)
20:02:46 [lkagal]
lkagal has quit ()
20:04:23 [lkagal]
lkagal (n=lkagal@30-6-179.wireless.csail.mit.edu) has joined #dig
20:06:40 [timbl]
I meant "bit stream" ! :-/
20:10:44 [charles2]
charles2 has quit ()
20:16:37 [charles2]
charles2 (n=charles2@30-5-183.wireless.csail.mit.edu) has joined #dig
20:19:23 [charles2]
Still trying to figure out how to make use of the triples that are returned from the statementsMatching method. can anyone point me to some documentation or relevant code that might help?
20:21:02 [RalphS]
RalphS has quit ("bye for today")
20:42:06 [lkagal]
lkagal has quit ()
20:43:36 [lkagal]
lkagal (n=lkagal@30-6-179.wireless.csail.mit.edu) has joined #dig
21:03:22 [lkagal]
lkagal has quit ()
21:10:49 [timbl]
charles2 .. hmm a triple has subject() and predicate() and object() mthods
21:11:26 [timbl]
oops am i thinking of js orpython
21:11:45 [charles2]
timbl: i can try it and see if it works
21:12:06 [timbl]
been programming a little in python
21:13:59 [charles2]
its a great language. Unfortunately, I dont think those methods work on the returned information.
21:14:30 [timbl]
Sorry hte js and py interfaces are diferent :-(
21:15:03 [charles2]
i tried to get avatar information off of my identi.ca account rdf and i got this so far: <http://identi.ca/user/57496> <http://rdfs.org/sioc/ns#avatar> <http://theme.identi.ca/identica/default-avatar-profile.png> .
21:15:20 [charles2]
i suppose i could split on spaces and take the third option
21:15:32 [charles2]
but i wasnt sure if there was a less hackish way to do it
21:16:38 [timbl]
In js the subjcet predicat e and object are properties not functions
21:18:20 [charles2]
okay, so do I just split this triple over the space then?
21:18:34 [timbl]
charles2, the basic RDF classes are in http://dig.csail.mit.edu/2005/ajar/ajaw/js/rdf/term.js
21:18:55 [timbl]
e.g. function RDFStatement(subject, predicate, object, why) {
21:18:55 [timbl]
this.subject = makeTerm(subject)
21:18:56 [timbl]
this.predicate = makeTerm(predicate)
21:18:56 [timbl]
this.object = makeTerm(object)
21:18:58 [timbl]
...
21:20:21 [timbl]
But you probably want to query the knowledge base for give subnect and predicate, like kb.any() as used in http://dig.csail.mit.edu/2005/ajar/adr/book.js
21:20:26 [timbl]
as an example.
21:20:41 [charles2]
I am not sure I understand how to connect what understand so far with that.
21:21:30 [timbl]
icon = kb.any(kb.sym('http://identi.ca/user/57496'), SIOC('avatar'))
21:21:47 [charles2]
oh interesting!
21:22:16 [charles2]
so that is the same as using the foaf inside of kb.any
21:22:50 [timbl]
where SIOC = Namespace("http://rdfs.org/sioc/ns#")
21:23:33 [timbl]
SIOC and FOAF are ways of abbreviating long URIs in the code. They return RDF symbol objevcts -- RDF graph nodes more or less.
21:24:02 [timbl]
These RDF terms can be literals too. They are passed all over the RDF APIs.
21:24:19 [lkagal]
lkagal (n=lkagal@30-6-179.wireless.csail.mit.edu) has joined #dig
21:25:12 [charles2]
interesting. okay I think i understand that
21:25:19 [charles2]
thank you :)
21:25:52 [timbl]
kb.any(s,p) looks for any o such that {s p o} is on kb.
21:26:17 [timbl]
Similarly kb.any(undefined, p,o) looks for an s.
21:26:30 [timbl]
your elcome .. sporry not better doc
21:27:52 [timbl]
There was some attempt to use javadoc to generate some documentation at one point.
21:30:39 [charles2]
that would be pretty fancy
21:42:10 [charles2]
should FOAF and SIOC already be defined? I had to use var foaf = tabulator.ns.foaf for foaf and there wasnt a soic in the tabulator.ns object
21:49:34 [fuming]
fuming has quit ()
22:03:32 [oshani]
charles2, yes SIOC is not defined in Tab
22:03:58 [oshani]
but you can give it a namespace as Tim had suggested
22:05:54 [charles2]
oshani: the javascript seems to like Namespace("foo") but i dont know what to do with it after that
22:08:23 [oshani]
Namespace("foo")?
22:08:44 [oshani]
well, namespacing is just a convenience method IMHO
22:08:59 [oshani]
so you could do SIOC = Namespace("http://rdfs.org/sioc/ns#")
22:09:10 [lkagal]
lkagal has quit ()
22:09:26 [oshani]
and then use SIOC("avatar")
22:09:59 [lkagal]
lkagal (n=lkagal@30-6-179.wireless.csail.mit.edu) has joined #dig
22:27:37 [lkagal]
lkagal has quit ()
22:31:38 [timbl]
timbl has quit (Read error: 110 (Connection timed out))
22:32:03 [oshani_]
oshani_ (n=oshani@30-6-246.wireless.csail.mit.edu) has joined #dig
22:34:08 [oshani_]
oshani_ has quit (Client Quit)
22:34:20 [fturkmen]
fturkmen has left #dig
22:35:11 [oshani_]
oshani_ (n=oshani@30-6-246.wireless.csail.mit.edu) has joined #dig
22:42:51 [charles2]
charles2 has quit ()
22:48:28 [oshani]
oshani has quit (Read error: 110 (Connection timed out))
23:09:35 [timbl]
timbl (n=timbl@pool-96-233-120-166.bstnma.fios.verizon.net) has joined #dig