directory-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [directory-discuss] Machine readable dump of Free Software Directory


From: Adonay Felipe Nogueira
Subject: Re: [directory-discuss] Machine readable dump of Free Software Directory
Date: Tue, 13 Mar 2018 14:46:42 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

> https://directory.fsf.org/wiki/All, but in XML/JSON and with additional
> version column would be sufficient. Is something like that possible?

FSD uses Semantic MediaWiki, so one can use [[Special:Ask]] ([1]) to
query some pages and display any property inside these.

For example, see [2] --- where I query pages and display/expose
some of their information to be exported as JSON objects, note that
"limit" seems to be required, and must be a whole, non-zero, number, and
it defaults to 50, so one has to use "offset" to traverse through each
"page" of JSON output.

There are other options you can adjust, see [2].

Also, I don't know if this is true or not, but for administrators of
FSD, there might be some special pages that allow bigger dumps.

Additionally, I have talked with maintainers of FSD some time ago, and
if I'm not mistaken, the version information might not be a requirement
in the future. The examples I gave *did* include the versions, but only
in the data display, not in the query.

Finally, keep in mind that I'm not an expert Semantic MediaWiki user, so
there might be something, or some faster method, that I overlooked, but
I currently lack the time and money to invest in this research.


Happy hacking! :D

[1] <https://www.semantic-mediawiki.org/wiki/Help:Special:Ask>.

[2] 
<https://directory.fsf.org/wiki?title=Special%3AAsk&q=%5B%5B%3A%2B%5D%5D%0D%0A%5B%5BName%3A%3A%2B%5D%5D&po=%3FName%0D%0A%3FVersion+identifier%0D%0A%3FShort+description%0D%0A%3FHomepage+URL%0D%0A%3FLicense%0D%0A%3FIs+GNU%0D%0A&eq=yes&p%5Bformat%5D=json&sort_num=&order_num=ASC&p%5Blimit%5D=50&p%5Boffset%5D=50&p%5Blink%5D=all&p%5Bsort%5D=&p%5Bheaders%5D=show&p%5Bmainlabel%5D=&p%5Bintro%5D=&p%5Boutro%5D=&p%5Bsearchlabel%5D=...+further+results&p%5Bdefault%5D=&eq=yes>.

[3] 
<https://directory.fsf.org/wiki?title=Special:Ask&offset=50&limit=50&q=%5B%5B%3A%2B%5D%5D%0A%5B%5BName%3A%3A%2B%5D%5D&p=format%3Dbroadtable%2Flink%3Dall%2Fheaders%3Dshow%2Fsearchlabel%3D...-20further-20results%2Fclass%3Dsortable-20wikitable-20smwtable&po=%3FName%0A%3FVersion+identifier%0A%3FShort+description%0A%3FHomepage+URL%0A%3FLicense%0A%3FIs+GNU%0A&eq=yes>.

-- 
- https://libreplanet.org/wiki/User:Adfeno
- Palestrante e consultor sobre /software/ livre (não confundir com
  gratis).
- "WhatsApp"? Ele não é livre. Por favor, veja formas de se comunicar
  instantaneamente comigo no endereço abaixo.
- Contato: https://libreplanet.org/wiki/User:Adfeno#vCard
- Arquivos comuns aceitos (apenas sem DRM): Corel Draw, Microsoft
  Office, MP3, MP4, WMA, WMV.
- Arquivos comuns aceitos e enviados: CSV, GNU Dia, GNU Emacs Org, GNU
  GIMP, Inkscape SVG, JPG, LibreOffice (padrão ODF), OGG, OPUS, PDF
  (apenas sem DRM), PNG, TXT, WEBM.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]