Ontology Service
Ontology service is designed to expose Words Graph used by DTML platform
Get Nodes
GET https://dtml.org/api/OntologyService/Nodes?word=word
This endpoint allows you to navigate graph of words
Query Parameters
Name
Type
Description
words
string
Word for the start node
{
"edges": [
{
"distance": "170",
"source": "1288",
"target": "170"
},
{
"distance": "205",
"source": "1288",
"target": "205"
},
{
"distance": "279",
"source": "1288",
"target": "279"
},
{
"distance": "413",
"source": "1288",
"target": "413"
},
{
"distance": "459",
"source": "1288",
"target": "459"
},
{
"distance": "511",
"source": "1288",
"target": "511"
},
{
"distance": "1176",
"source": "1288",
"target": "1176"
},
{
"distance": "2055",
"source": "1288",
"target": "2055"
},
{
"distance": "2427",
"source": "1288",
"target": "2427"
},
{
"distance": "2785",
"source": "1288",
"target": "2785"
},
{
"distance": "2972",
"source": "1288",
"target": "2972"
},
{
"distance": "3409",
"source": "1288",
"target": "3409"
},
{
"distance": "3434",
"source": "1288",
"target": "3434"
},
{
"distance": "3529",
"source": "1288",
"target": "3529"
},
{
"distance": "3532",
"source": "1288",
"target": "3532"
},
{
"distance": "3979",
"source": "1288",
"target": "3979"
},
{
"distance": "4116",
"source": "1288",
"target": "4116"
},
{
"distance": "4169",
"source": "1288",
"target": "4169"
},
{
"distance": "4500",
"source": "1288",
"target": "4500"
},
{
"distance": "5273",
"source": "1288",
"target": "5273"
},
{
"distance": "5926",
"source": "1288",
"target": "5926"
},
{
"distance": "6020",
"source": "1288",
"target": "6020"
},
{
"distance": "6295",
"source": "1288",
"target": "6295"
},
{
"distance": "6867",
"source": "1288",
"target": "6867"
},
{
"distance": "7407",
"source": "1288",
"target": "7407"
},
{
"distance": "7551",
"source": "1288",
"target": "7551"
},
{
"distance": "7607",
"source": "1288",
"target": "7607"
},
{
"distance": "8499",
"source": "1288",
"target": "8499"
},
{
"distance": "8967",
"source": "1288",
"target": "8967"
},
{
"distance": "8982",
"source": "1288",
"target": "8982"
},
{
"distance": "8990",
"source": "1288",
"target": "8990"
},
{
"distance": "9116",
"source": "1288",
"target": "9116"
},
{
"distance": "9798",
"source": "1288",
"target": "9798"
},
{
"distance": "9886",
"source": "1288",
"target": "9886"
},
{
"distance": "10068",
"source": "1288",
"target": "10068"
},
{
"distance": "10084",
"source": "1288",
"target": "10084"
}
],
"nodes": [
{
"cluster": 0,
"id": "170",
"pos": "nn",
"root": false,
"size": 3,
"word": "air"
},
{
"cluster": 10,
"id": "205",
"pos": "dt",
"root": false,
"size": 143,
"word": "all"
},
{
"cluster": 13,
"id": "279",
"pos": "cc",
"root": false,
"size": 87,
"word": "and"
},
{
"cluster": 4,
"id": "413",
"pos": "in",
"root": false,
"size": 10,
"word": "as"
},
{
"cluster": 5,
"id": "459",
"pos": "rb",
"root": false,
"size": 14,
"word": "atmospher"
},
{
"cluster": 5,
"id": "511",
"pos": "rb",
"root": false,
"size": 14,
"word": "away"
},
{
"cluster": 13,
"id": "1176",
"pos": "cc",
"root": false,
"size": 1702,
"word": "but"
},
{
"cluster": 0,
"id": "2055",
"pos": "nn",
"root": false,
"size": 245,
"word": "crowd"
},
{
"cluster": 0,
"id": "2427",
"pos": "nn",
"root": false,
"size": 0,
"word": "disast"
},
{
"cluster": 5,
"id": "2785",
"pos": "rb",
"root": false,
"size": 6,
"word": "elderli"
},
{
"cluster": 5,
"id": "2972",
"pos": "rb",
"root": false,
"size": 5,
"word": "everywher"
},
{
"cluster": 0,
"id": "3409",
"pos": "nn",
"root": false,
"size": 1,
"word": "forearm"
},
{
"cluster": 0,
"id": "3434",
"pos": "nn",
"root": false,
"size": 5,
"word": "form"
},
{
"cluster": 4,
"id": "3529",
"pos": "in",
"root": false,
"size": 21,
"word": "from"
},
{
"cluster": 0,
"id": "3532",
"pos": "nn",
"root": false,
"size": 1,
"word": "front"
},
{
"cluster": 14,
"id": "3979",
"pos": "vbz",
"root": false,
"size": 2,
"word": "ha"
},
{
"cluster": 0,
"id": "4116",
"pos": "nn",
"root": false,
"size": 0,
"word": "hear"
},
{
"cluster": 21,
"id": "4169",
"pos": "prp$",
"root": false,
"size": 130,
"word": "her"
},
{
"cluster": 4,
"id": "4500",
"pos": "in",
"root": false,
"size": 0,
"word": "in"
},
{
"cluster": 0,
"id": "5273",
"pos": "nn",
"root": false,
"size": 0,
"word": "magic"
},
{
"cluster": 3,
"id": "5926",
"pos": "jj",
"root": false,
"size": 11,
"word": "normal"
},
{
"cluster": 4,
"id": "6020",
"pos": "in",
"root": false,
"size": 5,
"word": "of"
},
{
"cluster": 0,
"id": "6295",
"pos": "nn",
"root": false,
"size": 191,
"word": "pass"
},
{
"cluster": 2,
"id": "6867",
"pos": "nns",
"root": false,
"size": 11,
"word": "pull"
},
{
"cluster": 3,
"id": "7407",
"pos": "jj",
"root": false,
"size": 2,
"word": "romant"
},
{
"cluster": 3,
"id": "7551",
"pos": "jj",
"root": false,
"size": 244,
"word": "sarcast"
},
{
"cluster": 0,
"id": "7607",
"pos": "nn",
"root": false,
"size": 1,
"word": "scene"
},
{
"cluster": 5,
"id": "8499",
"pos": "rb",
"root": false,
"size": 0,
"word": "still"
},
{
"cluster": 10,
"id": "8967",
"pos": "dt",
"root": false,
"size": 89,
"word": "the"
},
{
"cluster": 5,
"id": "8982",
"pos": "rb",
"root": false,
"size": 0,
"word": "there"
},
{
"cluster": 10,
"id": "8990",
"pos": "dt",
"root": false,
"size": 0,
"word": "thi"
},
{
"cluster": 24,
"id": "9116",
"pos": "to",
"root": false,
"size": 59,
"word": "to"
},
{
"cluster": 0,
"id": "9798",
"pos": "nn",
"root": false,
"size": 34,
"word": "voic"
},
{
"cluster": 0,
"id": "9886",
"pos": "nn",
"root": false,
"size": 55,
"word": "waterfal"
},
{
"cluster": 4,
"id": "10068",
"pos": "in",
"root": false,
"size": 13,
"word": "with"
},
{
"cluster": 0,
"id": "10084",
"pos": "nn",
"root": false,
"size": 2,
"word": "woman"
},
{
"cluster": 0,
"id": "1288",
"pos": "nn",
"root": true,
"size": 36,
"word": "car"
}
]
}Get Info
GET https://dtml.org/api/OntologyService/Info
Service returns basic information about ontology graph used by DTML platform
Get Word Info
GET https://dtml.org/api/OntologyService/Word?word=word
Retrieves information about word node in the ontology graph
Path Parameters
Name
Type
Description
word
string
an English word
Last updated