SPDX2TV: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
 (Created initial content)  | 
				CarstenEmde (talk | contribs)  m (Updated OSSelot logo to new font feature)  | 
				||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
==Obtain curation data in SPDX2TV format==  | ==Obtain curation data in SPDX2TV format==  | ||
====Single version====  | ====Single version====  | ||
To obtain curation data of a single version of a software package in SPDX2TV format, the following [[REST]]   | To obtain curation data of a single version of a software package in SPDX2TV format, the following [[REST]] calls may be used:  | ||
<pre>  | <pre>  | ||
http://www.osselot.org:3262/spdx/<package>/<version>  | http://www.osselot.org:3262/spdx/<package>/<version>  | ||
</pre>  | </pre>  | ||
such as in a wget command  | <pre>  | ||
https://www.osselot.org:3263/spdx/<package>/<version>  | |||
</pre>  | |||
such as in a <i>wget</i> command  | |||
<syntaxhighlight lang="bash">  | <syntaxhighlight lang="bash">  | ||
wget -qO - http://www.osselot.org:3262/spdx/dbus/1.15.2  | wget -qO - http://www.osselot.org:3262/spdx/dbus/1.15.2  | ||
| Line 16: | Line 19: | ||
The curated data of a single version of a curated software package may be displayed in plain text format in a browser such as  | The curated data of a single version of a curated software package may be displayed in plain text format in a browser such as  | ||
<html>  | <html>  | ||
<a href="  | <a href="https://www.osselot.org:3263/spdx/dbus/1.15.2">DBus version 1.15.2</a>  | ||
</html>  | |||
<html>  | |||
<script src="/scripts/osadl.js">  | |||
</script>  | |||
<h4>Search for a package, select it, submit it to the REST interface for SPDX2TV formatted data and display the <span style="font-family: OSSelot-Bold; font-weight: 500; color: #1565af;">OSSelot</span> curation data in a new window</h4>  | |||
<input type="text" onkeyup="searchtextkeyup(event, this, 'restspdx');" size="30" /><button onclick="searchOSSelot(this, 'restspdx');">Search the <span style="font-family: OSSelot-Bold; font-weight: 500; color: #1565af;">OSSelot</span> repository</button><br />  | |||
<span style="display: none;"></span>  | |||
<br />  | |||
</html>  | </html>  | ||
====Other formats====  | |||
In addition to the above, the curated data are also available in [[JSON]], [[RDF-XML]] and [[YAML]] format.  | |||
Latest revision as of 15:43, 1 November 2023
Obtain curation data in SPDX2TV format
Single version
To obtain curation data of a single version of a software package in SPDX2TV format, the following REST calls may be used:
http://www.osselot.org:3262/spdx/<package>/<version>
https://www.osselot.org:3263/spdx/<package>/<version>
such as in a wget command
wget -qO - http://www.osselot.org:3262/spdx/dbus/1.15.2
All available versions of a software package
This REST interface for data of a curated software package in SPDX2TV format only permits to retrieve a single version at a time. Only the JSON interface concatenates all curated versions of a software package to a data array.
Format SPDX2TV text file in browser
The curated data of a single version of a curated software package may be displayed in plain text format in a browser such as DBus version 1.15.2
Search for a package, select it, submit it to the REST interface for SPDX2TV formatted data and display the OSSelot curation data in a new window
Other formats
In addition to the above, the curated data are also available in JSON, RDF-XML and YAML format.