Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

API Call - /knowledge/searchEventSuggest/{entity1}/{verb}/{entity2}/{searchfield}/{communityids}

Returns a list of entity suggestions based the sentence/query fragment passed in (eg what the user has typed so far into a query box).

Authentication

Required, see Auth - Login

Arguments

entity1 (required)
The first term (subject) of the event you are searching for, set to "null" if you want all results for the subject column, including null results

verb (required)
The 2nd term (verb) of the event you are searching for, set to "null" if you want all results for the verb column, including null results

entity2 (required)
The 3rd term (object) of the event you are searching for, set to "null" if you want all results for the object column, including null results

searchfield (required)
The field that you want to get suggestions for, can be "entity1", "verb", or "entity2"

communityids (required)
A comma deliminated list of community IDs in the URL controls which sources the query will use. Obviously the logged-in user must have access rights to those communities. A user's communities can be viewed using the "person/get" API call.

Example

http://infinite.ikanow.com/api/knowledge/searchEventSuggest/obam/null/null/entity1/4c927585d591d31d7b37097a
http://infinite.ikanow.com/api/knowledge/searchEventSuggest/obama/travel/null/entity1/4c927585d591d31d7b37097a
http://infinite.ikanow.com/api/knowledge/searchEventSuggest/obam/traveled/can/entity1/4c927585d591d31d7b37097ahttp://infinite.ikanow.com/api/knowledge/searchEventSuggest/obam/traveled/can/entity1/4c927585d591d31d7b37097a,4c927585d561d31e7b37096b

Example Response
{
    "response": {
        "action": "Suggestions Event",
        "success": true,
        "message": "obam",
        "time": 0
    },
    "data": [
        "obama/person",
        "michelle obama/person",
        "barack obama/person",
        "obama administration/organization"
    ]
}
Error Response
  • No labels