RDF-XML: Difference between revisions

From OSSelot
Jump to navigation Jump to search
mNo edit summary
(Added SSL mode via port 3263)
Line 1: Line 1:
==Obtain curation data in RDF-XML format==
==Obtain curation data in RDF-XML format==
====Single version====
====Single version====
To obtain curation data of a single version of a software package in RDF-XML format, the following [[REST]] call may be used:
To obtain curation data of a single version of a software package in RDF-XML format, the following [[REST]] calls may be used:
<pre>
<pre>
http://www.osselot.org:3262/xml/<package>/<version>
http://www.osselot.org:3262/xml/<package>/<version>
</pre>
or
<pre>
https://www.osselot.org:3263/xml/<package>/<version>
</pre>
</pre>
such as in a <i>wget</i> command
such as in a <i>wget</i> command
Line 16: Line 20:
The curated data of a single version of a curated software package may be displayed in standard XML tree format in a browser such as
The curated data of a single version of a curated software package may be displayed in standard XML tree format in a browser such as
<html>
<html>
<a href="http://www.osselot.org:3262/xml/busybox/1.35.0">BusyBox version 1.35.0</a>
<a href="https://www.osselot.org:3263/xml/busybox/1.35.0">BusyBox version 1.35.0</a>
</html>
</html>

Revision as of 01:53, 27 July 2023

Obtain curation data in RDF-XML format

Single version

To obtain curation data of a single version of a software package in RDF-XML format, the following REST calls may be used:

http://www.osselot.org:3262/xml/<package>/<version>

or

https://www.osselot.org:3263/xml/<package>/<version>

such as in a wget command

wget -qO - http://www.osselot.org:3262/xml/busybox/1.35.0

All available versions of a software package

This REST interface for data of a curated software package in RDF-XML 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 YAML text file in browser

The curated data of a single version of a curated software package may be displayed in standard XML tree format in a browser such as BusyBox version 1.35.0