For high load environments, results may be cached as staic files:
/api/plugin/whitelist— /assets/cache/whitelist.json and /assets/cache/whitelist.json.gz/api/plugin/export— /assets/cache/entities.json and /assets/cache/entities.json.gz
Their use is recommended and may be enforced. Those files are recreated in an interval of 5 minutes.
Get domain whitelist for plugin
Get entity export for plugin
Get a list of Search fields and their data types.
Search entities and relations. When calling this API endpoint a json object query q has
to be submitted via POST data or GET parameter:
{
"collection": "entities", // which collection to query
"type": "person", // which type to query
"query": [{ // query elements
"field": "activity.year", // field
"operation": "number.equal", // comparison operator
"value": 2013 // comparison value
},{
"field": "url",
"operation": "string.match",
"value": "bundestag.de"
}]
};Operators for each data types are:
string.matchurl.matchbool.isnumber.equalnumber.greaternumber.lessernumber.differsnumber.betweendate.equaldate.greaterdate.lesserdate.differsdate.between
Fast entity autocompletion search by names and aliases
Get data for an entity specified by id. Include relations if relations parameter is set.
List all entities specified by starting letter, containing words and matching type
List entity types
List entity tags
Export entities as subset of entities containing entity type, name, aliases and relations in minimalized form.
{
id: [ // entity id
type, // entity type
[name, alias, ...], // name and aliases
[id, ...] // ids of related entities
]
}List relation types
List relation tags
List all relations
Find shortest connection(s) between entities. Result:
{
"routes": [
[entid, entid, entid, ...],
[entid, entid, entid, ...],
...
],
"entities": {
entid: {
"name": "<name>",
"type":"<type>"
},
...
},
"relations": {
relid: {
"type": type,
"entities": [entid, entid]
},
...
},
"map": {
entid: {
entid: relid,
...
},
...
}
}See api.md
{
_id: id, // mongodb id
importer: "str", // importer string
created: (new Date()), // date object
updated: (new Date()), // date object
type: "person", // string
tags: ["tag"], // array of strings
name: "Name", // string
slug: "name", // ascii representation of name
aliases: ["Name", "Alt. Name"], // array of strings
data: [{
id: id, // ObjectID()
key: "address",
value: {what:ever},
desc: "Description",
format: "address", // string, number, address, list, date, ...
auto: true,
created: (new Date()), // date object
updated: (new Date()) // date object
}],
search: [
"name",
"alt name"
] // searchable ascii representations of name and aliases
}{
_id: id, // mongodb id
importer: "str", // importer string
created: (new Date()), // date object
updated: (new Date()), // date object
entities: [id, id], // from, to; mongodb ids
type: "employee", // string
tags: ["tag"], // array of strings
weight: 0, // float, 0..1
data: [{
id: id, // ObjectID()
key: "address",
value: {what:ever},
desc: "Description",
format: "address", // string, number, address, list, date, ...
auto: true,
created: (new Date()), // date object
updated: (new Date()) // date object
}]
}