Re: [Poplus] Popolo and JSON-LD

> On Apr 8, 2015, at 1:35 AM, Andreas Kuckartz <A.Kuckartz@ping.de> wrote:
> 
> I want to support the publication and use of Linked Data.
> 
> I have a few questions regarding Popolo:
> 
> 1. Which URLs point to data which is published using Popolo ?
> Do lists of such URLs exist ?
> Is the data provided as JSON-LD serialization or as pure JSON ?

All the Popolo-compliant data I’m aware of uses plain JSON. There’s no comprehensive registry - I’m not sure what the utility of such a registry would be, outside of focused projects/campaigns like EveryPolitician.

> 2. Which applications can import Popolo data ?
> Is import of JSON-LD supported or only pure JSON ?

All the tools I know import plain JSON, not JSON-LD. In general, if an application exports Popolo-compliant data, there’s a good chance it can import Popolo-compliant data. I can point to some.

> 3. In case the data is not published as JSON-LD:
> What were or are the main reasons to prefer pure JSON to JSON-LD ?

Since very few people who use legislative data use linked data tools, there hasn’t been a big incentive to use JSON-LD, which takes a little more work than plain JSON.

> 4. Is anyone aware of tools to convert pure Popolo JSON to a JSON-LD
> serialization ?

For any Popolo-compliant plain JSON document, you can (for most properties) just apply the appropriate JSON-LD context; in other words, most plain JSON documents are JSON-LD documents with an implicit @context. While there are some differences between plain JSON and JSON-LD serializations [1], many of those differences aren’t realized, since the JSON-LD contexts, for example, alias the common vote result values (which are the strings “pass” and “fail" in plain JSON) to an appropriate URI.

1. http://www.popoloproject.com/specs/#serialization

James

> (I am certainly also interested if anybody uses Turtle ;-)
> 
> Cheers,
> Andreas
> 
> --
> Poplus.org - Get involved: http://poplus.org/get-involved
>   IRC: #poplus https://webchat.freenode.net
>   Docs: http://bit.ly/poplusdrive
> ---
> You received this message because you are subscribed to the Google Groups "Poplus - Collaborative Civic Coding" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to poplus+unsubscribe@googlegroups.com.
> To post to this group, send an email to poplus@googlegroups.com.
> Visit this group at http://groups.google.com/group/poplus.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/poplus/5524BE2C.2040207%40ping.de.
> For more options, visit https://groups.google.com/d/optout.

Received on Wednesday, 8 April 2015 21:53:36 UTC