Skip to content

Commit 4029970

Browse files
committed
Normalise line endings (second attempt)
Configuration changed to always use line-feeds only.
1 parent fac9ab9 commit 4029970

File tree

18 files changed

+1798
-1798
lines changed

18 files changed

+1798
-1798
lines changed

examples/count/count-gnd-types.flux

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
default fileName = FLUX_DIR + "gnd-sample.pica";
2-
3-
fileName|
4-
open-file|
5-
as-lines|
6-
decode-pica|
7-
morph(FLUX_DIR + "gnd-type.xml")|
8-
stream-to-triples|
9-
count-triples(countBy="object")|
10-
template("${s}\t${o}")|
1+
default fileName = FLUX_DIR + "gnd-sample.pica";
2+
3+
fileName|
4+
open-file|
5+
as-lines|
6+
decode-pica|
7+
morph(FLUX_DIR + "gnd-type.xml")|
8+
stream-to-triples|
9+
count-triples(countBy="object")|
10+
template("${s}\t${o}")|
1111
write("stdout");

examples/count/gnd-type.xml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<metamorph xmlns="http://www.culturegraph.org/metamorph"
3-
version="1" entityMarker=".">
4-
5-
<rules>
6-
7-
<data source="[email protected]" name="">
8-
<substring start="1" end="2" />
9-
</data>
10-
11-
12-
13-
</rules>
14-
15-
<maps>
16-
</maps>
17-
</metamorph>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<metamorph xmlns="http://www.culturegraph.org/metamorph"
3+
version="1" entityMarker=".">
4+
5+
<rules>
6+
7+
<data source="[email protected]" name="">
8+
<substring start="1" end="2" />
9+
</data>
10+
11+
12+
13+
</rules>
14+
15+
<maps>
16+
</maps>
17+
</metamorph>
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// opens file 'fileName', interprets the content as pica and filters the results
2-
3-
default fileName = FLUX_DIR + "gnd-sample.pica";
4-
5-
fileName|
6-
open-file|
7-
as-lines|
8-
decode-pica|
9-
filter(FLUX_DIR + "filter-morph.xml")|
10-
encode-formeta(style="verbose")|
1+
// opens file 'fileName', interprets the content as pica and filters the results
2+
3+
default fileName = FLUX_DIR + "gnd-sample.pica";
4+
5+
fileName|
6+
open-file|
7+
as-lines|
8+
decode-pica|
9+
filter(FLUX_DIR + "filter-morph.xml")|
10+
encode-formeta(style="verbose")|
1111
write("stdout");
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<metamorph xmlns="http://www.culturegraph.org/metamorph"
3-
version="1" entityMarker=".">
4-
<meta>
5-
<name>Filter Morph</name>
6-
<annotation>Filters Tp records of physicians (Arzt)</annotation>
7-
</meta>
8-
<rules>
9-
10-
<combine name="OK" value="OK">
11-
<data source="[email protected]">
12-
<substring start="0" end="2" />
13-
<equals string="Tp" />
14-
</data>
15-
<data source="041R.a">
16-
<case to="lower" />
17-
<regexp match="arzt" />
18-
</data>
19-
</combine>
20-
21-
</rules>
22-
23-
<maps>
24-
</maps>
25-
</metamorph>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<metamorph xmlns="http://www.culturegraph.org/metamorph"
3+
version="1" entityMarker=".">
4+
<meta>
5+
<name>Filter Morph</name>
6+
<annotation>Filters Tp records of physicians (Arzt)</annotation>
7+
</meta>
8+
<rules>
9+
10+
<combine name="OK" value="OK">
11+
<data source="[email protected]">
12+
<substring start="0" end="2" />
13+
<equals string="Tp" />
14+
</data>
15+
<data source="041R.a">
16+
<case to="lower" />
17+
<regexp match="arzt" />
18+
</data>
19+
</combine>
20+
21+
</rules>
22+
23+
<maps>
24+
</maps>
25+
</metamorph>
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
default out = "stdout";
2-
default file = FLUX_DIR + "Test_DNB_Mono.xml";
3-
4-
//file|
5-
//open-file|
6-
"1025374754"|
7-
template("https://portal.dnb.de/opac.htm?method=requestMarcXml&idn=${o}")|
8-
open-http|
9-
decode-xml|
10-
handle-marcxml|
11-
morph(FLUX_DIR + "MARC21-EDM.xml", *)|
12-
add-oreaggregation|
13-
rdf-macros|
14-
stream-to-xml(roottag="rdf:RDF", recordtag="", namespacefile= FLUX_DIR+"edm-namespaces.properties")|
1+
default out = "stdout";
2+
default file = FLUX_DIR + "Test_DNB_Mono.xml";
3+
4+
//file|
5+
//open-file|
6+
"1025374754"|
7+
template("https://portal.dnb.de/opac.htm?method=requestMarcXml&idn=${o}")|
8+
open-http|
9+
decode-xml|
10+
handle-marcxml|
11+
morph(FLUX_DIR + "MARC21-EDM.xml", *)|
12+
add-oreaggregation|
13+
rdf-macros|
14+
stream-to-xml(roottag="rdf:RDF", recordtag="", namespacefile= FLUX_DIR+"edm-namespaces.properties")|
1515
write(out);

0 commit comments

Comments
 (0)