Skip to content

Instantly share code, notes, and snippets.

import pandas as pd
import os
import io # Import the io module to handle byte streams
from langchain_core.documents import Document # Still useful for metadata, but not for LLM inference
from neo4j import GraphDatabase
from google.colab import files # Import the files module for uploading
# --- Configuration ---
NEO4J_URI = "neo4j+s://46b4811c.databases.neo4j.io"
{
"ssoEnabled": false,
"ssoProviders": [],
"ssoDiscoveryUrl": "https://example.com",
"standalone": false,
"standaloneProtocol": "neo4j+s",
"standaloneHost": "localhost",
"standalonePort": "7687",
"standaloneDatabase": "neo4j",
"standaloneDashboardName": "My Dashboard",
// 1. Add placeholder properties onto non-song entities (needed for FastRP)
MATCH (n)
WHERE n:Artist OR n:Genre OR n:Album
SET n.instrumentalness = 0.0,
n.speechiness = 0.0,
n.tempo = 0.0,
n.danceability = 0.0,
n.acousticness = 0.0,
n.instrumentalness = 0.0,
{
"version": "2.3.1-beta.0",
"visualisation": {
"nodes": [
{
"id": "n:0",
"position": {
"x": 26.05864362623337,
"y": -39.73432629797162
}
@nielsdejong
nielsdejong / risk-registry.json
Created November 18, 2024 13:52
risk-registry.json
{
"title": "Graph Risk Register",
"version": "2.4",
"settings": {
"pagenumber": 0,
"editable": true,
"fullscreenEnabled": false,
"parameters": {
"neodash_businessunit_name": "Security",
"neodash_businessunit_name_display": "Security",
<?xml version='1.0' encoding='UTF-8'?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
<key id="date" for="node" attr.name="date"/>
<key id="notes" for="node" attr.name="notes"/>
<key id="author" for="node" attr.name="author"/>
<key id="description" for="node" attr.name="description"/>
<key id="accepted" for="node" attr.name="accepted"/>
<key id="title" for="node" attr.name="title"/>
<key id="type" for="node" attr.name="type"/>
<key id="uuid" for="node" attr.name="uuid"/>
{
"title": "New dashboard",
"version": "2.4",
"settings": {
"pagenumber": 0,
"editable": true,
"fullscreenEnabled": false,
"parameters": {}
},
"pages": [
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
<key id="minAmount" for="node" attr.name="minAmount"/>
<key id="Email" for="node" attr.name="Email"/>
<key id="AgreementOpenDate" for="node" attr.name="AgreementOpenDate"/>
<key id="RecentAmount" for="node" attr.name="RecentAmount"/>
<key id="CreateDateTime" for="node" attr.name="CreateDateTime"/>
<key id="Gender" for="node" attr.name="Gender"/>
<key id="TelephoneHome" for="node" attr.name="TelephoneHome"/>
<key id="TelephoneMob" for="node" attr.name="TelephoneMob"/>
We can't make this file beautiful and searchable because it's too large.
"Rank","NCT Number","Title","Acronym","Status","Study Results","Conditions","Interventions","Outcome Measures","Sponsor/Collaborators","Gender","Age","Phases","Enrollment","Funded Bys","Study Type","Study Designs","Other IDs","Start Date","Primary Completion Date","Completion Date","First Posted","Results First Posted","Last Update Posted","Locations","Study Documents","URL"
1,"NCT04291703","Low Dose Antithymocyte Globulin (ATG) to Delay or Prevent Progression to Stage 3 T1D","TN28","Not yet recruiting","No Results Available","Diabetes Mellitus, Type 1","Drug: Antithymocyte Globulin|Drug: Placebo (for ATG)","Progression to Stage 3 T1D","National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK)","All","12 Years to 34 Years (Child, Adult)","Phase 2","114","NIH","Interventional","Allocation: Randomized|Intervention Model: Parallel Assignment|Masking: Triple (Participant, Care Provider, Investigator)|Primary Purpose: Prevention","TrialNet TN28|UC4DK117009","December 2022","December 31, 2028","Dec