CoolFace
Apppublic

KGBicheno/CroissantJSON-LD_to_CroissantTOML

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿฅ Croissant JSON-LD โ†” TOML Converter

A bi-directional converter for transforming Croissant metadata between JSON-LD and human-readable TOML formats.

Features

  • โ€”โœ… Bi-directional conversion: JSON-LD โ†” TOML
  • โ€”โœ… File upload support: Process up to 5 files at once
  • โ€”โœ… Copy-paste interface: Instant conversion for text content
  • โ€”โœ… Auto-format detection: Automatically detects input format
  • โ€”โœ… Batch processing: ZIP download for multiple files
  • โ€”โœ… Error handling: Robust validation and error reporting
  • โ€”โœ… Examples included: Sample content for both formats

Usage

File Upload

  1. 1.Select up to 5 Croissant files (.json, .jsonld, .toml)
  2. 2.Click "Convert Files" to process all uploads
  3. 3.Download individual files or ZIP package
  4. 4.Original filenames are preserved with new extensions

Copy-Paste

  1. 1.Paste your Croissant content in the input area
  2. 2.Choose conversion direction or use auto-detect
  3. 3.Copy the converted content from the output

Supported Formats

  • โ€”JSON-LD: Croissant metadata with @context and schema.org vocabulary
  • โ€”TOML: Human-readable format with comments and logical structure

About Croissant

Croissant is a metadata format for ML datasets developed by MLCommons. It provides a standardized way to describe dataset structure, fields, and distributions.

"Croissant" is a trademark of MLCommons. This converter tool is not affiliated with or endorsed by MLCommons.

Technical Details

  • โ€”Uses proper TOML Array of Tables syntax ([[record_sets]])
  • โ€”Preserves complex nested objects during conversion
  • โ€”Handles schema.org and Croissant namespaces correctly
  • โ€”Maintains data integrity through round-trip conversions

Links

Built with โค๏ธ using Gradio