Here is a link to the RDF class for Snippet created during SPDX 2.0:
http://spdx.org/rdf/ontology/spdx-2-0-rev-12/classes/Snippet___2057595658.ht
ml

 

I thought that this would be a good starting point.

 

In terms of translating this to tag/value, here's a rough proposal:

 

- Add a new section for snippets

- Include the tags consistent with Snippet being a subclass of SpdxItem
(annotation, relationship, name, comment, licenseConcluded,
licenseInfoFromFiles, copyrightText, licenseComments).

- Add a tag fromFile which would have a value of a SPDX Element ID (this
could also be a reference external to the SPDX document).

- Add a tag byteRange which would indicate the byte range in the file for
the snippet

 

Proposed definition of fromFile: File containing the SPDX element (e.g. the
file contaning a snippet).

 

Proposed definition of byteRange: String of the form \d+:\d+ denoting a
range of bytes.

 

For your reference, here is a link the snippets use case:
http://wiki.spdx.org/view/Technical_Team/Use_Cases/2.0/Consuming_code_snippe
ts

 

Gary

-------------------------------------------------

Gary O'Neall

Principal Consultant

Source Auditor Inc.

Mobile: 408.805.0586

Email:  <mailto:[email protected]> [email protected]

 

_______________________________________________
Spdx-tech mailing list
[email protected]
https://lists.spdx.org/mailman/listinfo/spdx-tech

Reply via email to