tahamajs's picture
download
raw
2.52 kB
#!/bin/bash
# CA10 Knowledge Graphs - Complete Execution Script
# This script runs the entire CA10 Knowledge Graphs project
set -e # Exit on any error
echo "๐Ÿš€ Starting CA10 Knowledge Graphs Project Execution"
echo "=================================================="
# Get the directory of this script
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
cd "$PROJECT_ROOT"
# Create necessary directories
echo "๐Ÿ“ Creating necessary directories..."
mkdir -p data/logs
mkdir -p data/results
mkdir -p data/visualizations
mkdir -p src/utils
mkdir -p src/reasoning
# Set up Python environment
echo "๐Ÿ Setting up Python environment..."
echo "Using system Python environment (no virtual environment created)"
# Install requirements
echo "๐Ÿ“ฆ Installing requirements..."
pip install --upgrade pip
pip install -r config/requirements.txt
# Set environment variables for visualization saving
export SAVE_VISUALIZATIONS=true
export VISUALIZATION_DIR="$PROJECT_ROOT/data/visualizations"
export RESULTS_DIR="$PROJECT_ROOT/data/results"
export LOGS_DIR="$PROJECT_ROOT/data/logs"
# Run the main execution
echo "๐ŸŽฏ Executing main CA10 Knowledge Graphs analysis..."
python src/main_execution.py
# Check if execution was successful
if [ $? -eq 0 ]; then
echo ""
echo "๐ŸŽ‰ CA10 Knowledge Graphs execution completed successfully!"
echo "=================================================="
echo "๐Ÿ“ Generated files:"
echo " โ€ข data/visualizations/ - All plots and figures"
echo " โ€ข data/results/ - Analysis results and reports"
echo " โ€ข data/logs/ - Execution logs"
echo ""
echo "๐Ÿš€ Advanced Features Available:"
echo " โ€ข LangGraph reasoning workflows"
echo " โ€ข RAG system with vector search"
echo " โ€ข Multi-agent reasoning"
echo " โ€ข Advanced API with FastAPI"
echo ""
echo "๐ŸŒ To start the API server:"
echo " python src/start_api.py --kg-type scientific"
echo ""
echo "๐Ÿ“š API Documentation:"
echo " http://localhost:8000/docs"
echo ""
echo "๐Ÿ” To view the results:"
echo " ls -la data/visualizations/"
echo " ls -la data/results/"
echo ""
echo "๐Ÿ“Š To run again:"
echo " cd scripts && ./run.sh"
else
echo ""
echo "โŒ Execution failed. Check the error messages above."
echo "๐Ÿ’ก Try running manually: python src/main_execution.py"
exit 1
fi
echo "โœจ CA10 Knowledge Graphs project execution complete!"

Xet Storage Details

Size:
2.52 kB
ยท
Xet hash:
ca554a2d0bd853e093a5d811ea8bf98ff0782503da959224ae74e2485072991c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.