IRC log of swhack on 2001-09-05
Timestamps are in UTC.
- 00:57:03 [logster]
- logster has joined #swhack
- 00:57:03 [sagan.openprojects.net]
- Users on #swhack: logster Morbus tav` deltab AaronSw
- 01:08:41 [Morbus]
- Morbus has quit
- 02:21:46 [sbp]
- sbp has joined #swhack
- 02:22:21 [AaronSw]
- How's it going?
- 02:23:03 [sbp]
- Great! Hang on a sec...
- 02:24:48 [sbp]
- Right, can you install Python scripts on swag.semanticweb.org?
- 02:25:15 [AaronSw]
- CGIs, sure.
- 02:25:21 [sbp]
- Cool...
- 02:25:23 [sbp]
- Try this:-
- 02:25:45 [sbp]
- [non-cool URI supressed]
- 02:26:19 [AaronSw]
- Nice!
- 02:26:26 [sbp]
- thank you :-)
- 02:27:02 [AaronSw]
- Your links are bum! http://127.0.0.1:81/cgi-bin/rdfwiki.cgi?NodeTitle ?
- 02:27:12 [sbp]
- oh, of course... he he he
- 02:27:19 [sbp]
- let me fix that for you...
- 02:27:42 [sbp]
- done
- 02:29:30 [AaronSw]
- Seems pretty cool.
- 02:29:59 [sbp]
- it *is* pretty cool. I just need to do the mandatory "release", "set up", and all that crap
- 02:30:26 [sbp]
- as you can tell, the user interface isn't all that it's cracked up to be yet
- 02:30:49 [AaronSw]
- Heheh
- 02:31:26 [sbp]
- Aw... you haven't added any triples
- 02:31:42 [sbp]
- according to ./rdfwiki.cgi?n3=1
- 02:32:41 [AaronSw]
- I'm afraid. :-)
- 02:32:44 [AaronSw]
- * AaronSw adds some triples
- 02:32:54 [sbp]
- Hmm... it's not a "true" Wiki yet, because you can't remove data...
- 02:33:12 [AaronSw]
- It's also sorta slow over your connection ;-)
- 02:33:17 [sbp]
- blargh
- 02:33:45 [AaronSw]
- Eek... ArcType needs a None choice!
- 02:33:50 [AaronSw]
- err, WikiText, perhaps
- 02:34:06 [AaronSw]
- oops, never mind
- 02:34:24 [AaronSw]
- ValueType: WikiName... dooes that mean one WikiName or WikiText?
- 02:35:27 [sbp]
- one WikiName... try it and find out!
- 02:36:06 [sbp]
- a literal means any character data. All WikiNames are ConvertedIntoLinks
- 02:36:25 [sbp]
- * sbp finds out he's going to have to document this quite a bit...
- 02:37:03 [AaronSw]
- eek -- if I don't choose an ArcType it blows up -- you should pick a default
- 02:37:15 [sbp]
- good idea
- 02:37:18 [sbp]
- * sbp goes and does it
- 02:38:10 [sbp]
- Done
- 02:39:10 [sbp]
- Hmm... "get node" doesn't work. How does one pass a value to the entire query string?
- 02:39:45 [AaronSw]
- ISINDEX?
- 02:40:22 [sbp]
- Er... wasn't that deprecated in favor of something else?
- 02:40:37 [sbp]
- * sbp looks it up
- 02:40:39 [AaronSw]
- Hey, you're the HTML expert. ;-)
- 02:41:02 [sbp]
- gmrfl
- 02:41:23 [sbp]
- Oh, love it: "ISINDEX is deprecated. This element creates a single-line text input control. Authors should use the INPUT element to create text input controls."
- 02:41:52 [deltab]
- not that those will work in the same way
- 02:42:07 [sbp]
- yeah, exactly
- 02:42:12 [deltab]
- IMDb's ISINDEX interfaces still work, btw
- 02:42:13 [AaronSw]
- heh
- 02:42:13 [sbp]
- aaaaargh!
- 02:42:20 [sbp]
- where'd you come from?
- 02:42:31 [AaronSw]
- huh?
- 02:42:49 [sbp]
- * sbp jumps at the presence of deltab
- 02:42:53 [deltab]
- oh
- 02:42:54 [sbp]
- :-)
- 02:43:14 [deltab]
- I've been here all along
- 02:43:19 [AaronSw]
- :-)
- 02:43:22 [sbp]
- he he he
- 02:43:46 [sbp]
- grr, it tells you to use <input/> to achieve the same effect, but it doesn't say *how*
- 02:44:55 [deltab]
- you can't get exactly the same
- 02:45:23 [sbp]
- * sbp resorts to working out isindex instead
- 02:47:16 [sbp]
- Heh, still doesn't work
- 02:47:55 [deltab]
- instead of isindex you'd need something like:
- 02:47:56 [deltab]
- <form method="get"><div><label> Get a node: <input type="text"
- 02:47:56 [deltab]
- size="17" /><input type="submit" value="submit" /></label></div></form>
- 02:47:59 [deltab]
- :-)
- 02:48:27 [sbp]
- you'd think that, wouldn't you? :-)
- 02:48:40 [AaronSw]
- <label>?
- 02:48:52 [sbp]
- attaches that text to that input control
- 02:48:58 [sbp]
- an accessibility thing
- 02:49:06 [AaronSw]
- cool
- 02:50:13 [sbp]
- Well, I've had enough of trying to find that out
- 02:50:18 [sbp]
- * sbp toodles off
- 02:50:23 [sbp]
- c'ya
- 02:50:26 [AaronSw]
- bye
- 02:53:24 [sbp]
- sbp has quit
- 03:47:59 [sbp]
- sbp has joined #swhack
- 03:48:09 [AaronSw]
- hello again
- 03:48:37 [sbp]
- hi there
- 03:48:42 [sbp]
- source code now available:-
- 03:48:48 [sbp]
- http://infomesh.net/2001/rdfwiki/rdfwiki.txt
- 03:49:14 [sbp]
- Could you set it up at SWAG for me, please?
- 03:49:56 [AaronSw]
- Always asking for something, aren't you. ;-)
- 03:50:18 [sbp]
- Could you not ask me questions like that, please?
- 03:50:23 [sbp]
- :-)
- 03:51:47 [sbp]
- * sbp wonders if he could get his server guys to put Python on the server... risky
- 03:53:05 [sbp]
- all you have to do is feck with the three variables at the top, and away it goes
- 03:53:23 [sbp]
- er... create a rdfwiki.pkl file somewhere, too
- 03:54:04 [AaronSw]
- * AaronSw is still configuring CGI support
- 03:54:33 [sbp]
- set the password to something cool... but it's only to initialize the Wiki simply, and once done, that bit of code can probably be whipped out for security
- 03:57:24 [AaronSw]
- pff, you killed logicerror
- 03:57:39 [AaronSw]
- oh, maybe not
- 03:58:37 [sbp]
- phew
- 04:00:27 [AaronSw]
- * AaronSw runs de-cr on your file
- 04:00:48 [sbp]
- de-cr?
- 04:02:23 [AaronSw]
- to get rid of your silly line breaks
- 04:04:42 [AaronSw]
- Tada: http://admin.logicerror.com/n3/rdfwiki.cgi
- 04:04:45 [AaronSw]
- with no setup
- 04:04:48 [AaronSw]
- [not a cool URI]
- 04:06:36 [sbp]
- er... you must have an old version
- 04:07:30 [sbp]
- what version number do you have?
- 04:08:14 [xena]
- xena has joined #swhack
- 04:08:21 [AaronSw]
- Hi xena!
- 04:08:22 [AaronSw]
- Grr, why do you not use relative links
- 04:08:53 [AaronSw]
- I'm using 0.9
- 04:09:27 [sbp]
- Hmm...
- 04:10:43 [sbp]
- crap! I uploaded the wrong version
- 04:11:04 [AaronSw]
- Hmm:
- 04:11:07 [AaronSw]
- return pickle.load(open(StoreFile,'rb'))
- 04:11:07 [AaronSw]
- EOFError:
- 04:12:57 [sbp]
- * sbp notes something really weird is going on with his local versions
- 04:13:40 [sbp]
- oh, heh, just got it...
- 04:14:35 [sbp]
- ta da: http://infomesh.net/2001/rdfwiki/rdfwiki.txt
- 04:14:37 [sbp]
- 0.95
- 04:14:50 [AaronSw]
- Can you do me some favors?
- 04:14:56 [sbp]
- sure
- 04:14:56 [AaronSw]
- de-cr.py it ahead of time
- 04:15:01 [AaronSw]
- de-cr.py is in SWAP
- 04:15:05 [AaronSw]
- and stick:
- 04:15:15 [AaronSw]
- at the top
- 04:15:58 [sbp]
- O.K.
- 04:17:03 [AaronSw]
- Ooh, and style too!
- 04:17:40 [AaronSw]
- Now can you have it make an opening db file?
- 04:18:28 [AaronSw]
- and set the URLBase to '.' for goodness sake!
- 04:18:51 [AaronSw]
- err WikiBase
- 04:20:01 [AaronSw]
- hmm, maybe not .
- 04:20:19 [AaronSw]
- './rdfwiki.cgi'
- 04:21:07 [sbp]
- I don't like file extensions... anyway, the users can set it, it's all in the changable constants bit
- 04:21:17 [AaronSw]
- well set it to '' then!
- 04:21:29 [AaronSw]
- just use relative URIs for goodness sake!!!!!
- 04:21:41 [sbp]
- fine, change it!
- 04:21:51 [AaronSw]
- I did.
- 04:22:33 [AaronSw]
- use sys.argv[0]
- 04:22:51 [AaronSw]
- WikiBase = './' + sys.argv[0]
- 04:23:08 [AaronSw]
- hmm..maybe not
- 04:23:33 [AaronSw]
- WikiBase = './' + string.split(sys.argv[0], os.sep)[-1]
- 04:23:59 [sbp]
- apologies, it's getting late, I'd better go
- 04:24:45 [sbp]
- c'ya!
- 04:24:48 [AaronSw]
- And bye
- 04:27:03 [deltab]
- AaronSw: os.path.split(sys.argv[0])[1] would be better
- 04:27:32 [AaronSw]
- Does that work?
- 04:27:47 [sbp]
- sbp has quit
- 04:27:53 [AaronSw]
- ahh, I guess it does
- 04:28:33 [AaronSw]
- Now what's the better way of saying: Root = string.join(string.split(sys.argv[0], os.sep)[:-1], os.sep) + '/'
- 04:31:48 [deltab]
- um, what's that for? You've got both os.sep and '/'
- 04:32:05 [AaronSw]
- oops, s/'\/'/os.sep/
- 04:32:12 [AaronSw]
- Root = string.join(os.path.split(sys.argv[0])[:-1], os.sep) + os.sep
- 04:32:24 [AaronSw]
- That's the name of the local directory
- 04:32:40 [deltab]
- there's also os.path.join
- 04:33:08 [deltab]
- and os.path.dirname
- 04:33:47 [AaronSw]
- os.path.dirname(sys.argv[0]) + os.sep
- 04:35:53 [deltab]
- os.path.join(os.path.dirname(sys.argv[0]), '')
- 05:23:24 [tav`]
- tav` has quit
- 07:42:04 [xena]
- xena has quit
- 07:43:18 [deltab]
- deltab has quit
- 07:52:09 [deltab]
- deltab has joined #swhack
- 07:55:10 [deltab]
- deltab has quit
- 08:03:01 [deltab]
- deltab has joined #swhack
- 08:03:07 [deltab]
- deltab has quit
- 08:03:08 [deltab]
- deltab has joined #swhack
- 13:16:01 [tav`]
- tav` has joined #swhack
- 13:16:48 [tav`]
- tav` has quit
- 15:59:07 [sbp]
- sbp has joined #swhack
- 16:15:17 [sbp]
- sbp has quit
- 19:23:18 [sbp]
- sbp has joined #swhack
- 19:23:24 [AaronSw]
- bonjour
- 19:23:48 [sbp]
- Hi there
- 19:24:38 [AaronSw]
- I assume you want me to install the Wiki>
- 19:24:42 [AaronSw]
- s/>/?/
- 19:27:49 [sbp]
- yes please :-) Although Dan's already done so...
- 19:37:39 [AaronSw]
- Okedoke.
- 19:37:50 [AaronSw]
- Deltab worked it out yesterday that you can set the configs to:
- 19:37:51 [AaronSw]
- Root = os.path.join(os.path.dirname(sys.argv[0]), '')
- 19:37:51 [AaronSw]
- WikiBase = os.path.split(sys.argv[0])[1]
- 19:37:54 [AaronSw]
- and it should work
- 19:39:07 [deltab]
- for the latter there's os.path.basename
- 19:39:25 [sbp]
- but don't forget, you need an absolute URI anyway for the N-Triples output
- 19:39:34 [AaronSw]
- Oh, right.
- 19:39:48 [AaronSw]
- Well, can you fix it so it uses relative links then?
- 19:40:28 [AaronSw]
- Sean, what do you want the SWAG URI to be?
- 19:40:45 [AaronSw]
- or not necessarily SWAG.
- 19:41:28 [sbp]
- anything: it's totally up to you :-)
- 19:42:03 [AaronSw]
- I'm wrought with indecision.
- 19:42:42 [sbp]
- at least, you think you are, eh?
- 19:42:46 [sbp]
- :-)
- 19:42:56 [AaronSw]
- heh... swag/rdfwiki then
- 19:43:25 [sbp]
- cool
- 19:46:59 [AaronSw]
- Cool it seems to work: http://purl.org/swag/rdfwiki
- 19:47:46 [sbp]
- kick-ass!
- 19:49:19 [sbp]
- well, that's a nice little hack. Remember that script I showed you about a week ago that didn't do very much? I derived it from that
- 19:49:41 [AaronSw]
- Huh?
- 19:50:06 [sbp]
- yeah, you remember... it wasn't working all that well back then, but you tried it
- 19:50:43 [AaronSw]
- Oh, yes. the RDFWiki script.
- 19:50:45 [AaronSw]
- It's very similar.
- 19:50:57 [AaronSw]
- I think it came out rather well.
- 19:51:36 [sbp]
- thanks - I've been messing around with the idea for ages, but wasn't sure how to represent it
- 19:53:35 [AaronSw]
- Yeah, it's a tricky issue
- 19:53:58 [sbp]
- Yep... this seems to have got it though
- 20:25:31 [sbp]
- Gotta run
- 20:26:09 [AaronSw]
- byw
- 20:26:13 [AaronSw]
- err bye
- 20:28:35 [sbp]
- sbp has quit
- 22:05:34 [sbp]
- sbp has joined #swhack
- 22:16:08 [sbp]
- sbp has quit