Skip to content

Instantly share code, notes, and snippets.

@nielsdejong
Created May 26, 2025 14:14
Show Gist options
  • Select an option

  • Save nielsdejong/de1e68392ad2d5ff8d14c2323ecae527 to your computer and use it in GitHub Desktop.

Select an option

Save nielsdejong/de1e68392ad2d5ff8d14c2323ecae527 to your computer and use it in GitHub Desktop.
{
"version": "2.3.1-beta.0",
"visualisation": {
"nodes": [
{
"id": "n:0",
"position": {
"x": 26.05864362623337,
"y": -39.73432629797162
}
},
{
"id": "n:1",
"position": {
"x": 190.6566280113046,
"y": -217.9092878020433
}
},
{
"id": "n:2",
"position": {
"x": 188.22696231898829,
"y": -111.24607806859817
}
},
{
"id": "n:3",
"position": {
"x": 27.497901983336952,
"y": -156.8823422832564
}
}
]
},
"dataModel": {
"version": "2.3.1-beta.0",
"graphSchemaRepresentation": {
"version": "1.0.0",
"graphSchema": {
"nodeLabels": [
{
"$id": "nl:0",
"token": "Album",
"properties": [
{
"$id": "p:0_0",
"token": "albumName",
"type": {
"type": "string"
},
"nullable": false
},
{
"$id": "p:0_1",
"token": "releaseDate",
"type": {
"type": "datetime"
},
"nullable": false
},
{
"$id": "p:0_2",
"token": "recordLabel",
"type": {
"type": "string"
},
"nullable": false
}
]
},
{
"$id": "nl:1",
"token": "Genre",
"properties": [
{
"$id": "p:1_0",
"token": "genre",
"type": {
"type": "string"
},
"nullable": false
}
]
},
{
"$id": "nl:2",
"token": "Artist",
"properties": [
{
"$id": "p:2_0",
"token": "name",
"type": {
"type": "string"
},
"nullable": false
}
]
},
{
"$id": "nl:3",
"token": "Song",
"properties": [
{
"$id": "p:3_0",
"token": "trackUri",
"type": {
"type": "string"
},
"nullable": false
},
{
"$id": "p:3_1",
"token": "trackName",
"type": {
"type": "string"
},
"nullable": false
},
{
"$id": "p:3_2",
"token": "durationMs",
"type": {
"type": "integer"
},
"nullable": false
},
{
"$id": "p:3_3",
"token": "popularity",
"type": {
"type": "integer"
},
"nullable": false
},
{
"$id": "p:3_4",
"token": "danceability",
"type": {
"type": "float"
},
"nullable": false
},
{
"$id": "p:3_5",
"token": "energy",
"type": {
"type": "float"
},
"nullable": false
},
{
"$id": "p:3_6",
"token": "key",
"type": {
"type": "integer"
},
"nullable": false
},
{
"$id": "p:3_7",
"token": "loudness",
"type": {
"type": "float"
},
"nullable": false
},
{
"$id": "p:3_8",
"token": "mode",
"type": {
"type": "boolean"
},
"nullable": false
},
{
"$id": "p:3_9",
"token": "speechiness",
"type": {
"type": "float"
},
"nullable": false
},
{
"$id": "p:3_10",
"token": "acousticness",
"type": {
"type": "float"
},
"nullable": false
},
{
"$id": "p:3_11",
"token": "instrumentalness",
"type": {
"type": "float"
},
"nullable": false
},
{
"$id": "p:3_12",
"token": "liveness",
"type": {
"type": "float"
},
"nullable": false
},
{
"$id": "p:3_13",
"token": "valence",
"type": {
"type": "float"
},
"nullable": false
},
{
"$id": "p:3_14",
"token": "tempo",
"type": {
"type": "float"
},
"nullable": false
},
{
"$id": "p:3_15",
"token": "timeSignature",
"type": {
"type": "integer"
},
"nullable": false
}
]
}
],
"relationshipTypes": [
{
"$id": "rt:0",
"token": "BY_ARTIST",
"properties": []
},
{
"$id": "rt:1",
"token": "IN_GENRE",
"properties": []
},
{
"$id": "rt:2",
"token": "IN_ALBUM",
"properties": []
}
],
"nodeObjectTypes": [
{
"$id": "n:0",
"labels": [
{
"$ref": "#nl:0"
}
]
},
{
"$id": "n:1",
"labels": [
{
"$ref": "#nl:1"
}
]
},
{
"$id": "n:2",
"labels": [
{
"$ref": "#nl:2"
}
]
},
{
"$id": "n:3",
"labels": [
{
"$ref": "#nl:3"
}
]
}
],
"relationshipObjectTypes": [
{
"$id": "r:0",
"type": {
"$ref": "#rt:0"
},
"from": {
"$ref": "#n:3"
},
"to": {
"$ref": "#n:2"
}
},
{
"$id": "r:1",
"type": {
"$ref": "#rt:1"
},
"from": {
"$ref": "#n:3"
},
"to": {
"$ref": "#n:1"
}
},
{
"$id": "r:2",
"type": {
"$ref": "#rt:2"
},
"from": {
"$ref": "#n:3"
},
"to": {
"$ref": "#n:0"
}
}
],
"constraints": [
{
"$id": "c:0",
"name": "albums.csv",
"constraintType": "uniqueness",
"entityType": "node",
"nodeLabel": {
"$ref": "#nl:0"
},
"relationshipType": null,
"properties": [
{
"$ref": "#p:0_0"
}
]
},
{
"$id": "c:1",
"name": "genres.csv",
"constraintType": "uniqueness",
"entityType": "node",
"nodeLabel": {
"$ref": "#nl:1"
},
"relationshipType": null,
"properties": [
{
"$ref": "#p:1_0"
}
]
},
{
"$id": "c:2",
"name": "artists.csv",
"constraintType": "uniqueness",
"entityType": "node",
"nodeLabel": {
"$ref": "#nl:2"
},
"relationshipType": null,
"properties": [
{
"$ref": "#p:2_0"
}
]
},
{
"$id": "c:3",
"name": "songs.csv",
"constraintType": "uniqueness",
"entityType": "node",
"nodeLabel": {
"$ref": "#nl:3"
},
"relationshipType": null,
"properties": [
{
"$ref": "#p:3_0"
}
]
}
],
"indexes": [
{
"$id": "i:0",
"name": "albums.csv",
"indexType": "text",
"entityType": "node",
"nodeLabel": {
"$ref": "#nl:0"
},
"relationshipType": null,
"properties": [
{
"$ref": "#p:0_0"
}
]
},
{
"$id": "i:1",
"name": "genres.csv",
"indexType": "text",
"entityType": "node",
"nodeLabel": {
"$ref": "#nl:1"
},
"relationshipType": null,
"properties": [
{
"$ref": "#p:1_0"
}
]
},
{
"$id": "i:2",
"name": "artists.csv",
"indexType": "text",
"entityType": "node",
"nodeLabel": {
"$ref": "#nl:2"
},
"relationshipType": null,
"properties": [
{
"$ref": "#p:2_0"
}
]
},
{
"$id": "i:3",
"name": "songs.csv",
"indexType": "text",
"entityType": "node",
"nodeLabel": {
"$ref": "#nl:3"
},
"relationshipType": null,
"properties": [
{
"$ref": "#p:3_0"
}
]
}
]
}
},
"graphSchemaExtensionsRepresentation": {
"nodeKeyProperties": [
{
"node": {
"$ref": "#n:0"
},
"keyProperty": {
"$ref": "#p:0_0"
}
},
{
"node": {
"$ref": "#n:1"
},
"keyProperty": {
"$ref": "#p:1_0"
}
},
{
"node": {
"$ref": "#n:2"
},
"keyProperty": {
"$ref": "#p:2_0"
}
},
{
"node": {
"$ref": "#n:3"
},
"keyProperty": {
"$ref": "#p:3_0"
}
}
]
},
"graphMappingRepresentation": {
"dataSourceSchema": {
"type": "local",
"tableSchemas": [
{
"name": "albums.csv",
"fields": [
{
"name": "Album_Name",
"sample": "",
"recommendedType": {
"type": "string"
}
},
{
"name": "Release_Date",
"sample": "",
"recommendedType": {
"type": "datetime"
}
},
{
"name": "Record_Label",
"sample": "",
"recommendedType": {
"type": "string"
}
}
],
"primaryKeys": [],
"foreignKeys": [],
"expanded": true
},
{
"name": "genres.csv",
"fields": [
{
"name": "Genre",
"sample": "",
"recommendedType": {
"type": "string"
}
}
],
"primaryKeys": [],
"foreignKeys": [],
"expanded": true
},
{
"name": "artists.csv",
"fields": [
{
"name": "Name",
"sample": "",
"recommendedType": {
"type": "string"
}
}
],
"primaryKeys": [],
"foreignKeys": [],
"expanded": true
},
{
"name": "songs.csv",
"fields": [
{
"name": "Track_URI",
"sample": "",
"recommendedType": {
"type": "string"
}
},
{
"name": "Track_Name",
"sample": "",
"recommendedType": {
"type": "string"
}
},
{
"name": "Duration_(ms)",
"sample": "",
"recommendedType": {
"type": "integer"
}
},
{
"name": "Popularity",
"sample": "",
"recommendedType": {
"type": "integer"
}
},
{
"name": "Danceability",
"sample": "",
"recommendedType": {
"type": "float"
}
},
{
"name": "Energy",
"sample": "",
"recommendedType": {
"type": "float"
}
},
{
"name": "Key",
"sample": "",
"recommendedType": {
"type": "integer"
}
},
{
"name": "Loudness",
"sample": "",
"recommendedType": {
"type": "float"
}
},
{
"name": "Mode",
"sample": "",
"recommendedType": {
"type": "boolean"
}
},
{
"name": "Speechiness",
"sample": "",
"recommendedType": {
"type": "float"
}
},
{
"name": "Acousticness",
"sample": "",
"recommendedType": {
"type": "float"
}
},
{
"name": "Instrumentalness",
"sample": "",
"recommendedType": {
"type": "float"
}
},
{
"name": "Liveness",
"sample": "",
"recommendedType": {
"type": "float"
}
},
{
"name": "Valence",
"sample": "",
"recommendedType": {
"type": "float"
}
},
{
"name": "Tempo",
"sample": "",
"recommendedType": {
"type": "float"
}
},
{
"name": "Time_Signature",
"sample": "",
"recommendedType": {
"type": "integer"
}
},
{
"name": "Artist_Name",
"sample": "",
"recommendedType": {
"type": "string"
}
},
{
"name": "Genre",
"sample": "",
"recommendedType": {
"type": "string"
}
},
{
"name": "Album_Name",
"sample": "",
"recommendedType": {
"type": "string"
}
}
],
"primaryKeys": [],
"foreignKeys": [],
"expanded": true
}
]
},
"nodeMappings": [
{
"node": {
"$ref": "#n:0"
},
"tableName": "albums.csv",
"propertyMappings": [
{
"property": {
"$ref": "#p:0_0"
},
"fieldName": "Album_Name"
},
{
"property": {
"$ref": "#p:0_1"
},
"fieldName": "Release_Date"
},
{
"property": {
"$ref": "#p:0_2"
},
"fieldName": "Record_Label"
}
]
},
{
"node": {
"$ref": "#n:1"
},
"tableName": "genres.csv",
"propertyMappings": [
{
"property": {
"$ref": "#p:1_0"
},
"fieldName": "Genre"
}
]
},
{
"node": {
"$ref": "#n:2"
},
"tableName": "artists.csv",
"propertyMappings": [
{
"property": {
"$ref": "#p:2_0"
},
"fieldName": "Name"
}
]
},
{
"node": {
"$ref": "#n:3"
},
"tableName": "songs.csv",
"propertyMappings": [
{
"property": {
"$ref": "#p:3_0"
},
"fieldName": "Track_URI"
},
{
"property": {
"$ref": "#p:3_1"
},
"fieldName": "Track_Name"
},
{
"property": {
"$ref": "#p:3_2"
},
"fieldName": "Duration_(ms)"
},
{
"property": {
"$ref": "#p:3_3"
},
"fieldName": "Popularity"
},
{
"property": {
"$ref": "#p:3_4"
},
"fieldName": "Danceability"
},
{
"property": {
"$ref": "#p:3_5"
},
"fieldName": "Energy"
},
{
"property": {
"$ref": "#p:3_6"
},
"fieldName": "Key"
},
{
"property": {
"$ref": "#p:3_7"
},
"fieldName": "Loudness"
},
{
"property": {
"$ref": "#p:3_8"
},
"fieldName": "Mode"
},
{
"property": {
"$ref": "#p:3_9"
},
"fieldName": "Speechiness"
},
{
"property": {
"$ref": "#p:3_10"
},
"fieldName": "Acousticness"
},
{
"property": {
"$ref": "#p:3_11"
},
"fieldName": "Instrumentalness"
},
{
"property": {
"$ref": "#p:3_12"
},
"fieldName": "Liveness"
},
{
"property": {
"$ref": "#p:3_13"
},
"fieldName": "Valence"
},
{
"property": {
"$ref": "#p:3_14"
},
"fieldName": "Tempo"
},
{
"property": {
"$ref": "#p:3_15"
},
"fieldName": "Time_Signature"
}
]
}
],
"relationshipMappings": [
{
"relationship": {
"$ref": "#r:0"
},
"tableName": "songs.csv",
"fromMapping": {
"fieldName": "Track_URI"
},
"toMapping": {
"fieldName": "Artist_Name"
},
"propertyMappings": []
},
{
"relationship": {
"$ref": "#r:1"
},
"tableName": "songs.csv",
"fromMapping": {
"fieldName": "Track_URI"
},
"toMapping": {
"fieldName": "Genre"
},
"propertyMappings": []
},
{
"relationship": {
"$ref": "#r:2"
},
"tableName": "songs.csv",
"fromMapping": {
"fieldName": "Track_URI"
},
"toMapping": {
"fieldName": "Album_Name"
},
"propertyMappings": []
}
]
},
"configurations": {
"idsToIgnore": []
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment