Skip to content

Instantly share code, notes, and snippets.

Global donut style rule
curl --request POST \
--url http://localhost:8080/api/v1/knowledgeGraphs/618509ae-b44d-4a5e-801f-4bcd81d66afd/styles \
--header 'Content-Type: application/json' \
--header 'x-api-key: 1C_W3FWUSxjZ7BIv6XCk9RpxVjKraiE6' \
--data '{
"label": "Bla7",
"captionRules": [],
"styleRules": [
@xdelox
xdelox / import-movies.cypher
Last active February 8, 2021 11:20
Import Movie Database from CSV
call apoc.periodic.iterate(
"call apoc.load.csv('movies2.csv', { mapping:{
movieId : { type: 'int' },
releaseYear: { type: 'int' },
personId: { type: 'int' },
birthYear: { type: 'int' },
deathYear: { type: 'int' }
}
}) yield map return map",
"merge (m:Movie {id: map.movieId}) set m.title = map.title, m.avgVote = map.avgVote, m.tagline = map.tagline