A VS Code extension for converting between CSV on the Web (CSVW) and RDF formats. This extension provides an intuitive interface for bidirectional conversion between tabular data and RDF, following W3C CSVW specifications.
π Features
Bidirectional Conversion: Convert between CSVW and RDF formats seamlessly
Visual Tree Interface: Manage multiple conversions through an organized tree view
Auto-conversion: Automatic conversion on file saves for rapid development
CSVW Specification Compliance: Full support for W3C CSVW metadata specifications
Multiple Input Support: Handle multiple CSV files within a single conversion
Template IRI Support: Toggle template IRI generation for RDF output
Minimal Mode: Streamlined output options for cleaner results
Workspace Integration: Seamless integration with VS Code workspace folders
π¦ Installation
Open VS Code
Go to Extensions (Ctrl+Shift+X)
Search for "CSVW-RDF Convertor"
Click Install
Reload VS Code if prompted
π― Getting Started
Opening the Extension
After installation, you'll see a new activity bar icon on the left side of VS Code. Click it to open the CSVW-RDF Convertor panel.
Creating Your First Conversion
Method 1: From Current File
Open a CSV or RDF file in VS Code
Click the Convert Current Window button in the editor toolbar or on the gear button at the top right
Enter a name for your conversion
The extension will automatically set up the conversion structure
Method 2: Manual Creation
Click the Add Conversion button (β) in the extension panel
Enter a name for your conversion
Default rdf and csv inputs files are created
ποΈ Understanding the Conversion Structure
Each conversion creates a folder structure in your workspace:
Open Conversion Fields: Click the folder icon next to your conversion
Edit Input Files: Modify your CSV data and descriptor metadata
Save Files: The extension automatically converts on saving the input files
View Results: RDF output appears in the outputs folder
RDF to CSVW Conversion
Open Conversion Fields: Access your conversion workspace
Edit RDF Input: Modify the rdfInput.ttl file
Configure Descriptor: Set up CSVW metadata for desired CSV structure
Save and Convert: Automatic conversion generates CSV files
Advanced Features
Multiple CSV Files
Use Add Another Input to include multiple CSV files in one conversion
Each file is processed according to the descriptor configuration
Template IRIs
Toggle Template IRIs to control IRI generation patterns
Useful for creating consistent URI schemes across datasets
Minimal Mode
Enable Minimal Mode for cleaner, more compact RDF output
Reduces verbosity while maintaining semantic accuracy
ποΈ Extension Commands
Tree View Commands
Command
Icon
Description
Add Conversion
β
Create a new conversion workspace
Open Conversion Fields
π
Open all files related to a conversion
Close Conversion Fields
βοΈ
Close all conversion-related tabs
Delete Conversion
ποΈ
Permanently remove a conversion and its files
Conversion Commands
Command
Icon
Description
Convert CSVW to RDF
β‘οΈ
Manual trigger for CSVβRDF conversion
Convert RDF to CSVW
β¬ οΈ
Manual trigger for RDFβCSV conversion
Validate Specific
β
Validate current conversion setup
Utility Commands
Command
Icon
Description
Convert Current Window
βοΈ
Create conversion from active file
Add Another Input
β
Add additional CSV input file
Toggle Template IRIs
π
Enable/disable template IRI generation
Toggle Minimal Mode
π²
Enable/disable minimal output mode
Clear Red Underlines
π§Ή
Clear validation error indicators
Due to the nature of vscode extensions, sometimes not all windows are closed correctly.
For example when you rename your csv table in the descriptor,
new file with this name is created, but sometimes the old one doesn't close.
π Working with CSVW Descriptors
The descriptor.json file is the heart of CSVW conversion.
Read about it here: https://www.w3.org/ns/csvw
π§ Configuration Options
Template IRIs
When enabled, non-ASCII characters will not be escaped: