|
|
***
|
|
|
## [Home](https://git.opendfki.de/reuschling/lodex/wikis/Home) | [Examples](https://git.opendfki.de/reuschling/lodex/wikis/examples) | [Host your own Lodex](https://git.opendfki.de/reuschling/lodex/wikis/own_lodex) | [People](https://git.opendfki.de/reuschling/lodex/wikis/people)
|
|
|
***
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
Lodex is offered as a REST service, dealing with JSON Strings send over http calls. All available calls can be found at http://lodex.kl.dfki.de/lodex.
|
|
|
|
|
|
**List available ontologies:**
|
|
|
|
|
|
http://lodex.kl.dfki.de/lodex/ner/getVocabularyIds
|
|
|
|
|
|
**Extract entites out of your text**
|
|
|
|
|
|
[http://lodex.kl.dfki.de/lodex/ner/recognizeNamedEntities?vocabularyId=freebasemovies_full_de&text2Check=Lord of the Rings is a Hobbit story&maxResults=23](http://lodex.kl.dfki.de/lodex/ner/recognizeNamedEntities?vocabularyId=freebasemovies_full_de&text2Check=Lord%20of%20the%20Rings%20is%20%20a%20Hobbit%20story&maxResults=23)
|
|
|
|
|
|
**Classify the language of a text** (realized with the help of [Apache Tika](http://tika.apache.org/))
|
|
|
|
|
|
[http://lodex.kl.dfki.de/lodex/ner/detectLanguage?text2check=Lügen haben kurze Beine, aber lange Nasen](http://lodex.kl.dfki.de/lodex/ner/detectLanguage?text2check=L%C3%BCgen%20haben%20kurze%20Beine,%20aber%20lange%20Nasen)
|
|
|
|
|
|
**Disambiguate an entity label. The disambiguation will be performed with text similarity calculation between the given label description and the entity descriptions in the vocabulary**
|
|
|
|
|
|
[http://lodex.kl.dfki.de/lodex/ner/disambiguate?vocabularyId=freebasemovies_full_de&entityLabel=Amélie Poulain&text2Check=französischer Spielfilm von Jean-Pierre Jeunet&entityTypes=[]&maxResults=2](http://lodex.kl.dfki.de/lodex/ner/disambiguate?vocabularyId=freebasemovies_full_de&entityLabel=Am%C3%A9lie%20Poulain&text2Check=franz%C3%B6sischer%20Spielfilm%20von%20Jean-Pierre%20Jeunet&entityTypes=[]&maxResults=2)
|
|
|
|
|
|
**Get the base attributes of an entity by a given id. (id, label, types, synonyms)**
|
|
|
|
|
|
http://lodex.kl.dfki.de/lodex/ner/getEntity?vocabularyId=freebasemovies_full_de&entityID=http://rdf.freebase.com/ns/m.0g01s
|
|
|
|
|
|
**Get specific attributes of an entity by a given id**
|
|
|
|
|
|
[http://lodex.kl.dfki.de/lodex/ner/getEntityAttributes?vocabularyId=freebasemovies_full_de&entityID=http://rdf.freebase.com/ns/m.0g01s&entityAtts2Load=["entityDescriptionTerms","id"]](http://lodex.kl.dfki.de/lodex/ner/getEntityAttributes?vocabularyId=freebasemovies_full_de&entityID=http://rdf.freebase.com/ns/m.0g01s&entityAtts2Load=[%22entityDescriptionTerms%22,%22id%22])
|
|
|
|
|
|
**Get all attributes of an entity by a given id (just leave entityAtts2Load empty)**
|
|
|
|
|
|
http://lodex.kl.dfki.de/lodex/ner/getEntityAttributes?vocabularyId=freebasemovies_full_de&entityID=http://rdf.freebase.com/ns/m.0g01s&entityAtts2Load=[]
|
|
|
|
|
|
**Look for all entity labels in a given text (without disambiguation)**
|
|
|
|
|
|
[http://lodex.kl.dfki.de/lodex/ner/recognizeNamedEntityLabels?vocabularyId=freebasemovies_full_de&text2Check=Hobbit und Elfen gibt es in Der Herr der Ringe](http://lodex.kl.dfki.de/lodex/ner/recognizeNamedEntityLabels?vocabularyId=freebasemovies_full_de&text2Check=Hobbit%20und%20Elfen%20gibt%20es%20in%20Der%20Herr%20der%20Ringe)
|
|
|
|
|
|
**Search arbitrary inside the index [(Lucene query syntax)](https://lucene.apache.org/core/4_10_4/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#package_description)**
|
|
|
|
|
|
http://lodex.kl.dfki.de/lodex/ner/searchIndex?vocabularyId=freebasemovies_full_de&query=entityDescriptionTerms:Bilbo&entityAtts2Load=&maxNumberOfResults=42 |
|
|
\ No newline at end of file |