actually, I think I can use test.mb for this, sorry! :)
2010-08-04 21621, 2010
warp
np :)
2010-08-04 21650, 2010
aCiD2
warp: what dataset are you generating the ws.sql from? The latest NGS dump or a more recent mb dump?
2010-08-04 21628, 2010
warp
ngs/20100616
2010-08-04 21605, 2010
aCiD2
Hm.
2010-08-04 21619, 2010
aCiD2
I'm doing a reimport now but because I need moderation_closed mine is going to be more up to date
2010-08-04 21624, 2010
aCiD2
Guess I'll have to fix some tests
2010-08-04 21601, 2010
warp
aCiD2: oh, I noticed there are a few /ws/2 patches from me still on code review
2010-08-04 21639, 2010
warp
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.
2010-08-04 21650, 2010
warp
(or I can merge them if you give them ship its)
2010-08-04 21650, 2010
aCiD2
Ok, will do
2010-08-04 21614, 2010
aCiD2
some have shipits
2010-08-04 21653, 2010
warp
really? I thought I checked this morning.
2010-08-04 21632, 2010
aCiD2
they have for a while :) They are at the bottom of the list of reviews
2010-08-04 21626, 2010
ijabz joined the channel
2010-08-04 21643, 2010
ijabz joined the channel
2010-08-04 21648, 2010
kurtjx
hello, perl noob question
2010-08-04 21601, 2010
kurtjx
the .tt files are using the template toolkit, correct?
2010-08-04 21609, 2010
nikki
yeah
2010-08-04 21635, 2010
kurtjx
great
2010-08-04 21641, 2010
kurtjx making slow progress
2010-08-04 21657, 2010
nikki
better than no progress :)
2010-08-04 21604, 2010
kurtjx
:)
2010-08-04 21629, 2010
kurtjx
thinking about just constructing rdf/xml in templates and avoiding librdf-perl
2010-08-04 21642, 2010
kurtjx
and probably just use librdf-perl for test
2010-08-04 21604, 2010
kurtjx
can anybody point to where in the code the uri routing stuff happens?
2010-08-04 21614, 2010
aCiD2
kurtjx: You're looking to turn /artist/<mbid> into something with content negotiation right?
2010-08-04 21649, 2010
kurtjx
yeah - well at this point just trying to understand the request cycle a bit
2010-08-04 21657, 2010
kurtjx
is that buried in catalyst?
2010-08-04 21605, 2010
aCiD2
Catalyst manages it for you, yea
2010-08-04 21617, 2010
aCiD2
Controller::Foo with a sub "bar" will generally match /foo/bar
2010-08-04 21623, 2010
aCiD2
but there's more to that with :Chained actions
2010-08-04 21639, 2010
kurtjx
ok
2010-08-04 21653, 2010
kurtjx needs to finish reading Catalyst docs
2010-08-04 21624, 2010
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
2010-08-04 21651, 2010
aCiD2
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
2010-08-04 21656, 2010
kurtjx
that should be ok
2010-08-04 21631, 2010
kurtjx
well if there's some pagination we'd want all pages to be in one RDF doc
2010-08-04 21654, 2010
kurtjx
grep -r Controller:: ./
2010-08-04 21600, 2010
kurtjx
ah there they are :-)
2010-08-04 21647, 2010
aCiD2
really?
2010-08-04 21659, 2010
aCiD2
really? I don't think you'll ever get that granted - we specifically added pagination because having no pagination just kills our db servers
2010-08-04 21617, 2010
kurtjx
i see
2010-08-04 21658, 2010
kurtjx
so, for example, listing all of an artist's release in one go is just too hard on the db servers
2010-08-04 21627, 2010
aCiD2
It might be doable now that we've restructured queries
2010-08-04 21631, 2010
aCiD2
but we just need to say how NGS holds up first
2010-08-04 21617, 2010
kurtjx
k
2010-08-04 21624, 2010
nikki
the problem is mainly things like bach and mozart, isn't it?
2010-08-04 21643, 2010
kurtjx
yeah, or James Brown
2010-08-04 21652, 2010
kurtjx
the really prolific
2010-08-04 21639, 2010
kurtjx
i'll see if i can find a way to make linked data compatible with pagination
2010-08-04 21648, 2010
kurtjx off to the mailing lists
2010-08-04 21615, 2010
nikki
if that's the james brown I'm looking at, it's nowhere near as much of a problem :P
2010-08-04 21627, 2010
nikki
244 releases for that one, 2462 for bach
2010-08-04 21620, 2010
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
2010-08-04 21626, 2010
aCiD2
cya kurtjx
2010-08-04 21652, 2010
nikki
you didn't!?
2010-08-04 21617, 2010
aCiD2
i really didn't maybe because we killed our rdf service, and I just assumed that because rdf was dead
2010-08-04 21651, 2010
nikki
ah, but we killed our rdf service 'cause it sucked and nobody liked it :P (or something)
2010-08-04 21615, 2010
aCiD2
which I wrongfully assumed was just a downfall in rdf, not us just sucking :P
2010-08-04 21636, 2010
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!"
2010-08-04 21610, 2010
nikki
I suppose I'm spoilt 'cause I live with someone who's like "rdf! semantic web! yaaay!" :P
2010-08-04 21621, 2010
ianmcorvidae
haha
2010-08-04 21630, 2010
ianmcorvidae
yeah, rdf/xml makes rdf a terrifying thing
2010-08-04 21633, 2010
nikki nods
2010-08-04 21605, 2010
ianmcorvidae
it made sense to *me* but I may be a little bit nuts :P
2010-08-04 21626, 2010
ianmcorvidae
(also it wasn't my first introduction -- semantic mediawiki was, which is very limited but not a bad introduction)
2010-08-04 21621, 2010
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
2010-08-04 21657, 2010
nikki
whereas the xml stuff was like all containers and boxes and really verbose
ah, so it's just a more concise serialization format
2010-08-04 21632, 2010
kurtjx
yeah rdf/xml sucks, rdf/n3 ftw
2010-08-04 21639, 2010
ianmcorvidae
more readable, at least
2010-08-04 21642, 2010
kurtjx
it reads almost like sentences
2010-08-04 21649, 2010
kurtjx
k now i'm off for real
2010-08-04 21652, 2010
nikki
yeah, exactly
2010-08-04 21657, 2010
aCiD2
warp: what do i need to do I need to do to your dump script to get it to export label/label relationships?
2010-08-04 21650, 2010
aCiD2
meh, I think you're gonna need to do it :( Mine is just generating FK violations
2010-08-04 21619, 2010
ruaok joined the channel
2010-08-04 21607, 2010
navap
aCiD2: Instead of showing the mirror server error page for user pages, how about showing a 404 instead?
2010-08-04 21659, 2010
navap
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
2010-08-04 21636, 2010
aCiD2
hrm
2010-08-04 21616, 2010
navap
And non-user pages like /verify-email would still show the mirror server page
2010-08-04 21652, 2010
ijabz joined the channel
2010-08-04 21610, 2010
aCiD2
what status code are we using for that?
2010-08-04 21620, 2010
aCiD2
forbidden?
2010-08-04 21638, 2010
navap
Currently nothing.
2010-08-04 21653, 2010
aCiD2
It should probably not be 200
2010-08-04 21605, 2010
navap
Yeah I missed that
2010-08-04 21607, 2010
aCiD2
I'm happy using 403 for those pages and 404 for user pages, I think that makes sense
2010-08-04 21642, 2010
navap
So are you saying use the same mirror server page and return a 404?
2010-08-04 21647, 2010
navap
Or the proper 404 page.
2010-08-04 21607, 2010
navap
(I prefer the latter)
2010-08-04 21653, 2010
aCiD2
I think a page that says "this data might be available, but as you are using a mirror server it is not available"