Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/converter/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ pub fn determine_input_action(input_path: &Path) -> Result<InputAction> {
.to_str()
.ok_or_else(|| anyhow::anyhow!("Filename is not valid UTF-8"))?;
if filename.ends_with(".ttl") || filename.ends_with(".jsonld") {
return Ok(InputAction::Skip("Unknown extension.".to_string()));
return Ok(InputAction::Skip("Already in RDF.".to_string()));
} else if !filename.ends_with(".json") {
return Ok(InputAction::Skip(
"Unknown extension: the converter only handles JSON.".to_string(),
));
}

let action = match detect_input_type(filename) {
Expand Down