[AppStream] Putting review data into AppStream

Matthias Klumpp matthias at tenstral.net
Tue Jul 19 11:46:47 UTC 2016


2016-07-12 15:17 GMT+02:00 Richard Hughes <hughsient at gmail.com>:
> Hey all,
>
> I'm trying to juggle two things:
>
> * To standardize on API for the ODRS review server so other apps can
> trivially use it.

+1 for that :-)

> * To curate a set of verified reviews we can use offline for RHEL.

That's a weird usecase, but on a second thought it does make some
sense (why does this need to be offline though?).

> Both things could be done by returning results in AppStream format,
> and with a few small tweaks we could remove a ton of JSON->C parsing
> from various places.

...and use our neat XML->C parsing :P

> This would further cement AppStream into
> relevance for other app-stores. I was thinking about something like
> this as a schema:
>
> <reviews>
>   <review karma="35" date="2016-07-01" rating_percent="80">

Makes sense - we need to describe what karma is and what we expect the
frontend to do with it.

>     <summary>Looks great!</summary>
>     <description><p>Long description with markup</p></description>

Good!

>     <lang>en_GB</lang>

<lang/> is in line with the rest of the spec, but.... Tood bad we
didn't go with <locale/> :P

>     <version>0.1.2</version>
>     <display_name>Richard Hughes</display_name>

Make that "reviewer_name" maybe, and allow a "reviewer_id" to uniquely
identify individual reviewers?

>   </review>
> </reviews>

Cheers,
    Matthias


More information about the AppStream mailing list