It has an OpenSearch interface:

But I don't think there's a way to explicitly limit to, say, the
beginning of a label. has a sparql interface where you could use a regex
filter on the labels:

But it's probably not going to be fast enough for what you're talking about.

There are around 647,500 distinct labels in the dump files, it might
be easier and better to just grab the n-triples file, pull the lines
with <> and
<> and shove them in a
local data store.

On the other hand, if you don't care where your "autocomplete" string
is coming from in the label, you could try:||+altlabel%3Av&max=10&offset=0&sort=&xsl=&content-type=||+altlabel%3Avi&max=10&offset=0&sort=&xsl=&content-type=||+altlabel%3Avir&max=10&offset=0&sort=&xsl=&content-type=



On Mon, Dec 7, 2009 at 10:46 AM, Ethan Gruber <[log in to unmask]> wrote:
> Hi all,
> I have a need to integrate the LCSH terms into a web form that uses
> auto-suggest to control the vocabulary.  Is this technically possible with
> the service?  I can curl a specific id to view the rdf, but I
> would need to know the specifics of the search index on the site to feed the
> auto-suggest.  For example, when the user types "va" in the box, the results
> should filter all subject headings that begin with "va."
> I can certainly accomplish this by indexing the ~400 meg XML file into solr
> and use TermsComponent to filter terms dynamically as the user types, but
> I'd rather use the LOC's service if possible.
> So my question is: has anyone successfully done this before in the way I
> described?
> Thanks,
> Ethan Gruber
> University of Virginia Library