To figure out how Ontos API works, use our HTTP binding in order to get started with the web service and your personal dictionary. Proceed as follows:
- Log-in to your personal dictionary at
http://test.ontos.com/dixin order to initialize the system for your user. - Run a request to authenticate:
http://test.ontos.com/token?j_username=YOUR_USERNAME&j_password=YOUR_PASSWORD. - Run a request to the NLP processor:
http://test.ontos.com/api/miner?jsessionid=YOUR_TOKEN&query={
"get":"process",
"ontology":"api.common.english",
"format":"NTRIPLES",
"text":"Ontos AG participated in the Semantic Conference in San Jose and is planning to join ESTC2009 in Vienna this year."
}This request will return a set of triples in JSON format. The processor recognized “Semantic Conference” as a conference, but didn’t do so for “ESTC2009″.
- Sign in to your personal dictionary at
http://test.ontos.com/dix, select the instance type “Conference” and add ESTC2009. - Re-run the request to the NLP processor. Now it will have recognized “ESTC2009″ as a conference as well.
The request will return a session token (YOUR_TOKEN).
See full documentation to learn more about what Ontos API can do.
