Skip to content
Snippets Groups Projects
Commit c3a5da59 authored by Benjamin Becker's avatar Benjamin Becker
Browse files

fixes bug: recursive setting of mediaType

parent 6ef8bf68
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ class ODSHEuropeanDCATAPProfile(EuropeanDCATAPProfile):
# set dcat:mediaType
for s2, p2, o2 in self.g.triples((s, DCAT['mediaType'], None)):
mediaType = o2.decode()
if mediaType:
if mediaType and not mediaType.startswith(IANA_MEDIA_TYPES):
self.g.set(
(s, DCAT['mediaType'], rdflib.URIRef(IANA_MEDIA_TYPES[mediaType]))
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment