ec2u / data

EC2U Knowledge Hub
https://data.ec2u.eu
Apache License 2.0
2 stars 0 forks source link

Events › Jena › University / Locations with multiple postal codes #41

Open knoan opened 1 year ago

knoan commented 1 year ago

The event feed from https://www.uni-jena.de/kommende-veranstaltunge/ is failing on locations being reported with inconsistent postal codes, e.g.

https://www.uni-jena.de/kommende-veranstaltungen/wie-geht-das-linden-museum-stuttgart-mit-dem-kolonialen-erbe-um

"location": [
    {
        "@type": "Place",
        "address": {
            "@type": "PostalAddress",
            "addressLocality": "Jena",
            "postalCode": "07745",
            "streetAddress": "Fürstengraben 1"
        }
    }
]

https://www.uni-jena.de/kommende-veranstaltungen/die-aechtung-und-einhegung-militaerischer-gewalt-im-voelkerrecht-teil-1-von-kriegsdarstellungen-und-tabus-im-geschichtsunterricht-teil-2-1

"location": [
    {
        "@type": "Place",
        "address": {
            "@type": "PostalAddress",
            "addressLocality": "Jena",
            "postalCode": "07743",
            "streetAddress": "Fürstengraben 1"
        }
    }
]

Current code assumes addresses with the same locality/streetAddress to refer to the same entity, which is expected to have a unique postal code.

Fixing on server side in a robust way is not straightforward, unless we include the postal code in the location identity, which would result in different entities being generated for the same location.

knoan commented 1 year ago

❗️Restore location data in EventsJenaUniversity.java once resolved