LISTSERV mailing list manager LISTSERV 16.0

Help for ID Archives


ID Archives

ID Archives


ID@LISTSERV.LOC.GOV


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

ID Home

ID Home

ID  November 2012

ID November 2012

Subject:

paging urls in atom feed broken

From:

Ed Summers <[log in to unmask]>

Reply-To:

LC Linked Data Service Discussion List <[log in to unmask]>

Date:

Fri, 2 Nov 2012 09:53:54 -0400

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (85 lines)

I just happened to notice that the self, next and last links in the
Atom feed [1] are pointing at the wrong place:

<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Library of Congress Subject Headings</title>
  <link href="http://id.loc.gov/subjects/feed/1" rel="self"/>
  <link href="http://id.loc.gov/subjects/feed/2" rel="next"/>
  <link href="http://id.loc.gov/subjects/feed/4117" rel="last"/>
  <id>info:lc/authorities/subjects/feed</id>
  ...
</feed>

should instead look like:

<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Library of Congress Subject Headings</title>
  <link href="http://id.loc.gov/authorities/subjects/feed/1" rel="self"/>
  <link href="http://id.loc.gov/authorities/subjects/feed/2" rel="next"/>
  <link href="http://id.loc.gov/authorities/subjects/feed/4117" rel="last"/>
  <id>info:lc/authorities/subjects/feed</id>
  ...
</feed>

The same seems to be the case for the LCNAF feed [2] as well. Since
I'm on the subject, I've noticed that digging back in time seems to
take longer the further you go.

ed@taylor:~$ time curl --silent
http://id.loc.gov/authorities/subjects/feed/501/ > /dev/null
real	0m3.193s
user	0m0.004s
sys	0m0.008s

ed@taylor:~$ time curl --silent
http://id.loc.gov/authorities/subjects/feed/1001/ > /dev/null
real	0m12.031s
user	0m0.008s
sys	0m0.004s

ed@taylor:~$ time curl --silent
http://id.loc.gov/authorities/subjects/feed/1501/ > /dev/null
real	0m15.623s
user	0m0.004s
sys	0m0.008s

ed@taylor:~$ time curl --silent
http://id.loc.gov/authorities/subjects/feed/2001/ > /dev/null
real	0m22.023s
user	0m0.012s
sys	0m0.004s

ed@taylor:~$ time curl --silent
http://id.loc.gov/authorities/subjects/feed/2501/ > /dev/null
real	0m24.492s
user	0m0.004s
sys	0m0.008s

ed@taylor:~$ time curl --silent
http://id.loc.gov/authorities/subjects/feed/3001/ > /dev/null
real	0m27.716s
user	0m0.008s
sys	0m0.008s

ed@taylor:~$ time curl --silent
http://id.loc.gov/authorities/subjects/feed/3501/ > /dev/null
real	0m46.800s
user	0m0.008s
sys	0m0.008s

ed@taylor:~$ time curl --silent
http://id.loc.gov/authorities/subjects/feed/4001/ |less
real	0m1.225s
user	0m0.008s
sys	0m0.012s

I'm not sure if some optimizations can be made there. I guess the
silver lining is that Varnish appears to be caching the result, so
it's just the first person to request the URL that has to pay the
price.

//Ed

[1] http://id.loc.gov/authorities/subjects/feed/1
[2] http://id.loc.gov/authorities/names/feed/1

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

August 2020
July 2020
June 2020
March 2020
February 2020
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
April 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2017
July 2016
February 2016
January 2016
December 2015
November 2015
September 2015
August 2015
June 2015
March 2015
February 2015
October 2014
August 2014
July 2014
June 2014
March 2014
January 2014
November 2013
September 2013
August 2013
June 2013
May 2013
April 2013
March 2013
December 2012
November 2012
October 2012
September 2012
August 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
April 2011
March 2011
February 2011
January 2011
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
November 2009
June 2009
May 2009

ATOM RSS1 RSS2



LISTSERV.LOC.GOV

CataList Email List Search Powered by the LISTSERV Email List Manager