Re: Graph analysis (499 Views)
Reply
New Member
Posts: 1
Registered: ‎12-16-2016
Message 1 of 2 (532 Views)

Graph analysis

Has anyone tried any of the graph analysis apis for their input graph. The sample example with wiki_eng works fine. I would like to test with my input.

Currently I am only planning to use with curl, later on call the apis from java.

 

curl -X POST --form "graph=@input_graph.json" --form "node_names=United Kingdom,France" --form "apikey=<mykey>" https://api.havenondemand.com/1/api/sync/getsubgraph/v1 -o output.txt

 

My input_graph.json is a nodes and edges json file. I know we need the input as enum. However I was struggling to figure out how do I supply graph as enum format of which is understood by the api.

 

The error message I receive is 

{
"error": 4006,
"reason": "Invalid job action parameter",
"detail": "parameter 'graph': [ { field: 'data', message: 'must be an enum value' } ]"
}

 

Thanks and Regards,

Prashant

Highlighted
Community Manager
Posts: 82
Registered: ‎06-18-2015
Message 2 of 2 (499 Views)

Re: Graph analysis

Hi Prashant,

 

My apologies for the delayed response.

 

Unfortunately, currently there is no API for creating a customized graph. The only graph we have in this "Preview" stage is the wiki_eng.

 

Kind regards,

Paco

† The opinions expressed above are the personal opinions of the authors, not of HPE. By using this site, you accept the Terms of Use and Rules of Participation