Here is a tv show query. How do I get the request to pull in the wiki summary?
[{
"id" : "/m/0d68qy",
"name": null
}]
The topic summary is linked to a topic via the /common/topic/article property. You can retrieve this data in one API call using the new Topic API like this:
https://www.googleapis.com/freebase/v1/topic/m/0d68qy?filter=/common/topic/article
Related
https://podcasts.apple.com/us/podcast/all-in-with-chamath-jason-sacks-friedberg/id1502871393?i=1000538031954 is a podcast episode. Its ID is: 1000538031954.
I'd like to get this episode's info and metadata through the lookup API.
I tried making this API call
https://itunes.apple.com/lookup?id=1000538031954&media=podcast&entity=podcastEpisode
but it returns no results. I'm wondering if there's a way to do that, or is my only option to scrape the url and get the info myself?
Only the show information is available in this API. You can see the media entities that are available in table 2-1 from the documentation: https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/iTuneSearchAPI/Searching.html#//apple_ref/doc/uid/TP40017632-CH5-SW1
I am trying to send a message to IoT Hub and save it to DocumentDB
using Stream Analytics, though I'm having a trouble outputting it to
the DocumentDB's "Partitioned" collection.
I was able to output the message to "Single Partition" collection, but no documents are outputted to "Partitioned" collection.
The details are as below:
[Stream Analytics output for the DocDB "Partitioned" collection]
Output Alias : outdocdbpart
PartitionKey : DeviceId
Document Id : id
[Stream Analytics query]
/*Partitioned:no document inserted*/
SELECT * INTO [outdocdbpart] FROM [inputiothub]
[Format of JSON content to insert is something like this]
{
"DeviceId": "device001",
"id": "{Guid}",
...
}
(*) I've added "id" for "Partitioned" collection only.
For "Single Partitioned", I didn't place "id" property.
[Settings for DocDB's "Partitioned" collection]
PartitionMode: Partitioned
PartitionKey : /DeviceId
Above resources are all in the same group and same region.
What could be the cause of the problem?
Am I missing something?
Azure Stream Analytics currently can not output to Azure DocumentDB partitioned collections. Our teams are currently working on implementing this, but we do not have an ETA yet.
In the meantime, can you vote for this item on the Azure Stream Analytics feedback forum?
https://feedback.azure.com/forums/270577-stream-analytics/suggestions/13431888-output-new-documentdb-single-partition-partition
I am looking for a way to construct a freebase mql query that will return a list of names of popular ('commonly searched on google') people.
Currently, if I do a simple query like:
{
"type" : "people/person",
"name" : [],
"limit" : 5
}
I get
"Jack Abramoffa"
"Bob Ney"
"David Safavian"
"Kåre Kristiansen"
"Adam Murimuth"
Is there a way to modify the query in a way that will sort the elements by their google search rank, or any other measure of popularity?
You can't do it via MQL, but the Freebase Search API returns topics in ranked fashion. The default scoring algorithm uses how well linked a topic is https://developers.google.com/freebase/v1/search-cookbook#scoring-and-ranking. Google doesn't provide search query popularity rankings through any of the Freebase APIs.
I have the following MQL query which successfully returns the record for William Shakespeare.
[{
"/type/object/name": null,
"/type/object/id": "/en/william_shakespeare"
}]
http://tinyurl.com/cnpma3f
I am trying to get the description attribute. When I add "description": null, I get a 'no description attribute found' error. Yet, looking at the record in freebase, it should be there:
http://www.freebase.com/experimental/topic/standard/en/william_shakespeare
The topic API aggregates results across a number of Freebase services; the descriptions are stored separately from the other data about a topic and you'll have to use the text service to fetch them, rather than MQL directly.
As an aside, you should probably consider changing to the new Freebase APIs; those hosted at (www|api).freebase.com are deprecated and will (allegedly) be turned off in October.
I am trying to get a list of items using a list of MIDs
Previously I asked this question Array of Freebase MIDs and sending multiple queries to freebase
So my MQL query looks like this now:
[{
"mid": null,
"name": null,
"topics:mid|=":[
"/m/045c7b",
"/m/0d6lp",
"/m/021ympy",
...
]
}]
Sample MQL Query URL
However, the default order seems to be based on something like index or timestamp. I would like the order of the results to mirror the order the MIDs are listed in the query - is this possible? If so, any hints on what the MQL would look like would be awesome :)
Not possible with MQL - you'll have to do the sorting client-side. For what it's worth, the default order is undefined, so don't rely on it for anything.