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) |
public static void main(String[] args)
public 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, 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.TokenStreamExceptionCopyright © 2017 Linux Foundation. All Rights Reserved.