|
17 | 17 | { |
18 | 18 | "cell_type": "markdown", |
19 | 19 | "metadata": {}, |
20 | | - "source": [] |
| 20 | + "source": [ |
| 21 | + "## Overview of Examples\n", |
| 22 | + "\n", |
| 23 | + "This section presents a variety of schema examples that demonstrate different aspects of DataJoint design principles. Each example showcases specific patterns, relationships, and use cases ranging from classic database tutorials to real-world scientific applications.\n", |
| 24 | + "\n", |
| 25 | + "### Classic Database Examples\n", |
| 26 | + "\n", |
| 27 | + "These examples are adapted from well-known database tutorials to show how traditional relational designs map to DataJoint's entity-workflow model.\n", |
| 28 | + "\n", |
| 29 | + "#### [Classic Sales Database](010-classic-sales.ipynb)\n", |
| 30 | + "The classic MySQL tutorial sales database featuring customers, orders, products, and employees. This example demonstrates:\n", |
| 31 | + "- Traditional business database design\n", |
| 32 | + "- Many-to-many relationships through order details\n", |
| 33 | + "- Employee management hierarchies\n", |
| 34 | + "- Product lines and order fulfillment\n", |
| 35 | + "\n", |
| 36 | + "#### [University Database](015-university.ipynb)\n", |
| 37 | + "A university course enrollment system with students, courses, instructors, and enrollments. This example illustrates:\n", |
| 38 | + "- Academic record keeping\n", |
| 39 | + "- Course registration workflows\n", |
| 40 | + "- Student-course many-to-many relationships\n", |
| 41 | + "- Grade tracking and prerequisites\n", |
| 42 | + "\n", |
| 43 | + "#### [Nations Database](030-nations.ipynb)\n", |
| 44 | + "A geographical database with countries, regions, and continents from the MariaDB tutorial. This example shows:\n", |
| 45 | + "- Hierarchical geographical relationships\n", |
| 46 | + "- Lookup tables for standardized data\n", |
| 47 | + "- Regional groupings and classifications\n", |
| 48 | + "\n", |
| 49 | + "### Conceptual Examples\n", |
| 50 | + "\n", |
| 51 | + "These examples focus on specific design patterns and conceptual challenges in database modeling.\n", |
| 52 | + "\n", |
| 53 | + "#### [Hotel Reservation System](040-hotel.ipynb)\n", |
| 54 | + "A complete hotel management system with rooms, reservations, check-ins, and check-outs. This design exercise demonstrates:\n", |
| 55 | + "- Time-series data (room availability and pricing)\n", |
| 56 | + "- Business rule enforcement (no double-booking, check-in requires reservation)\n", |
| 57 | + "- Guest management and payment processing\n", |
| 58 | + "- Temporal queries (who stayed when, room history)\n", |
| 59 | + "\n", |
| 60 | + "#### [Social Generations](044-generations.ipynb)\n", |
| 61 | + "Defines social generations as birth cohorts sharing cultural and historical experiences. This example explores:\n", |
| 62 | + "- Lookup tables for reference data\n", |
| 63 | + "- Birth year ranges and generational characteristics\n", |
| 64 | + "- Cultural archetypes and life principles\n", |
| 65 | + "- Using DataJoint to model sociological concepts\n", |
| 66 | + "\n", |
| 67 | + "#### [Languages and Proficiency](050-languages.ipynb)\n", |
| 68 | + "A many-to-many relationship design tracking people and their language skills using international standards. This comprehensive example demonstrates:\n", |
| 69 | + "- **ISO 639-1 language codes**: Standardized two-letter codes for major world languages\n", |
| 70 | + "- **CEFR proficiency levels**: Common European Framework of Reference for Languages (A1-C2)\n", |
| 71 | + "- **Association tables**: `Proficiency` as a workflow step linking people, languages, and levels\n", |
| 72 | + "- **Lookup tables**: Both `Language` and `CEFRLevel` with predefined, standardized content\n", |
| 73 | + "- **International standards**: Using established frameworks ensures consistency and compatibility\n", |
| 74 | + "- **Sample queries**: Finding multilingual individuals, proficient speakers, and language statistics\n", |
| 75 | + "\n", |
| 76 | + "### Organizational Examples\n", |
| 77 | + "\n", |
| 78 | + "These examples model organizational structures and hierarchies.\n", |
| 79 | + "\n", |
| 80 | + "#### [Management Hierarchy](060-management.ipynb)\n", |
| 81 | + "Demonstrates self-referencing tables and organizational relationships. This example shows:\n", |
| 82 | + "- Employees managing other employees (recursive relationships)\n", |
| 83 | + "- Department structure with chairs and budgets\n", |
| 84 | + "- Organizational hierarchies and reporting chains\n", |
| 85 | + "- One-to-one relationships (department chairs)\n", |
| 86 | + "- Normalized department data (codes, names, budgets, locations)\n", |
| 87 | + "\n", |
| 88 | + "### Scientific Examples\n", |
| 89 | + "\n", |
| 90 | + "Real-world scientific applications demonstrating DataJoint in research contexts.\n", |
| 91 | + "\n", |
| 92 | + "#### [Allen Common Coordinate Framework](065-allen-ccf.ipynb)\n", |
| 93 | + "The Allen Brain Atlas coordinate system for mouse brain anatomy. This example illustrates:\n", |
| 94 | + "- 3D spatial coordinates and brain structure atlases\n", |
| 95 | + "- Hierarchical anatomical relationships\n", |
| 96 | + "- Integration with neuroimaging data\n", |
| 97 | + "- Real scientific data pipeline from the DataJoint Elements project\n", |
| 98 | + "- Published standards in neuroscience research\n", |
| 99 | + "\n", |
| 100 | + "#### [Julia Sets](070-julia.ipynb)\n", |
| 101 | + "Computational visualization of Julia sets from fractal mathematics. This example demonstrates:\n", |
| 102 | + "- Computed tables for mathematical functions\n", |
| 103 | + "- Parameter spaces and computational workflows\n", |
| 104 | + "- Image generation and visualization\n", |
| 105 | + "- Using DataJoint for reproducible computational art\n", |
| 106 | + "- Automatic computation with `populate()`\n", |
| 107 | + "\n", |
| 108 | + "---\n", |
| 109 | + "\n", |
| 110 | + "Each example is self-contained with:\n", |
| 111 | + "- Complete schema definitions\n", |
| 112 | + "- Sample data population\n", |
| 113 | + "- Example queries demonstrating key concepts\n", |
| 114 | + "- Visual diagrams showing table relationships\n", |
| 115 | + "- Code that you can run and modify\n", |
| 116 | + "\n", |
| 117 | + "Browse through these examples to see different design patterns in action and learn how to apply DataJoint principles to your own domains.\n" |
| 118 | + ] |
21 | 119 | } |
22 | 120 | ], |
23 | 121 | "metadata": { |
|
0 commit comments