Hi Jonathan
It would be interesting to see what happens if the object is purged - do all (both) of the label triples disappear?  And if you then re-ingest it, do you then have the correct number of labels?
It does look like there may have been a failure to remove an old version.
Which version of the label was the first one?  Maybe you could do a test first adding the old version and then the new one to see if there are any errors reported (I'd doubt there was an issue with these two values but it would be good to check just in case).
-----Original Message-----
From: Jonathan Green [mailto:jonathan@discoverygarden.ca]
Sent: 30 January 2012 15:03
To: Support and info exchange list for Fedora users.
Subject: [fcrepo-user] Multiple Labels in Resource Index


I was wondering if anyone has seen this before. I am having trouble where a query for fedora label is returning multiple different labels.

select $title from <#ri> where <info:fedora/test:object> <fedora-model:label> $title

<sparql xmlns="http://www.w3.org/2001/sw/DataAccess/rf1/result">
<variable name="object"/>
<variable name="title"/>
<object uri="info:fedora/test:object"/>
<object uri="info:fedora/test:object"/>
<object uri="info:fedora/test:object"/>

It only seems to happen sporadically its like the other labels aren't getting deleted when a new label is created, but it is happening often enough that it is causing some problems.

As a short term solution: Is there a way to reindex specific pids into the resource index?


Jonathan Green
DiscoveryGarden Inc. 
Sims Office Suites Building, 3rd Floor, 118 Sydney Street 
Charlottetown, PE C1A 1G4 
902.367.3851 discoverygarden.ca 
skype: jonathan.edwards.green