IBM Watson Concept Insights conceptual search using Curl to pass mutiple/an array of ids as a parameter -
so, trying pass multiple of ids ("array of concept") on query using curl on ibm concept insights. according documentation on site, should able it, cannot figure out how make work -> http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/concept-insights/api/v2/?curl#conceptual_search
if use "example request" prodiveded on link , modify @ least add query on same data command, how think work.
curl -u "{username}":"{password}" -g -d "ids=[\"/graphs/wikipedia/en-20120601/concepts/artificial_intelligence\", \"/graphs/wikipedia/en-20120601/concepts/html\"]" "https://gateway.watsonplatform.net/concept-insights/api/v2/corpora/public/ibmresearcher/conceptual_search"
when enter command, no results back. not error.
any thoughts?
please don't point out obvious... of course, replacing "{username}":"{password}" credentials. :)
instead of -d "ids=..."
should use --data-urlencode "ids=..."
this should work:
curl -u "%ci-username%":"%ci-password%" -g --data-urlencode "ids=[\"/graphs/wikipedia/en-20120601/concepts/artificial_intelligence\", \"/graphs/wikipedia/en-20120601/concepts/html\"]" "https://gateway.watsonplatform.net/concept-insights/api/v2/corpora/public/ibmresearcher/conceptual_search"
Comments
Post a Comment