public class TagToRDF extends Object
| Constructor and Description |
|---|
TagToRDF() |
| Modifier and Type | Method and Description |
|---|---|
static void |
convertTagFileToRdf(InputStream spdxTagFile,
OutputStream out,
String outputFormat,
List<String> warnings)
Convert a Tag File to an RDF output stream
|
static SpdxDocumentContainer |
convertTagFileToRdf(InputStream spdxTagFile,
String outputFormat,
List<String> warnings)
Convert an tag/value format input stream into an SPDX Document
|
static void |
main(String[] args) |
static List<String> |
onlineFunction(String[] args) |
public static void main(String[] args)
public static List<String> onlineFunction(String[] args) throws OnlineToolException
args - args[0] is the Tag Value file to be converted, args[1] is the result RDF file nameOnlineToolException - Exception caught by JPype and displayed to the userpublic static void convertTagFileToRdf(InputStream spdxTagFile, OutputStream out, String outputFormat, List<String> warnings) throws antlr.RecognitionException, antlr.TokenStreamException, Exception
spdxTagFile - File containing a tag/value formatted SPDX fileout - Stream where the RDF/XML data is writtenoutputFormat - must be one of RDF/XML-ABBREV (default), RDF/XML, N-TRIPLET, or TURTLEExceptionantlr.TokenStreamExceptionantlr.RecognitionExceptionpublic static SpdxDocumentContainer convertTagFileToRdf(InputStream spdxTagFile, String outputFormat, List<String> warnings) throws antlr.RecognitionException, antlr.TokenStreamException, InvalidSpdxTagFileException, InvalidFileFormatException, Exception
spdxTagFile - Input stream containing a SPDX tag/value format textoutputFormat - must be one of RDF/XML-ABBREV (default), RDF/XML, N-TRIPLET, or TURTLEwarnings - List of any warnings generated during the tag/value parsingExceptionantlr.RecognitionExceptionantlr.TokenStreamExceptionInvalidSpdxTagFileExceptionInvalidFileFormatExceptionCopyright © 2018 Linux Foundation. All Rights Reserved.