The Polytropon conceptual dictionary, which builds on the format proposed within the project Ekfrasis (Markantonatou & Fotopoulou, 2008), enables searches word meanings, lexical and semantic relations.
Each search request should confront to any of the following syntax rules:
http://www.xanthi.ilsp.gr/apis/polytropon/word/<greek_string>/
for one word.http://www.xanthi.ilsp.gr/apis/polytropon/word/άκοπα
{
"error": false,
"message": [
{
"wordtxt": "άκοπα",
"params": [
{
"name": "word_type",
"value": "single"
},
{
"name": "PoS",
"value": "Ad"
},
{
"name": "wordstring",
"value": "άκοπα"
},
{
"name": "degree",
"value": "Ba"
},
{
"name": "synonyms",
"value": [
"άνετα_2",
"εύκολα"
]
},
{
"name": "antonyms",
"value": [
"δύσκολα"
]
},
{
"name": "morphologicaly_related",
"value": [
"κόπος"
]
},
{
"name": "instantiates",
"value": [
"αβρόχοις_ποσί"
]
}
]
}
]
}
Fields:
http://www.xanthi.ilsp.gr/apis/polytropon/word/<greek_word>/<type>
for a document's details
Data returned from this resource have the following structure:
{
"error": false,
"message": [
{
"wordtxt": "άκοπα",
"type": "synonyms",
"words": [
[
"άνετα_2",
"εύκολα"
]
]
}
]
}
Fields:
http://www.xanthi.ilsp.gr/apis/polytropon/word/<greek_word>/<type>
for a document's details.
<type> assumes one of the following values: hyponyms, hypernyms
Data returned from this resource have the following structure:
{
"error": false,
"message": [
{
"word": "φιστικιά",
"level": 0,
"hyper": [
{
"word": "δέντρο",
"level": 1,
"hyper": "No hypernym"
}
]
}
]
}
Fields:
http://www.xanthi.ilsp.gr/apis/polytropon/word/<greek_word>/<type>/<level>
for a document's details.
<type> assumes one of the following values: hyponyms, hypernymsData returned from this resource have the following structure:
{
"error": false,
"message": [
{
"word": "φιστικιά",
"level": 0,
"hyper": [
{
"word": "δέντρο",
"level": 1,
"hyper": [
{
"word": "φυτό",
"level": 2,
"hyper": "No hypernym"
}
]
}
]
}
]
}
Fields:
http://www.xanthi.ilsp.gr/apis/polytropon/word/<greek_word>/relations/<type>
for a document's details.
Data returned from this resource have the following structure:
{
"error": false,
"message": [
{
"wordtxtword": "ορνιθοτροφείο",
"relation": "location_of",
"related_words": [
"εκτροφή"
]
}
]
}
Fields: