Skip to content

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

dartfx-workspace

Development Status Documentation Ask DeepWiki Python 3.12+ Package Status CI Code style: Ruff pre-commit License: MIT Contributor Covenant

Dartfx Workspace is a high-performance management tool for data storage areas (workspaces). It focuses on organizing and publishing data commodities aligned with FAIR principles, making them easily consumable by both humans and AI agents.


  • Targeted Scanning: Sync the full workspace or target specific subdirectories with scan . for high-performance indexing.
  • Interactive Metadata: Minimalist about command with clickable links to resource-mirrored metadata storage.
  • Robust Persistence: Atomic Knowledge Base updates for mv and rm operations, ensuring stable UUIDs across directory renames.
  • Context-Free Classification: Scientific-grade file type sniffing relying on signatures (SQL, JSONL, SAS, etc.) rather than directory hints.
  • FAIR-Aligned: Seamless generation of RDF metadata (Turtle) using Dublin Core and Schema.org standards.

🛠 Installation

We recommend using uv for fast and reliable dependency management.

# Clone the repository
git clone https://github.com/DataArtifex/dartfx-workspace.git
cd dartfx-workspace

# Sync environment
uv sync

🐚 The Interactive Shell

The core of the package is an interactive shell built on prompt_toolkit. It provides a Unix-like experience for managing your data assets.

# Start the shell in the current directory
uv run dartfx-workspace .

Common Commands:

  • scan [path]: Sync the Knowledge Base. Use --clean or --refresh for a full metadata reset and fresh scan.
  • stats: Show a high-level breakdown of file types (Data, Code, Docs) and registration status.
  • ls -l --uuid: List files with stable UUIDs and registration status (✔/✘).
  • about <file>: Show detailed FAIR metadata. Includes a clickable 📂 icon that opens the mirrored storage directory.
  • mv / rm: Standard filesystem operations that automatically update the semantic graph.
  • tree -L 2: Visualize the directory hierarchy.

🧠 Knowledge Base

The Knowledge Base is mirrored at .dartfx/kb/workspace/. Each resource has a dedicated directory containing its resources.ttl file, making it accessible to external RDF tools and AI agents. https://dataartifex.org/workspace/<UUID>

We integrate multiple vocabularies for maximum interoperability:

  • DCTERMS: For standard administrative metadata (identifiers, dates).
  • Schema.org: Mapped to MediaObject to ensure compatibility with major data discovery engines.

💻 Development

Running Tests

uv run pytest

Pre-commit Hooks

The project uses strict linting and formatting via Ruff. Run hooks before committing:

uv run pre-commit run --all-files

Documentation

Build the full documentation suite (Sphinx/MyST):

hatch run docs:build

🗺 Roadmap

  • Phase 1: Core Workspace Management & Shell.
  • Phase 2: Data Product Management & DCAT Integration.
  • Phase 3: Advanced Inference Engines & Data Provenance.
  • Phase 4: Workspace API Service (dartfx-workspace-api).

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.


© 2024 Data Artifex | SPECIFICATIONS.md

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages