Buckets:
| # 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.