Closed alexBLR closed 6 years ago
is there a mimetype that they need? is there a way of automatically generating these?
Identified two pids in prod where the mime type is missing. ['info:fedora/emory:ps7h2/VIDEO', 'info:fedora/emory:ps7j6/VIDEO']
>>> query = """select ?ds where {?ds <info:fedora/fedora-system:def/view#mimeType> "application/octet-stream" FILTER regex(str(?ds), "VIDEO")}"""
>>> pids = [o['ds'] for o in repo.risearch.sparql_query(query)]
>>> pids
[]
@alexBLR : I'm a little confused about this one. In the original request for this bug (in 2016), Rebecca reported that there were 185 video records in production missing a mimetype. We've done no work on this bug, so I don't understand why you only found 2.
@erussey, I remember something about us running it before Rebecca left. I identified only 2 videos.
ok @alexBLR . I've verified both have been fixed. Testing complete.
Simple risearch sparql query to identify fedora datastreams with the generic application/octet-stream mimetype:
select ?ds where { ?ds <info:fedora/fedora-system:def/view#mimeType> "application/octet-stream" . FILTER regex(str(?ds), "VIDEO") }
I ran this query to get some counts - there are 7 video records with this problem in QA.
sparql query to get video ds id and mimetype:
select ?ds where { ?ds <info:fedora/fedora-system:def/view#mimeType> "application/octet-stream" . FILTER regex(str(?ds), "VIDEO") }