Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ils_middleware/tasks/folio/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"uri": "work",
"class": "bf:Person",
},
"editions": {"template": bf_work_map.editions, "uri": "work"},
"instance_format": {
"template": bf_instance_map.instance_format_id,
"uri": "instance",
Expand Down
11 changes: 0 additions & 11 deletions ils_middleware/tasks/folio/mappings/bf_work.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,6 @@
}}
"""

editions = """PREFIX bf: <http://id.loc.gov/ontologies/bibframe/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?edition
WHERE {{
<{bf_work}> a bf:Work .
<{bf_work}> bf:editionStatement ?edition .
}}
"""

instance_type_id = """PREFIX bf: <http://id.loc.gov/ontologies/bibframe/>

SELECT ?instance_type_id
Expand Down
9 changes: 0 additions & 9 deletions tests/tasks/folio/mappings/test_bf_work.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ def test_contributor_author_person(test_graph: rdflib.Graph):
assert str(contributors[0][1]).startswith("author")


@typing.no_type_check
def test_edition(test_graph: rdflib.Graph):
sparql = bf_work_map.editions.format(bf_work=work_uri)

editions = [row[0] for row in test_graph.query(sparql)]

assert str(editions[0]).startswith("1st edition")


@typing.no_type_check
def test_instance_type_id(test_graph: rdflib.Graph):
sparql = bf_work_map.instance_type_id.format(bf_work=work_uri)
Expand Down