Search: Difference between revisions

From OSSelot
Jump to navigation Jump to search
(Rearranged this page and moved most of the content to other pages)
Tag: Reverted
(Undo revision 69 by Wiki (talk))
Tag: Undo
Line 1: Line 1:
=Search functions=
=Web resources=  
==Search for curated software packages and files==
==Find out whether a particular version of a software package is supported and has already been curated==
A more general search function is implemented as Web script that can be used to create references into the particular OSSelot repository on Github as exemplified [[Disclosure_files|here]].  
For this purpose a special Web script is provided at the <span style="font-family: OSSelot-Bold; font-weight: 500; color: #1565af;">O</span> Web interface.
==Search for licenses==
 
In addition, a special [[Licenses|Web script]] is provided that can be given the name and optionally the version of a software package from which a list of used licenses is created.
===Call the Web script from browser===
Use the URL '''''<nowiki>https://www.osselot.org/curated.php?packagename</nowiki>''''' to determine whether a particular software package already has been curated and, if so, for which version disclosure information is available. For example https://www.osselot.org/curated.php?angular may return
angular/version-15.1.0
angular/version-15.2.2
angular/version-16.0.1
angular/version-16.1.2
If a package has not been curated so far, the output of the given URL remains empty. Otherwise, the output can be concatenated to the URL of the <span style="font-family: OSSelot-Bold; font-weight: 500; color: #1565af;">O</span> Github package repository at '''''<nowiki>https://github.com/Open-Source-Compliance/package-analysis/tree/main/analysed-packages/</nowiki>''''' such as, for example,
 
https://github.com/Open-Source-Compliance/package-analysis/tree/main/analysed-packages/angular/version-15.2.2
 
===Call the Web script from command line===
====Checkout any versions====
wget -qO - https://www.osselot.org/curated.php?angular | grep -v '<'
angular/version-15.1.0
angular/version-15.2.2
angular/version-16.0.1
angular/version-16.1.2
 
====Search for a particular version====
wget -qO - https://www.osselot.org/curated.php?angular | grep 15.2.2
angular/version-15.2.2
 
==Web interface to immediately run the above Web script from this page and provide links to the found repositories==
 
<html>
<script src="/scripts/osadl.js">
</script>
<h4>Look for other software packages that may have already been curated at <span style="font-family: OSSelot-Bold; font-weight: 500; color: #1565af;">O</span> and provide links to the related repositories</h4>
 
<input type="text" onkeyup="searchtextkeyup(event, this, 'repo');" size="30" /><button onclick="searchOSSelot(this, 'repo');">Search the <span style="font-family: OSSelot-Bold; font-weight: 500; color: #1565af;">O</span> repository</button><br />
<span style="display: none;"></span>
<br />
</html>
The above Web script may be encapsulated in a shell script to [[Obtain|obtain]] a particular component of the OSSelot ressources such as the disclosure document.

Revision as of 21:16, 14 July 2023

Web resources

Find out whether a particular version of a software package is supported and has already been curated

For this purpose a special Web script is provided at the O Web interface.

Call the Web script from browser

Use the URL https://www.osselot.org/curated.php?packagename to determine whether a particular software package already has been curated and, if so, for which version disclosure information is available. For example https://www.osselot.org/curated.php?angular may return

angular/version-15.1.0
angular/version-15.2.2
angular/version-16.0.1
angular/version-16.1.2

If a package has not been curated so far, the output of the given URL remains empty. Otherwise, the output can be concatenated to the URL of the O Github package repository at https://github.com/Open-Source-Compliance/package-analysis/tree/main/analysed-packages/ such as, for example,

https://github.com/Open-Source-Compliance/package-analysis/tree/main/analysed-packages/angular/version-15.2.2

Call the Web script from command line

Checkout any versions

wget -qO - https://www.osselot.org/curated.php?angular | grep -v '<'
angular/version-15.1.0
angular/version-15.2.2
angular/version-16.0.1
angular/version-16.1.2

Search for a particular version

wget -qO - https://www.osselot.org/curated.php?angular | grep 15.2.2
angular/version-15.2.2

Web interface to immediately run the above Web script from this page and provide links to the found repositories

Look for other software packages that may have already been curated at O and provide links to the related repositories



The above Web script may be encapsulated in a shell script to obtain a particular component of the OSSelot ressources such as the disclosure document.