spdx / spdx/tools-java

recognize extension `.ttl` (and `.rdf`)

Open
#252 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
101
Forks
46
Avg merge
9h 43m
Merged PRs (30d)
8

Description

This doesn't work:

$ spdx Convert refinery-uc-spdx-2.3.tag refinery-uc-spdx-3.0.1.ttl
Error converting: To file refinery-uc-spdx-3.0.1.ttl does not end with a valid SPDX file extension.

I have to specify the format RDFTTL:

spdx Convert refinery-uc-spdx-2.3.tag refinery-uc-spdx-3.0.1.ttl TAG RDFTTL

However, .ttl is the standard extension for Turtle files, please recognize it.

Similarly, please recognize .rdf (I haven't checked)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the CLI conversion logic that reports that the output path lacks a valid SPDX extension, then trace how output extensions map to formats. Verify that .ttl and .rdf are recognized without an explicit format argument; done when the reported conversion command succeeds without TAG RDFTTL.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.