election_day.views.opendata_swiss

Functions

sub(→ xml.etree.ElementTree.Element)

view_rdf(→ bytes)

Returns an XML / RDF / DCAT-AP for Switzerland format for

Module Contents

election_day.views.opendata_swiss.sub(parent: xml.etree.ElementTree.Element, tag: str, attrib: dict[str, str] | None = None, text: str | None = None) xml.etree.ElementTree.Element[source]
election_day.views.opendata_swiss.view_rdf(self: onegov.election_day.models.Principal, request: onegov.election_day.request.ElectionDayRequest) bytes[source]

Returns an XML / RDF / DCAT-AP for Switzerland format for opendata.swiss.

See https://handbook.opendata.swiss/de/content/glossar/bibliothek/ dcat-ap-ch.html and https://dcat-ap.ch/ for more information.