Skip to content

Commit

Permalink
Updating first chunk of bibframe terms #43
Browse files Browse the repository at this point in the history
  • Loading branch information
alliyya committed May 25, 2022
1 parent 77a3b03 commit 5cb6e5a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions Mods/modsBib.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,18 +341,18 @@ class BibliographyParse:

# Maps MODS types to BIBFRAME types
type_map = {
"text": BF.Text,
"audio": BF.Audio,
"sound recording": BF.Audio,
"cartography": BF.Cartography,
"dataset": BF.Dataset,
"mixed material": BF.MixedMaterial,
"moving image": BF.MovingImage,
"notated movement": BF.NotatedMovement,
"multimedia": BF.Multimedia,
"software, multimedia": BF.Multimedia,
"still image": BF.StillImage,
"object": BF.Object
"text": GENRE.TextualMedium,
"audio": GENRE.AuditoryMedium,
"sound recording": GENRE.SoundRecordingMedium,
"cartography": GENRE.CartographicForm,
"dataset": GENRE.DigitalMedium,
"mixed material": GENRE.mixedMaterials,
"moving image": GENRE.MovingMedium,
"notated movement": GENRE.PerformanceMedium,
"multimedia": GENRE.multimedia,
"software, multimedia": GENRE.multimedia,
"still image": GENRE.StillImageMedium,
"object": GENRE.threeDimensionalObject
}

# Maps MODS roles used in orlando to MARC roles
Expand Down Expand Up @@ -1209,8 +1209,8 @@ def add_types_to_graph(graph,uri,label):

count = 1
total = len(os.listdir(dirname))
# for fname in os.listdir(dirname):
for fname in test_filenames:
# for fname in test_filenames:
for fname in os.listdir(dirname):
print(F"{count}/{total} files extracted")
path = os.path.join(dirname, fname)
if os.path.isdir(path):
Expand Down

0 comments on commit 5cb6e5a

Please sign in to comment.