Use our API

FALCON 2.0 API can be run in two modes (DBpedia results can be included also by adding db=1 to the request) :

1. Relations and Entities linking in a sentence


curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"text":"Who is the wife of barack obama ?"}' \
  'https://labs.tib.eu/falcon/falcon2/api?mode=long'


curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"text":"Who is the wife of barack obama ?"}' \
  'https://labs.tib.eu/falcon/falcon2/api?mode=long&db=1'

Top K results can be retreived by adding "k=#" to the request link. For example:


curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"text":"Who painted The Storm on the Sea of Galilee?"}' \
  'https://labs.tib.eu/falcon/falcon2/api?mode=long&k=3'