Forums : Ohloh API Discussion

Dear Open Hub Users,

We’re excited to announce that we will be moving the Open Hub Forum to https://community.synopsys.com/s/black-duck-open-hub. Beginning immediately, users can head over, register, get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.


On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at [email protected]

Bug Reports?

It seems that this application error may be related to the fact that I'm being redirected from

http://www.ohloh.net/projects/7712/...

to

http://www.ohloh.net/projects/simal/...

which is then failing. I'm thinking the redirection should only occur if there's no api_key in the url.

Stuart Yeates almost 16 years ago
 

Hi Stuart,

The application error and the redirect are both caused by the fact that your URL is badly formed -- our web server can't parse it properly, so it doesn't know that you are trying to access the API.

The key is that you have a & where you need a ?

http://www.ohloh.net/projects/simal/contributors/165705.xml?api_key=...&v=1

The image URL bug is a real one, and a lame bug at that. I've deployed the fix.

Robin Luckey almost 16 years ago
 

[ paginated languages ] Gotcha. In a way, it's good to see that my Perl module is getting sufficiently complete as to begin to uncover oopsies in the API. :-)

Yanick almost 16 years ago
 

I've finished the first cut of my ohloh->RDF xsl stylesheet[1], it's still very basic and only maps data with direct mappings in DOAP/FOAF. This means that it throws away everything that makes ohloh special, but I thought I'd get the interoperable basics out of the way first.

I have two quick questions:

(a) I was expecting to see license in the project information. I can't see any mapping between licenses and projects in the API at all. Am I missing something?

(b) Is there a reason that ContributorFact and ContributorLanguageFact don't reference the project_id of their subject project? I know the project is in the URL, but in XSLT 1.0 this is completely inaccessible.

cheers
stuart

[1] http://lists.usefulinc.com/pipermail/doap-interest/2008-May/000320.html / http://lists.usefulinc.com/pipermail/doap-interest/attachments/20080510/96570445/ohloh.bin

Stuart Yeates almost 16 years ago
 

Hi Stuart,

(a) There is no license information in the API yet. There's no technical reason; it's just a matter of implementation time.

(b) ContributorFacts and related computed metrics do not belong directly to a project. They belong to an analysis, which belongs to a project. Yes, that's splitting hairs, but that's how our data model is set up. If required, we could possibly denormalize the XML data schema and add the project_id to the output.

Robin Luckey almost 16 years ago
 

About http://www.ohloh.net/languages.xml, now the results are indeed paginated (yay!), but the grand total of entries () is still reported as 10 (darn).

Yanick almost 16 years ago
 

Hi Yanick,

Yes, this was a simple mistake somebody (certainly not me) made when we switched to a paginated response.

I've deployed the fix.

Thanks for reporting the bug,

Robin

Robin Luckey almost 16 years ago
 

Yup, everything seems to work now. Thanks!

happily hops to go and release a new #www-ohloh-api version

Yanick almost 16 years ago