Coder Social home page Coder Social logo

Comments (5)

kaerumy avatar kaerumy commented on August 19, 2024

Example of usage:

https://github.com/Sinar/sinar.myreps/blob/master/docs/Malaysian%20MP%20Social%20Media%20Accounts.ipynb

https://twitter.com/sinarproject/lists/malaysian-mps

from popolo-spec.

tmtmtmtm avatar tmtmtmtm commented on August 19, 2024

I don't think there should be specific fields specifically for any of these{1} but rather that the Contact Details and Links section be tightened up considerably such that there is consistency everywhere on how such things are described, so that tools can automatically read this information without getting into things like URL parsing.

Twitter is a slightly odd case, because it straddles both sections. The plan in EveryPolitician is to harmonise them so that there's an entry in both Contact Details and Links for them (the first as the plain username, and the second as a URL), but also with the underlying twitter ID stored in the Identifiers too, as that's the one that remains constant even if someone renames their account (which happens quite often in the UK, for example, when people change from JoeBloggsMP to plain JoeBloggs or even JoeBloggs4MP during elections (when they're not meant to call themselves an MP)

{1} The original FOAF specification made this mistake, and was full of things like icqChatID, msnChatID, aimChatID, jabberID, yahooChatID etc.

from popolo-spec.

kaerumy avatar kaerumy commented on August 19, 2024

Wasn't suggesting for more fields either, just additional standardised
types in contacts like exiting ones such as fax etc

Agree on Twitter use case (site and contact account)
On 8 Sep 2015 18:44, "Tony Bowden" [email protected] wrote:

I don't think there should be specific fields specifically for any of
these{1} but rather that the Contact Details and Links section be tightened
up considerably such that there is consistency everywhere on how such
things are described, so that tools can automatically read this information
without getting into things like URL parsing.

Twitter is a slightly odd case, because it straddles both sections. The
plan in EveryPolitician is to harmonise them so that there's an entry in
both Contact Details and Links for them (the first as the plain username,
and the second as a URL), but also with the underlying twitter ID stored in
the Identifiers too, as that's the one that remains constant even if
someone renames their account (which happens quite often in the UK, for
example, when people change from JoeBloggsMP to plain JoeBloggs or even
JoeBloggs4MP during elections (when they're not meant to call themselves an
MP)

{1} The original FOAF specification made this mistake, and was full of
things like icqChatID, msnChatID, aimChatID, jabberID, yahooChatID etc.


Reply to this email directly or view it on GitHub
#112 (comment)
.

from popolo-spec.

jpmckinney avatar jpmckinney commented on August 19, 2024

@tmtmtmtm: Popolo deliberately got around the multiple properties issue by adding a single property type with multiple values, as @kaerumy describes.

Sean McDonald writes about the expected increasing number of Over the Top (OTT) messaging APIs, like Facebook and Telegram. vCard has an IMPP property with an unconstrained TYPE parameter, so it's anticipated for there to be multiple IM contact types.

So, Popolo should have some recommendations on how to model these consistently. URL parsing is not a terrible solution, but all URL parsing solutions would need to be aware of edge cases like fb.com short URLs instead of the common facebook.com URLs.

The options for consistent modeling are:

  1. add new values to the Type of medium code list, e.g. twitter
  2. recommend format of the Contact Detail value (can enforce in JSON Schema), e.g. mckinneyjames
  3. recommend format of the Link url, e.g. https://twitter.com/mckinneyjames
  4. create a new open code list for the values of the identifier property of Identifier, e.g. twitter

Updated issue description with some documentation for each proposed service.

from popolo-spec.

jpmckinney avatar jpmckinney commented on August 19, 2024

ROLL UP

Documentation:

  • Use links for social media accounts identified by URLs (Facebook, Twitter); recommend canonical prefixes, e.g. https://www.facebook.com, https://twitter.com
  • Use contact_details for social media accounts identified by usernames (Twitter, Skype); show an example containing only the username not the URL; add twitter and skype values to the 'Type of medium' codelist
  • Use identifiers for social media accounts identified by opaque strings (Twitter IDs); create a new codelist with a twitter value

Questions:

  • Hangout: isn't the ID the same as their email address?
  • Telegram: isn't the ID same as their phone number?

from popolo-spec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.