Skip to content

echomesh/ActiveShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ActiveShell πŸš€

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.


πŸ”₯ Features

  • 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.

πŸš€ Getting Started

1. Import the Module

Import-Module ./ActiveShell.psm1 -Force

2. Create a New Graph

Create-ActiveGraph -GraphName "MyGraph" -Type "JSON" -Metadata @{ Creator = "Callum"; Date = (Get-Date) }

3. Add Nodes

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" }

4. Create Relationships (Edges)

Create-Edge -Source "PharmacyA" -Target "PharmacyB" -Relationship "PartnersWith"

5. Query the Graph

Retrieve all nodes:

Get-All-Nodes

Retrieve pharmacies with a rating > 4.5:

Get-Node -NodeType "Pharmacy" | Where-Object { $_.Metadata['Rating'] -gt 4.5 }

πŸ›  Core Functions

Graph Management

  • Create-ActiveGraph: Initializes a new graph.
  • Export-Graph: Saves the graph to a file.
  • Import-Graph: Loads a graph from a file.

Node Management

  • 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.

Edge Management

  • 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.

🌐 Use Cases

1. Healthcare Networks

Map relationships between patients, pharmacies, and PBMs:

Create-Edge -Source "PatientA" -Target "PharmacyA" -Relationship "GetsMedsFrom"
Create-Edge -Source "PharmacyA" -Target "PBMA" -Relationship "WorksWith"

2. Supply Chains

Track dependencies between manufacturers, distributors, and retailers:

Create-Edge -Source "ManufacturerA" -Target "DistributorA" -Relationship "Supplies"
Create-Edge -Source "DistributorA" -Target "RetailerA" -Relationship "DeliversTo"

3. Social Networks

Analyze connections between individuals, organizations, and communities:

Create-Edge -Source "UserA" -Target "UserB" -Relationship "FriendsWith"
Create-Edge -Source "UserB" -Target "OrganizationA" -Relationship "MemberOf"

πŸ€” Why ActiveShell?

  • 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.

✨ Future Enhancements

  • Graph Visualization: Integration with tools like matplotlib or D3.js.
  • API Support: Connect to external systems for automated data ingestion.
  • Advanced Querying: Add fuzzy matching, regex, and semantic search.

πŸ’¬ Get Involved

Have questions, feedback, or ideas? Reach out to:

(In the middle of moving back to 🚚 ) Brisbane, Australia


πŸ“ License

ActiveShell is released under CC-BY-NC-SA 4.0. See the LICENSE file for details.


ActiveShell: Where Data Becomes Dynamic Intelligence 🌟

About

The first 4D Scripting Language

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •