Informasjonsforvaltning / dataservice-catalog

A back end service for creating api catalogues and api descritptions. Exposes a dcat-ap-no dataservices endpoint.
Apache License 2.0
1 stars 1 forks source link

Fjern transformering av verdier fra mediaTypes til iana-uri #195

Open NilsOveTen opened 2 months ago

NilsOveTen commented 2 months ago

Ved produksjon av RDF så transformeres alle verdier som ikke allerede er en iana-uri til en iana-uri.

Men det er ikke alle registrerte urier som er gyldige iana-verdier, vi bør i stedet legge til krav at verdiene skal være gyldige urier og kjøre en ETL som tranformerer alle tidligere registrerte verdier på mediaTypes-feltet til en URI

NilsOveTen commented 2 months ago

@KurtStian Dette er alle verdiene som er registret på mediaTypes-feltet i prod, hva kan vi endre de til ila en ETL?


*/*
XML
application/atom+xml
application/geo+json
application/hal+json
application/json
application/json; charset=UTF-8
application/ld+json
application/rdf+json
application/rdf+xml
application/schema+json
application/text
application/vnd.enhetsregisteret.enhet.v1+json
application/vnd.enhetsregisteret.organisasjonsform.v1+json
application/vnd.geo+json
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
application/vnd.saf-t+xml
application/xbrl-instance+xml
application/xml
application~/vnd.ms-excel~
https://www.iana.org/assignments/media-types/application/json
https://www.iana.org/assignments/media-types/application/jwt
https://www.iana.org/assignments/media-types/application/ld+json
https://www.iana.org/assignments/media-types/application/n-triples
https://www.iana.org/assignments/media-types/application/oauth-authz-req+jwt
https://www.iana.org/assignments/media-types/application/rdf+xml
https://www.iana.org/assignments/media-types/application/sparql-query
https://www.iana.org/assignments/media-types/application/vnd.ms-excel
https://www.iana.org/assignments/media-types/image/jpeg
https://www.iana.org/assignments/media-types/image/png
https://www.iana.org/assignments/media-types/text/csv
https://www.iana.org/assignments/media-types/text/n3
https://www.iana.org/assignments/media-types/text/plain
https://www.iana.org/assignments/media-types/text/turtle
text/csv
text/html
text/json
text/plain
text/plain;charset=UTF-8
text/turtle
text/xml