Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

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

Nobody has claimed this yet.

Assessment

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

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.

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)

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

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.

More from spdx/tools-java

All issues in spdx/tools-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.