[Developers] Counting mediated links
Benjamin Goldenberg
bgoldenberg at gmail.com
Thu Apr 16 03:53:13 UTC 2009
I'm working on a project to analyze Freebase as a social network. To
do so, I would like to count the number of links between /people/
person topics, which I can do easily with the following query:
{
"return" : "count",
"source" : {
"id" : "/en/bob_dylan"
},
"target" : {
"type" : "/people/person"
},
"type" : "/type/link"
}
But this doesn't count links through CVTs, such as marriages. Is it
possible to construct such a query? I've been playing with queries
like the one below, but haven't been successful.
{
"return" : "count",
"source" : {
"id" : "/en/bob_dylan"
},
"target" : {
"/type/reflect/any_master" : {
"type" : "/people/person"
},
"type" : {
"/freebase/type_hints/mediator" : true
}
},
"type" : "/type/link"
}
Regards,
Ben
More information about the Developers
mailing list