Repository navigation
Recognize the .ttl file extension as RDF Turtle - #343
Merged
Merged
Conversation
Convert only recognized the RDFTTL type from the rdf.ttl suffix, so a plain .ttl output file failed with "does not end with a valid SPDX file extension" unless the file types were given on the command line. Map the ttl extension to RDFTTL, as rdf already maps to RDFXML. Issue 252. Signed-off-by: Tommy Quak <tommy@u.nus.edu>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #252.
Convertonly picks RDF Turtle from therdf.ttlsuffix, sospdx Convert doc.spdx doc.ttlfails with "does not end with a valid SPDX file extension" unlessTAG RDFTTLis given. This mapsttltoRDFTTLinSpdxToolsHelper, the same wayrdfalready maps toRDFXML(so.rdffrom the issue already works).I added
testTagToTtl, which converts the tag-value example to a.ttlfile without giving the file types and compares the result with the source. It failed with the message above before the change.Tested with
mvn verifyon Java 17, and with the built jar:Convert SPDXTagExample-v2.3.spdx out.ttlwrites Turtle andVerify out.ttlreports it as valid.