Detect communities in the knowledge graph using graph clustering algorithms
Parameters
Output
Encoding
application/jsonalgorithm
string
Required
Algorithm used
Known values:
louvain, label-propagationcommunities
array
Required
Detected communities
generatedAt
stringdatetime
Required
Timestamp when generated
total
integer
Required
Total communities found
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Detect communities in the knowledge graph using graph clustering algorithms",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"algorithm": {
"description": "Algorithm used",
"knownValues": [
"louvain",
"label-propagation"
],
"type": "string"
},
"communities": {
"description": "Detected communities",
"items": {
"ref": "#communityResult",
"type": "ref"
},
"type": "array"
},
"generatedAt": {
"description": "Timestamp when generated",
"format": "datetime",
"type": "string"
},
"total": {
"description": "Total communities found",
"type": "integer"
}
},
"required": [
"communities",
"algorithm",
"total",
"generatedAt"
],
"type": "object"
}
},
"parameters": {
"properties": {
"algorithm": {
"default": "louvain",
"description": "Community detection algorithm",
"knownValues": [
"louvain",
"label-propagation"
],
"type": "string"
},
"limit": {
"default": 20,
"description": "Maximum communities to return",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"minSize": {
"default": 2,
"description": "Minimum community size",
"minimum": 1,
"type": "integer"
}
},
"type": "params"
},
"type": "query"
}