-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Gh-352 Update gaffer-gremlin example * newlines
- Loading branch information
Showing
3 changed files
with
70 additions
and
51 deletions.
There are no files selected for viewing
81 changes: 39 additions & 42 deletions
81
docker/gaffer-gremlin/example/conf/gaffer/schema/elements.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
39
docker/gaffer-gremlin/example/conf/gaffer/schema/types.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters