Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OParl: originatorPerson and originatorOrganization missing for Paper #160

Open
darkdragon-001 opened this issue Sep 20, 2022 · 9 comments · May be fixed by #161
Open

OParl: originatorPerson and originatorOrganization missing for Paper #160

darkdragon-001 opened this issue Sep 20, 2022 · 9 comments · May be fixed by #161

Comments

@darkdragon-001
Copy link
Contributor

See OParl specification for Paper.

@darkdragon-001 darkdragon-001 changed the title OParl: originatorPerson missing for Paper OParl: originatorPerson and originatorOrganization missing for Paper Sep 20, 2022
@CatoTH
Copy link
Contributor

CatoTH commented Sep 21, 2022

Ok I added them where I easily could.

So where it works:
https://www.muenchen-transparent.de/oparl/v1.0/paper/7212230

Where it does not:
https://www.muenchen-transparent.de/oparl/v1.0/paper/7332508
Reason being that original RIS mixes persons and organizations here (https://risi.muenchen.de/risi/antrag/detail/7332508 vs. https://risi.muenchen.de/risi/antrag/detail/7212230 , which is why organizations have a rather ambiguous live in München Transparent, too. I never got to normalize that properly).

PS: I'm still curious to know what the API is actually used for :)

@darkdragon-001
Copy link
Contributor Author

darkdragon-001 commented Sep 22, 2022

Thanks a lot 😍

You are missing the organization sub-type (usually fraktion/).
For your linked paper https://www.muenchen-transparent.de/oparl/v1.0/paper/7212230, the originatorOrganization is shown as https://www.muenchen-transparent.de/oparl/v1.0/organization/7072308 but should be https://www.muenchen-transparent.de/oparl/v1.0/organization/fraktion/7072308.

Maybe in the parser we could for both "Initiative" and "Gestellt von" first search for the string in organizations' names and if they are not found, fallback to persons? For storage, we would probably need an additional relation between paper and organizations instead of the current only paper and people. In addition we should also keep the organization guessing as currently.

PS: I would like to create a motion (Antrag) search engine for the party Volt where we can search all motions created by its members in all over Germany. This is also a good reason to push implementation of OParl in cities which don't support OParl yet 😉 So far it is just an idea but if I/we find enough time to finish some working version, we will publish it as OpenSource. But so far it is just an idea. So keep your expectations low.

@CatoTH
Copy link
Contributor

CatoTH commented Sep 22, 2022

Okay, I fixed the link (hopefully), by adding fraktion.

@darkdragon-001
Copy link
Contributor Author

Thanks for the quick fix!

I think a more elaborate parser (e.g. as I outlined above) would be really helpful. Having no data even though something is published on the original RIS is very suboptimal and will cause too many misses when searching for all papers for some person or organization...

@darkdragon-001
Copy link
Contributor Author

I asked about the reason for the following three different implementation:

  1. Gestellt von Fraktion: https://risi.muenchen.de/risi/antrag/detail/7332508
  2. Gestellt von Personen: https://risi.muenchen.de/risi/antrag/detail/7212230
  3. Gestellt von Fraktion, Initiative Personen: https://risi.muenchen.de/risi/antrag/detail/7353552

and got a response outlining why they exist and therefore are meant to stay there in the foreseeable future:

hierbei handelt es sich [...] um die Abbildung der politischen Stadtratsarbeit in Form von unterschiedlichen Stadtratsanträgen bzw. -anfragen.

Die Stadträt*innen können in eigener Sache Anträge bzw. Anfragen an die Verwaltung stellen, wenn sie dies tun wollen, Fall 2.

Beschließt eine Fraktion bzw. eine Gruppierung die Antrags- bzw. Anfrageinitiative einiger Stadträte zu unterstützen, wird daraus ein Fraktionsantrag, der aus der Initiative dieser Stadträt*innen entstand, Fall 3.

Beschließen alle Stadträt*innen einer Fraktion bzw. Gruppierung in einer Sitzung einen Antrag bzw. eine Anfrage an die Verwaltung zu stellen, handelt es sich um einen reinen Fraktionsantrag. Fall 1.

@darkdragon-001
Copy link
Contributor Author

@CatoTH Do you think it would be possible to improve the parser as outlined above?

Maybe in the parser we could for both "Initiative" and "Gestellt von" first search for the string in organizations' names and if they are not found, fallback to persons? For storage, we would probably need an additional relation between paper and organizations instead of the current only paper and people. In addition we should also keep the organization guessing as currently.

This way, at least new entries would be saved appropriately. Once that's done, we need to apply the same logic to previous entries in the database to clean it up.

@darkdragon-001
Copy link
Contributor Author

@CatoTH any updates?

@CatoTH
Copy link
Contributor

CatoTH commented Nov 10, 2022

Sorry for not responding very timely these day, I'm really flooded with things to do these weeks, which will probably not get any better before December. So I will probably not be able to spend a lot of time into this project before then...

@darkdragon-001
Copy link
Contributor Author

darkdragon-001 commented Dec 1, 2022

@CatoTH Just read an article about OParl, München Transparent and you on netzpolitik.org 🎉

When you find some time to spend on this project again, please keep this issue in mind. This is the last remaining blocker before I can start using OParl with this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants