ActiveShell is a dynamic PowerShell module for creating, managing, and querying relational graphs. Designed for versatility, scalability, and real-world application, ActiveShell brings relational intelligence to the forefront of data management. Whether you're modeling complex networks or exploring novel data relationships, ActiveShell is your playground for innovation.
- Dynamic Graph Management:
- Add, update, and delete nodes and edges effortlessly.
- Rich Metadata Support:
- Attach custom attributes to nodes and edges for advanced querying.
- Powerful Querying:
- Leverage PowerShell's pipeline to filter and analyze relational data.
- Persistence:
- Export and import graphs seamlessly for continuity and sharing.
- Flexible Use Cases:
- From healthcare networks to supply chains, ActiveShell adapts to your needs.
Import-Module ./ActiveShell.psm1 -Force
Create-ActiveGraph -GraphName "MyGraph" -Type "JSON" -Metadata @{ Creator = "Callum"; Date = (Get-Date) }
Add-Node -NodeName "PharmacyA" -Type "Pharmacy" -Domain "Healthcare" -Metadata @{ Rating = 4.8; Address = "123 Meds St" }
Add-Node -NodeName "PharmacyB" -Type "Pharmacy" -Domain "Healthcare" -Metadata @{ Rating = 4.9; Address = "789 Meds Lane" }
Create-Edge -Source "PharmacyA" -Target "PharmacyB" -Relationship "PartnersWith"
Get-All-Nodes
Get-Node -NodeType "Pharmacy" | Where-Object { $_.Metadata['Rating'] -gt 4.5 }
Create-ActiveGraph
: Initializes a new graph.Export-Graph
: Saves the graph to a file.Import-Graph
: Loads a graph from a file.
Add-Node
: Adds a node with metadata and relationships.Get-Node
: Retrieves nodes based on filters.Set-Node
: Updates node attributes, type, domain, or metadata.Delete-Node
: Deletes a node and its associated edges.
Create-Edge
: Creates a relationship between two nodes.Get-Edge
: Retrieves edges with optional filters.Set-Edge
: Updates edge attributes or relationships.Delete-Edge
: Removes a specific edge.
Map relationships between patients, pharmacies, and PBMs:
Create-Edge -Source "PatientA" -Target "PharmacyA" -Relationship "GetsMedsFrom"
Create-Edge -Source "PharmacyA" -Target "PBMA" -Relationship "WorksWith"
Track dependencies between manufacturers, distributors, and retailers:
Create-Edge -Source "ManufacturerA" -Target "DistributorA" -Relationship "Supplies"
Create-Edge -Source "DistributorA" -Target "RetailerA" -Relationship "DeliversTo"
Analyze connections between individuals, organizations, and communities:
Create-Edge -Source "UserA" -Target "UserB" -Relationship "FriendsWith"
Create-Edge -Source "UserB" -Target "OrganizationA" -Relationship "MemberOf"
- Dynamic and Scalable:
- Built to handle complex relational data.
- Native PowerShell:
- Seamlessly integrates with your existing workflows.
- Endlessly Flexible:
- From analytics to visualization, the possibilities are limitless.
- Proven Frameworks:
- Powered by relational intelligence and groundbreaking concepts like Cube4D and Active Graph Networks.
- Graph Visualization: Integration with tools like
matplotlib
orD3.js
. - API Support: Connect to external systems for automated data ingestion.
- Advanced Querying: Add fuzzy matching, regex, and semantic search.
Have questions, feedback, or ideas? Reach out to:
(In the middle of moving back to π ) Brisbane, Australia
ActiveShell is released under CC-BY-NC-SA 4.0. See the LICENSE
file for details.