FRED
From STLab
Contents |
FRED
Website | http://wit.istc.cnr.it/stlab-tools/fred/ |
---|---|
Info | info@aemoo.org |
Author | User:FrancescoDraicchio, User:AldoGangemi, User:ValentinaPresutti |
FRED is a tool for automatically producing RDF/OWL ontologies and linked data from natural language sentences. The method is based on Combinatory Categorial Grammar, Discourse Representation Theory, Linguistic Frames, and Ontology Design Patterns. Results are enriched with Name Entity Resolution (NER) and Word Sense Disambiguation (WSD). A paper describing FRED has been published at EKAW 2012 (please refer to it in scientific publications).
TODO: list of references to papers on FRED.
REST APIs
URL
http://wit.istc.cnr.it/stlab-tools/fred/api
Method
-X POST
Example ~$ curl -X POST [...] URL
Sets POST method.
Accept
The Accept request-header field can be used to specify the desired media type for the response. Content types available are:
- text/html
- text/plain
- application/json
- application/rdf+xml
- text/turtle
- application/x-turtle
- text/rdf+n3
- image/png
Example ~$ curl -X POST -H "Accept: image/png" [...] URL ~$ curl -X POST -H "Accept: text/turtle" [...] URL
In the first example demands a PNG image while in the second example demands a text/turtle output via a POST call.
Mandatory parameters
- text: the textual sentence which you want to submit to FRED.
Example ~$ curl -X POST -H "Accept: image/png" \ -F "text=Miles Davis was an american jazz musician" [...] URL
Submits a text sample.
Optional parameters
- ner: enriches FRED's output with various NERs output. It is possible to specify one or more NERs. NERs Available:
- enhancer
- wikifier
- default value: None
Example ~$ curl -X POST -H "Accept: image/png" \ -F "text=Miles Davis was an american jazz musician" \ -F "ner=enhancer,wikifier" [...] URL
Uses the two available NER to enrich output for the submitted text sample.
- namespace: specifies the default namespace for domain ontology engineered from text
Example ~$ curl -X POST -H "Accept: image/png" \ -F "text=Miles Davis was an american jazz musician" \ -F "namespace=http://www.ontology.org/domain#" [...] URL
Specifies a different default namespace.
- roles: specifies which types of thematic roles will be associated to extracted relations from frame-like structure. Roles available:
- verbnet
- framenet
- default value: verbnet
Example ~$ curl -X POST -H "Accept: image/png" \ -F "text=Miles Davis was an american jazz musician" \ -F "roles=framenet" [...] URL
Sets the usage of Framenet roleset to name relations.