diff --git a/ils_middleware/tasks/folio/mappings/bf_work.py b/ils_middleware/tasks/folio/mappings/bf_work.py index 416a8f1..acfd353 100644 --- a/ils_middleware/tasks/folio/mappings/bf_work.py +++ b/ils_middleware/tasks/folio/mappings/bf_work.py @@ -79,6 +79,21 @@ <{bf_work}> bf:subject ?subject_node . OPTIONAL {{ ?subject_node rdfs:label ?subject . + + }} +""" + +genre = """PREFIX bf: +PREFIX rdf: +PREFIX rdfs: + +SELECT ?genre +WHERE {{ + <{bf_work}> a bf:Work . + <{bf_work}> bf:genreForm ?genre_node . + OPTIONAL {{ + ?genre_node rdfs:label ?genre . }} + }} """