Skip to content
Snippets Groups Projects
test.json 3.03 KiB
{
    "return": {
        "entities": [
            0,
            1,
            2,
            3
        ],
        "relations": [
            0,
            1,
            2
        ]
    },
    "entities": [
        {
            "type": "parliament",
            "constraints": []
        },
        {
            "type": "commissions",
            "constraints": []
        },
        {
            "type": "parliament",
            "constraints": []
        },
        {
            "type": "resolutions",
            "constraints": []
        }
    ],
    "relations": [
        {
            "type": "part_of",
            "depth": {
                "min": 1,
                "max": 1
            },
            "entityFrom": 0,
            "entityTo": 1,
            "constraints": [],
            "functionPointer": {
                "from": -1,
                "to": -1
            }
   
        },
        {
            "type": "part_of",
            "depth": {
                "min": 1,
                "max": 1
            },
            "entityFrom": -1,
            "entityTo": 2,
            "constraints": [],
            "functionPointer": {
                "from": 0,
                "to": -1
            }
   
        },
        {
            "type": "submits",
            "depth": {
                "min": 1,
                "max": 1
            },
            "entityFrom": 2,
            "entityTo": 3,
            "constraints": [],
            "functionPointer": {
                "from": -1,
                "to": -1
            }
        }
    ],
    "functions": [
        {
            "type": "groupBy",
            "typeID": 0,
            "groupType": "entity",
            "groupID": 0,
            "groupAttribute": "age",
            "byType": "entity",
            "byID": 1,
            "byAttribute": "name",
            "appliedModifier": "AVG",
            "relationID": 0,
            "constraints": [
                {
                    "attribute": "age",
                    "value": "45",
                    "dataType": "number",
                    "matchType": "GT",
                    "functionPointer": {
                        "from": -1,
                        "to": -1
                    }
           
                }
            ]
        },
        {
            "type": "groupBy",
            "typeID": 1,
            "groupType": "entity",
            "groupID": 2,
            "groupAttribute": "age",
            "byType": "entity",
            "byID": 3,
            "byAttribute": "submitter",
            "appliedModifier": "AVG",
            "relationID": 2,
            "constraints": [
                {
                    "attribute": "age",
                    "value": "45",
                    "dataType": "number",
                    "matchType": "GT",
                    "functionPointer": {
                        "from": -1,
                        "to": -1
                    }
           
                }
            ]
        }
    ],
    "limit": 5000,
    "modifiers": [],
    "databaseName": "TweedeKamer"
}