actually, I think I can use test.mb for this, sorry! :)
warp
np :)
aCiD2
warp: what dataset are you generating the ws.sql from? The latest NGS dump or a more recent mb dump?
warp
ngs/20100616
aCiD2
Hm.
I'm doing a reimport now but because I need moderation_closed mine is going to be more up to date
Guess I'll have to fix some tests
warp
aCiD2: oh, I noticed there are a few /ws/2 patches from me still on code review
aCiD2: can you review those and merge those in soonish, they'll be much harder to merge later on if you're working on /ws stuff.
(or I can merge them if you give them ship its)
aCiD2
Ok, will do
some have shipits
warp
really? I thought I checked this morning.
aCiD2
they have for a while :) They are at the bottom of the list of reviews
ijabz joined the channel
ijabz joined the channel
kurtjx
hello, perl noob question
the .tt files are using the template toolkit, correct?
nikki
yeah
kurtjx
great
kurtjx making slow progress
nikki
better than no progress :)
kurtjx
:)
thinking about just constructing rdf/xml in templates and avoiding librdf-perl
and probably just use librdf-perl for test
can anybody point to where in the code the uri routing stuff happens?
aCiD2
kurtjx: You're looking to turn /artist/<mbid> into something with content negotiation right?
kurtjx
yeah - well at this point just trying to understand the request cycle a bit
is that buried in catalyst?
aCiD2
Catalyst manages it for you, yea
Controller::Foo with a sub "bar" will generally match /foo/bar
but there's more to that with :Chained actions
kurtjx
ok
kurtjx needs to finish reading Catalyst docs
aCiD2
The easiest for now is to probably have a separate view (MusicBrainz::Server::View::RDF) and choose that in MusicBrainz::Server::Controller::Root::end if the user looks like they are requesting RDF
but that means you're limited to the data available in the HTML pages, I'm not sure if that is or isn't a problem
kurtjx
that should be ok
well if there's some pagination we'd want all pages to be in one RDF doc
grep -r Controller:: ./
ah there they are :-)
aCiD2
really?
really? I don't think you'll ever get that granted - we specifically added pagination because having no pagination just kills our db servers
kurtjx
i see
so, for example, listing all of an artist's release in one go is just too hard on the db servers
aCiD2
It might be doable now that we've restructured queries
but we just need to say how NGS holds up first
kurtjx
k
nikki
the problem is mainly things like bach and mozart, isn't it?
kurtjx
yeah, or James Brown
the really prolific
i'll see if i can find a way to make linked data compatible with pagination
kurtjx off to the mailing lists
nikki
if that's the james brown I'm looking at, it's nowhere near as much of a problem :P
244 releases for that one, 2462 for bach
kurtjx
well yes you're right - Bach is an order of magnitude worse - i'm just more of a James Brown fan ;-)
cool website! I didn't know there was such a community behind rdf
cya kurtjx
nikki
you didn't!?
aCiD2
i really didn't maybe because we killed our rdf service, and I just assumed that because rdf was dead
nikki
ah, but we killed our rdf service 'cause it sucked and nobody liked it :P (or something)
aCiD2
which I wrongfully assumed was just a downfall in rdf, not us just sucking :P
nikki
I hated rdf and thought it made absolutely no sense and wondered why anyone would use it, until simon showed me the n3 or turtle or whatever way of writing it and was like "whoa. that's so simple! it makes so much sense now!"
I suppose I'm spoilt 'cause I live with someone who's like "rdf! semantic web! yaaay!" :P
ianmcorvidae
haha
yeah, rdf/xml makes rdf a terrifying thing
nikki nods
it made sense to *me* but I may be a little bit nuts :P
(also it wasn't my first introduction -- semantic mediawiki was, which is very limited but not a bad introduction)
nikki
I think the n3/turtle/whatever way really clicked with me because it was just like some of the stuff we did in semantics
whereas the xml stuff was like all containers and boxes and really verbose
ah, so it's just a more concise serialization format
kurtjx
yeah rdf/xml sucks, rdf/n3 ftw
ianmcorvidae
more readable, at least
kurtjx
it reads almost like sentences
k now i'm off for real
nikki
yeah, exactly
aCiD2
warp: what do i need to do I need to do to your dump script to get it to export label/label relationships?
meh, I think you're gonna need to do it :( Mine is just generating FK violations
ruaok joined the channel
navap
aCiD2: Instead of showing the mirror server error page for user pages, how about showing a 404 instead?
I think the mirror server page makes sense for things like logging in and registering, but since a slave shouldn't have user data we could just return a 404 for anything in /user
aCiD2
hrm
navap
And non-user pages like /verify-email would still show the mirror server page
ijabz joined the channel
aCiD2
what status code are we using for that?
forbidden?
navap
Currently nothing.
aCiD2
It should probably not be 200
navap
Yeah I missed that
aCiD2
I'm happy using 403 for those pages and 404 for user pages, I think that makes sense
navap
So are you saying use the same mirror server page and return a 404?
Or the proper 404 page.
(I prefer the latter)
aCiD2
I think a page that says "this data might be available, but as you are using a mirror server it is not available"