[Freebase-discuss] [dime] link.source returns an id rather than a name
Philip Kendall
philip-freebase at shadowmagic.org.uk
Thu Jul 1 13:13:05 UTC 2010
Run the following query:
[{
"id": "/en/philip_kendall",
"/type/reflect/any_master": [{
"link": {
"master_property": "/people/person/nationality",
"source": null,
}
}]
}]
In MQL 1.0, the source.link clause returns the name of the node:
{
"code": "/api/status/ok",
"result": [{
"/type/reflect/any_master": [{
"link": {
"master_property": "/people/person/nationality",
"source": "Philip Kendall"
}
}],
"id": "/en/philip_kendall"
}],
"status": "200 OK",
"transaction_id": "cache;cache01.p01.sjc1:8101;2010-07-01T13:09:15Z;0012"
}
However, in Dime, it returns the id:
{
"result": [{
"id": "/en/philip_kendall",
"/type/reflect/any_master": [{
"link": {
"master_property": "/people/person/nationality",
"source": "/en/philip_kendall"
}
}]
}],
"code": "/api/status/ok",
"errno": 200,
"status": "200 OK",
"transaction_id": "dime;dime01.dmz.sjc1.metaweb.com:8130;31656;2010-07-01T13:09:08.9060Z;0000"
}
source.target does not show this change in behaviour, and returns the
name in both implementations.
Cheers,
Phil
--
Philip Kendall <philip at shadowmagic.org.uk>
http://www.shadowmagic.org.uk/
More information about the Freebase-discuss
mailing list