This file contains hidden or 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
import streamlit as st | |
from st_cytoscape import cytoscape | |
from baml_client import b | |
import json | |
# Set page config | |
st.set_page_config(layout="wide") | |
def process_graph_result(result): | |
"""Convert BAML graph result to cytoscape elements format""" |
This file contains hidden or 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
from neo4j import GraphDatabase | |
import sys | |
def update_node_names(uri, user, password, target, replace_with): | |
driver = GraphDatabase.driver(uri, auth=(user, password)) | |
def update_name(tx, target, replace_with): | |
query = ( | |
"MATCH (n) " | |
"WHERE n.name = $target " |
This file contains hidden or 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
from fastapi import FastAPI, HTTPException | |
from pydantic import BaseModel | |
import assemblyai as aai | |
from neo4j import GraphDatabase | |
from dotenv import load_dotenv | |
import os | |
# Load environment variables | |
load_dotenv() |
This file contains hidden or 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
import assemblyai as aai | |
from neo4j import GraphDatabase | |
aai.settings.api_key = "<ASSEMBLYAI_API_KEY>" | |
audio_file = "https://assembly.ai/wildfires.mp3" | |
# audio_file = "./local_file.mp3" #syntax for using a local file | |
config = aai.TranscriptionConfig(entity_detection=True) | |
transcript = aai.Transcriber().transcribe(audio_file, config) |
This file contains hidden or 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
from rushdb import RushDB | |
# Initialize the RushDB client | |
client = RushDB( | |
"<your_locally_generated_api_key>", | |
base_url="http://localhost:3000", | |
) | |
# Simple - Create a single Node | |
single_record = { |
This file contains hidden or 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
@prefix : <http://www.semanticweb.org/srikargadusu/ontologies/2025/0/untitled-ontology-10/> . | |
@prefix owl: <http://www.w3.org/2002/07/owl#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix xml: <http://www.w3.org/XML/1998/namespace> . | |
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@base <http://www.semanticweb.org/srikargadusu/ontologies/2025/0/untitled-ontology-10/> . | |
<http://www.semanticweb.org/srikargadusu/ontologies/2025/0/untitled-ontology-10> rdf:type owl:Ontology . |
This file contains hidden or 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
from neo4j import GraphDatabase | |
from neo4j.graph import Relationship, Node | |
from typing import Optional, List | |
import json | |
import os | |
from dotenv import load_dotenv | |
load_dotenv() | |
def upload_cytoscape_to_neo4j( |
This file contains hidden or 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
name | language | |
---|---|---|
TensorFlow | Python | |
Django | Python | |
Flask | Python | |
Verba | Python | |
CNTK | C++ | |
Jenkins | Java | |
Spring | Java | |
Apache Tomcat | Java |
This file contains hidden or 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
name | language | |
---|---|---|
TensorFlow | Python | |
Django | Python | |
Flask | Python | |
OpenCV | Python | |
Ansible | Python | |
Verba | Python | |
CNTK | C++ | |
IncludeOS | C++ | |
Kodi | C++ |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains hidden or 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
name | |
Orchard Core | |
MVC | |
Blazor | |
WPF | |
Qt | |
Boost | |
POCO | |
STL | |
Cinder |
NewerOlder