[Developers] single value properties
Christopher R. Maden
crism at metaweb.com
Wed Nov 28 02:01:12 UTC 2007
Augusto Callejas wrote:
> looking at the schema for an album:
> the "running time" or length property is marked as "restrict to one value".
>
> however, when i run this query:
> {
> "query":[{
> "length":null,
> "name":"Trigun media",
> "type":"/music/album"
> }]
> }
>
> i get ""Unique query may have at most one result. Got 2".
>
> if the single value restriction is not respected when data is inserted,
> then is there no guarantee that a query won't fail when querying as a
> single value (e.g. "length":null vs "length":[]).
>
> are there any plans on correcting data with multiple values when the single
> value property restriction is checked?
Augusto,
This kind of thing is what our ongoing gardening tasks should be addressing.
In this specific case, it looks like two albums got smashed together
somehow. Specifically, the MusicBrainz pages for two different
Trigun-related albums reference two apparently different Wikipedia
pages; however, those two pages both redirect to the “List of Trigun
media” Wikipedia page, and so we inappropriately conflated them.
Our newer reconciliation processes avoid these problems, but this damage
is already done, unfortunately. We can clean this one up; thanks for
bringing it to our attention.
~Chris
--
Christopher R. Maden
Data Architect
Metaweb Technologies, Inc.
<URL: http://www.metaweb.com/ >
More information about the Developers
mailing list