https://bugs.linuxfoundation.org/show_bug.cgi?id=1352

            Bug ID: 1352
           Summary: Invalid RDF specified in checksum example
           Product: SPDX
           Version: 2.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Spec
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified

4.4.7    RDF: property spdx:Checksum in class spdx:File


Example: 

            <File rdf:about="">

               <checksum>

                   <Checksum>

                <algorithm
rdf:resource="chttp://spdx.org/rdf/terms#checksumAlgorithm_sha1"/>

                     <checksumValue>d6a770ba38583ed4bb4525bd96e50461655d2758

                     </checksumValue>

                  </Checksum>

      <Checksum>

                <algorithm
rdf:resource="chttp://spdx.org/rdf/terms#checksumAlgorithm_md5"/>

                <checksumValue> 624c1abb3664f4b35547e7c73864ad24

                </checksumValue>

                    </Checksum>


               </checksum>

            </File>

Having multiple Checksum elements inside the checksum property does not
translate into RDF triples. In fact, SPDX tools does not generates it. It
instead generates

  <rdf:Description rdf:about="http://somethingunique.com/somethingSpdxRef-1";>
    <spdx:checksum rdf:nodeID="A6"/>
    <spdx:checksum rdf:nodeID="A8"/>
    <spdx:checksum rdf:nodeID="A7"/>
...
   </rdf:Description>

where each of the nodes A6, A7, and A8 is a Checksum node. 

The example in the spec should be corrected.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Spdx-tech mailing list
[email protected]
https://lists.spdx.org/mailman/listinfo/spdx-tech

Reply via email to