Skip to content

Commit

Permalink
Gh-352: Update gaffer-gremlin example (#353)
Browse files Browse the repository at this point in the history
* Gh-352 Update gaffer-gremlin example

* newlines
  • Loading branch information
p29876 authored May 10, 2024
1 parent 2e8749a commit b8e30b7
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 51 deletions.
81 changes: 39 additions & 42 deletions docker/gaffer-gremlin/example/conf/gaffer/schema/elements.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,49 @@
{
"entities": {
"person": {
"vertex": "person",
"properties": {
"name": "name.string",
"age": "age.integer"
"vertex": {
"vertex": "string.id"
},
"aggregate": false
},
"software": {
"vertex": "software",
"properties": {
"name": "name.string",
"lang": "name.string"
"person": {
"vertex": "string.id",
"properties": {
"name": "property.string",
"age": "property.integer"
}
},
"aggregate": false
}
"software": {
"vertex": "string.id",
"properties": {
"name": "property.string",
"lang": "property.string"
}
}
},
"edges": {
"knows": {
"source": "person",
"destination": "person",
"directed": "true",
"properties": {
"weight": "weight.double"
"knows": {
"source": "string.id",
"destination": "string.id",
"directed": "true",
"properties": {
"weight": "property.double"
}
},
"aggregate": false
},
"created": {
"source": "person",
"destination": "software",
"directed": "true",
"properties": {
"weight": "weight.double"
"created": {
"source": "string.id",
"destination": "string.id",
"directed": "true",
"properties": {
"weight": "property.double"
}
},
"aggregate": false
},
"dependsOn": {
"source": "software",
"destination": "software",
"directed": "true",
"aggregate": false
},
"encapsulates": {
"source": "software",
"destination": "software",
"directed": "true",
"aggregate": false
}
"dependsOn": {
"source": "string.id",
"destination": "string.id",
"directed": "true"
},
"encapsulates": {
"source": "string.id",
"destination": "string.id",
"directed": "true"
}
}
}
39 changes: 30 additions & 9 deletions docker/gaffer-gremlin/example/conf/gaffer/schema/types.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,43 @@
{
"types": {
"person": {
"class": "java.lang.String"
"int.id": {
"class": "java.lang.Integer"
},
"software": {
"long.id": {
"class": "java.lang.Long"
},
"string.id": {
"class": "java.lang.String"
},
"uuid.id": {
"class": "java.util.UUID"
},
"true": {
"class": "java.lang.Boolean"
},
"name.string": {
"class": "java.lang.String"
"property.string": {
"class": "java.lang.String",
"aggregateFunction": {
"class": "uk.gov.gchq.koryphe.impl.binaryoperator.First"
}
},
"age.integer": {
"class": "java.lang.Integer"
"property.integer": {
"class": "java.lang.Integer",
"aggregateFunction": {
"class": "uk.gov.gchq.koryphe.impl.binaryoperator.First"
}
},
"property.double": {
"class": "java.lang.Double",
"aggregateFunction": {
"class": "uk.gov.gchq.koryphe.impl.binaryoperator.First"
}
},
"weight.double": {
"class": "java.lang.Double"
"property.float": {
"class": "java.lang.Float",
"aggregateFunction": {
"class": "uk.gov.gchq.koryphe.impl.binaryoperator.First"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ gaffer.graphId=graph1
gaffer.storeproperties=conf/gaffer/store.properties
gaffer.schemas=conf/gaffer/schema/
gaffer.userId=user01
gaffer.elements.notreadonly=true

0 comments on commit b8e30b7

Please sign in to comment.