Skip to content
Snippets Groups Projects
Commit 2c65b8ec authored by Kieran van Gaalen's avatar Kieran van Gaalen
Browse files

Added json for demo

parent b863e734
No related branches found
No related tags found
1 merge request!1Big merge
......@@ -20,7 +20,7 @@ The main function that calls the appropriate functions
*/
func main() {
queryservice := aql.NewService()
jsonFile, err := os.Open("../test.json")
jsonFile, err := os.Open("../test2.json")
// if we os.Open returns an error then handle it
if err != nil {
log.Println(err)
......
......@@ -2,65 +2,83 @@
"return": {
"entities": [
0,
1
1,
2
],
"relations": [
0
],
"groupBys": []
0,
1
]
},
"entities": [
{
"name": "parliament",
"ID": 0
"ID": 0,
"name": "parliament"
},
{
"ID": 1,
"name": "commissions"
},
{
"name": "parties",
"ID": 1
"ID": 2,
"name": "parliament"
}
],
"relations": [
{
"ID": 0,
"name": "member_of",
"name": "part_of",
"depth": {
"min": 1,
"max": 1
},
"fromType": "entity",
"fromID": 0,
"fromId": 0,
"toType": "entity",
"toID": 1
},
{
"ID": 1,
"name": "part_of",
"depth": {
"min": 1,
"max": 1
},
"fromType": "entity",
"fromID": 2,
"toType": "groupBy",
"toID": 0
}
],
"groupBys": [],
"filters": [
"groupBys": [
{
"ID": 0,
"fromType": "entity",
"fromID": 0,
"toType": "entity",
"toID": 0,
"attribute": "age",
"dataType": "int",
"matchType": "NEQ",
"value": "40",
"inType": "",
"inID": 0
},
"groupType": "entity",
"groupID": 0,
"groupAttribute": "age",
"byType": "entity",
"byID": 1,
"byAttribute": "name",
"appliedModifier": "AVG",
"relationID": 0
}
],
"filters": [
{
"ID": 1,
"fromType": "relation",
"ID": 0,
"fromType": "groupBy",
"fromID": 0,
"toType": "relation",
"toID": 0,
"attribute": "isChairman",
"dataType": "bool",
"matchType": "exact",
"value": "true",
"toID": 1,
"attribute": "age",
"value": "42",
"dataType": "number",
"matchType": "LT",
"inType": "",
"inID": 0
}
],
"limit": 5000
}
"limit": 5000,
"modifiers": [],
"databaseName": "TweedeKamer"
}
\ No newline at end of file
{
"return": {
"entities": [
0,
1,
2
],
"relations": [
0,
1
]
},
"entities": [
{
"ID": 0,
"name": "parties"
},
{
"ID": 1,
"name": "parliament"
},
{
"ID": 2,
"name": "commissions"
}
],
"relations": [
{
"ID": 0,
"name": "member_of",
"depth": {
"min": 1,
"max": 1
},
"fromType": "entity",
"fromID": 1,
"toType": "entity",
"toID": 0
},
{
"ID": 1,
"name": "part_of",
"depth": {
"min": 1,
"max": 1
},
"fromType": "entity",
"fromID": 1,
"toType": "entity",
"toID": 2
}
],
"groupBys": [],
"filters": [],
"limit": 5000,
"modifiers": [],
"databaseName": "Tweede Kamer Dataset"
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment