Code Monkey home page Code Monkey logo

Comments (5)

tmtmtmtm avatar tmtmtmtm commented on September 25, 2024 1

The closest examples I can think of are ones like Norway, where some people have a 'role' set to Q67205869, e.g. https://www.wikidata.org/wiki/Q17107262#Q17107262$0b21a445-4cad-4739-cb24-2737a48635e0 or the UK's House of Lords, with four different types of member: https://w.wiki/4WYw

I suspect the easiest approach for Sweden would be to do likewise, with a relevant P2868 qualifier on the P39 statement.

As for this repo, its goal is compare whatever is in Wikidata with whatever can be fetched from the official API. Both sides of that are customisable: the only thing that matters is producing outputs that should be the same. I'm happy to adjust either if there's a better way to do things or there are more fields that you want to check.

from sweden-riksdag-api-current.

tmtmtmtm avatar tmtmtmtm commented on September 25, 2024

Hi @salgo60

1: I don't understand the question. What is the 'this' referring to?

2: The SPARQL here seems fairly straightforward to me. (And, of course, it's tailored specifically to the use-case here of generating a diff against an external source, not just of getting a list of members.) How would you propose making it simpler?

3: I'm afraid I don't understand this question either. Can you explain it further?

from sweden-riksdag-api-current.

salgo60 avatar salgo60 commented on September 25, 2024

Hi
A try to explain the status, the SPARQL we skip.

image

The "status" is an explanation why you are one of 349 people in the parlament

Below some of the status you can have and my question is do you have this for other countries? I think we should have this title/status also in the Swedish Wikipedia article --> if the Swedish community agree about that then we need we need to have this "status" in Wikidata somehow....

  • Tjänstgörande riksdagsledamot is the normal. You are selected in the election to be part of working in the PM
  • Tjänstgörande ersättare is that you are not one of the 349 but you are a substitute if something is happening to on ordinary PM (like when one ordinary is on "sick", "paternity leave", "an ordinary is selected as a minister" ..... Tjänstgörande --> that you are now ordinary because an ordinary has left
  • Tjänstgörande statsrådsersättare you are a substitute but now ordinary because one person has left to be a minister
  • Förste vice talman (tjänstgörande riksdagsledamot) you are a substitute but now ordinary because one person is selected to be the first speaker
  • Andre vice talman (tjänstgörande riksdagsledamot) same as above but for the second speaker
  • Tredje vice talman (tjänstgörande riksdagsledamot) same as above but for the third speaker
    *...
  1. In the Swedish Parlament we have 349 people who can be part of voting
  2. The open data has one URL for all (getting 2030 people) and one URL for getting the 349 people that are selected to be part of the parlament and can vote
  3. The field I speak about is personlista/person/status some examples
    1. the most used is that you are ordinary --> "Tjänstgörande riksdagsledamot"
      1. example Q19977330 API / HTML

image

  1. Q4887285 has in the API status = Tjänstgörande statsrådsersättare which is substitute for a minister. If you look in the Html view from the parlament it is displayed.

image

from sweden-riksdag-api-current.

salgo60 avatar salgo60 commented on September 25, 2024

Excellent thanks sound like a way forward I will check with the sv;Wikipedia community what they think

Do you have any good example of Wikipedia templates that extracts those values and present them in an article...

from sweden-riksdag-api-current.

salgo60 avatar salgo60 commented on September 25, 2024

no action right now --> close this

from sweden-riksdag-api-current.

Related Issues (3)

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.