Skip to content

Commit ad63437

Browse files
committed
Fix typos and grammar
1 parent 9e98f5e commit ad63437

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/11_MARC_to_Dublin_Core.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ parent: Tutorial
66
---
77

88

9-
# Lesson 11 : From MARC to Dublin Core as loud JSON-LD
9+
# Lesson 11 : From MARC to Dublin Core as Linked Open Usable Data (LOUD)
1010
TODO: Use better example. But the following is missing isbns: https://github.com/metafacture/metafacture-examples/blob/master/Swissbib-Extensions/MARC-CSV/
1111

12-
Today we will look a bit further into MARC processing with Metafacture. We already saw a bit of MARC processing in and today we will show you how to transform MARC records into Dublin Core and providing the data as linked open usable data.
12+
Today we will look a bit further into MARC processing with Metafacture. We already saw a bit of MARC processing and today we will transform MARC records into Dublin Core providing the data as linked open usable data.
1313

14-
To transform this MARC file into Dublin Core we need to create a fix file. You can use any texteditor for this and create a file dublin.fix (or use the transformationFile window in the playground):
14+
To transform this MARC file into Dublin Core we need to create a Fix file. You can use any text editor for this and create a file dublin.fix (or use the `transformationFile` window in the Playground).
1515

16-
And type into this textfile the following fixes:
16+
Type into the text file the following Fix commands:
1717

1818
```perl
1919
copy_field("245??.a","title")
@@ -37,20 +37,20 @@ end
3737
retain("title","creator[]","date","publisher","isbn[]","issn[]","subject[]")
3838
```
3939

40-
Every MARC record contains in the 245-field the title of a record. In the first line we map the MARC-245 field to new field in the record called title:
40+
Every MARC record contains in the 245-field the title of a record. In the first line we map the MARC-245 field to a new field in the record called title:
4141
`copy_field("245??.a","title")``
4242

43-
In the line 2-4 we map authors to a field creator. In the the marc records the authors are stored in the MARC-100 and MARC-700 field. Because there is usually more than one author in a record, we need to $append them to create an array (a list) of one or more creator-s.
43+
In the line 2-4 we map authors to a field "creator". In the the MARC records the authors are stored in the MARC-100 and MARC-700 field. Because there is usually more than one author in a record, we need to `$append` them to create an array (a list) of one or more creator-s.
4444

45-
In line 5 and line 6 we read the MARC-260 field which contains publisher and date information. Here we don’t need the $append trick because there is usually only one 260-field in a MARC record.
45+
In line 5 and line 6 we read the MARC-260 field which contains publisher and date information. Here we don’t need the `$append` trick because there is usually only one 260-field in a MARC record.
4646

47-
In line 7 to line 15 we do the same trick to filter out the ISBN and ISSN number out of the record which we store in separate fields isbn and issn (indeed these are not Dublin Core fields, we will process them later). But because these elements can be repeated we iterate over them with a list bind and copy the values in an array.
47+
In line 7 to line 15 we do the same trick to filter out the ISBN and ISSN number out of the record which we store in separate fields "isbn" and "issn" (indeed these are not Dublin Core fields, we will process them later). But because these elements can be repeated we iterate over them with a list bind and copy the values in an array.
4848

49-
In line 16-19 the subjects are to extracted from the 260-field using the same $append trick as above. Notice that we only extracted the $a subfields?
49+
In line 16-19 the subjects are extracted from the 260-field using the same `$append` trick as above. Notice that we only extracted the `$a` subfields.
5050

51-
We end the fix and retain only those elements that we want to keep.
51+
We end the Fix and retain only those elements that we want to keep.
5252

53-
Given the dublin.txt file above we can execute the filtering command like this:
53+
Given the `dublin.txt` file above we can execute the filtering command like this:
5454

5555
TODO: Explain how to run the function with CLI.
5656

@@ -87,7 +87,7 @@ title: Propositional structure and illocutionary force :a study of the contribut
8787
...
8888
```
8989

90-
Congratulations, you’ve created your first mapping file to transform library data from MARC to Dublin Core! We need to add a bit more cleaning to delete some periods and commas here and there but as is we already have our first mapping.
90+
Congratulations, you’ve created your first mapping file to transform library data from MARC to Dublin Core! We need to add a bit more cleaning to delete some periods and commas here and there but as it is we already have our first mapping.
9191

9292
Below you’ll find a complete example. You can read more about our Fix language online.
9393

@@ -120,9 +120,9 @@ end
120120
retain("title","creator[]","date","publisher","isbn[]","issn[]","subject[]")
121121
```
122122
123-
We can turn this data also to JSON-LD by adding a context that specifies the elements with URIs.
123+
We can turn this data to JSON-LD by adding a context that specifies the elements with URIs.
124124
125-
Add the following fix to the fix above:
125+
Add the following Fix to the Fix above:
126126
127127
```perl
128128
add_field("@context.title","http://purl.org/dc/terms/title")

0 commit comments

Comments
 (0)