Skip to content

Commit

Permalink
Merge pull request #124 from metafacture/114-useFluxVariables
Browse files Browse the repository at this point in the history
Use flux variables
  • Loading branch information
katauber authored Sep 6, 2023
2 parents 3cc8cfc + 40e7cd8 commit dd3846a
Show file tree
Hide file tree
Showing 41 changed files with 480 additions and 621 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Checkout metafacture-fix
uses: actions/checkout@v2
with:
path: metafacture-fix
repository: metafacture/metafacture-fix
ref: 0.5.1
ref: 0.6.1
- name: Install metafacture-fix
working-directory: metafacture-fix
run: ./gradlew install
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Checkout metafacture-fix
uses: actions/checkout@v2
with:
path: metafacture-fix
repository: metafacture/metafacture-fix
ref: 0.5.1
ref: 0.6.1
- name: Install metafacture-fix
working-directory: metafacture-fix
run: ./gradlew install
Expand Down
37 changes: 30 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ The ***production deployment*** is available at [https://metafacture.org/playgro

The current ***test deployment*** is available at [https://test.metafacture.org/playground/](https://test.metafacture.org/playground/).

Both deployments provide a web application and an HTTP API

[Here](CONTRIBUTING.md) you can read about contributing to Metafacture Playground.

## Installation
Expand All @@ -30,7 +32,7 @@ It is possible to display the current version of dependencies in the UI. To disp

Clone and install metafacture-fix:
```bash
$ git clone https://github.com/metafacture/metafacture-fix.git -b 0.5.1
$ git clone https://github.com/metafacture/metafacture-fix.git -b 0.6.1
$ cd metafacture-fix
```

Expand Down Expand Up @@ -84,10 +86,6 @@ lein run

Browse to http://localhost:3000.

Run workflows on the web server, passing `data`, `flux`, and `fix`:

[http://localhost:3000/process?data='1'{'a': '5', 'z': 10}&flux=as-lines|decode-formeta|fix|encode-formeta(style="multiline")&fix=map(a,b) map(_else)](http://localhost:3000/process?data=%271%27{%27a%27:%20%275%27,%20%27z%27:%2010}&flux=as-lines|decode-formeta|fix|encode-formeta(style=%22multiline%22)&fix=map(a,c)%20map(_else))

### Show dependency versions in UI

When installing the Metafacture Playground to a server it's important for users to know which version of Metafacture Core and Metafacture Fix are used to process the workflows in the playground.
Expand Down Expand Up @@ -142,6 +140,31 @@ lein test

## Run workflows on the web server

Run workflows on the web server, passing `data`, `flux`, and `fix` as GET-Parameter:
You also can run workflows on the web server without the web application, passing the GET parameters

`data` with value
```
1{a: Faust, b {n: Goethe, v: JW}, c: Weimar}
2{a: Räuber, b {n: Schiller, v: F}, c: Weimar}
```
,`flux` with value
```
inputFile
|open-file
|as-lines
|decode-formeta
|fix(transformationFile)
|encode-xml(rootTag="collection")
|print
;
```
and `transformation` with value
```
move_field(_id, id)
move_field(a, title)
paste(author, b.v, b.n, '~aus', c)
retain(id, title, author)
```
The parameter values must be URL-encoded so the URL looks like this:

[http://localhost:3000/process?data='1'{'a': '5', 'z': 10}&flux=as-lines|decode-formeta|fix|encode-formeta(style="multiline")&fix=map(a,b) map(_else)](http://localhost:3000/process?data=%271%27{%27a%27:%20%275%27,%20%27z%27:%2010}&flux=as-lines|decode-formeta|fix|encode-formeta(style=%22multiline%22)&fix=map(a,c)%20map(_else))
http://localhost:3000/process?flux=inputFile%0A%7Copen-file%0A%7Cas-lines%0A%7Cdecode-formeta%0A%7Cfix%28transformationFile%29%0A%7Cencode-xml%28rootTag%3D%22collection%22%29%0A%7Cprint%0A%3B&transformation=move_field%28_id%2C+id%29%0Amove_field%28a%2C+title%29%0Apaste%28author%2C+b.v%2C+b.n%2C+%27~aus%27%2C+c%29%0Aretain%28id%2C+title%2C+author%29&data=1%7Ba%3A+Faust%2C+b+%7Bn%3A+Goethe%2C+v%3A+JW%7D%2C+c%3A+Weimar%7D%0A2%7Ba%3A+R%C3%A4uber%2C+b+%7Bn%3A+Schiller%2C+v%3A+F%7D%2C+c%3A+Weimar%7D
60 changes: 30 additions & 30 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -22,36 +22,36 @@
[org.clojure/data.json "2.4.0"]
[com.degel/re-frame-storage-fx "0.1.1"]
[jtk-dvlp/re-frame-readfile-fx "2.0.0"]
[org.metafacture/metafacture-commons "5.5.0"]
[org.metafacture/metafacture-framework "5.5.0"]
[org.metafacture/metafacture-flowcontrol "5.5.0"]
[org.metafacture/metafacture-mangling "5.5.0"]
[org.metafacture/metafacture-plumbing "5.5.0"]
[org.metafacture/metafacture-monitoring "5.5.0"]
[org.metafacture/metafacture-scripting "5.5.0"]
[org.metafacture/metafacture-javaintegration "5.5.0"]
[org.metafacture/metafacture-strings "5.5.0"]
[org.metafacture/metafacture-formeta "5.5.0"]
[org.metafacture/metafacture-formatting "5.5.0"]
[org.metafacture/metafacture-xml "5.5.0"]
[org.metafacture/metafacture-html "5.5.0"]
[org.metafacture/metafacture-triples "5.5.0"]
[org.metafacture/metafacture-statistics "5.5.0"]
[org.metafacture/metafacture-io "5.5.0"]
[org.metafacture/metafacture-biblio "5.5.0"]
[org.metafacture/metafacture-csv "5.5.0"]
[org.metafacture/metafacture-elasticsearch "5.5.0"]
[org.metafacture/metafacture-files "5.5.0"]
[org.metafacture/metafacture-jdom "5.5.0"]
[org.metafacture/metafacture-json "5.5.0"]
[org.metafacture/metafacture-linkeddata "5.5.0"]
[org.metafacture/metafacture-flux "5.5.0"]
[org.metafacture/metafacture-runner "5.5.0"]
[org.metafacture/metafacture-yaml "5.5.0"]
[org.metafacture/metamorph-api "5.5.0"]
[org.metafacture/metamorph "5.5.0"]
[org.metafacture/metamorph-test "5.5.0"]
[org.metafacture/metafix "0.5.1" :exclusions [[org.eclipse.xtext/xtext-dev-bom]]]]
[org.metafacture/metafacture-commons "5.6.0"]
[org.metafacture/metafacture-framework "5.6.0"]
[org.metafacture/metafacture-flowcontrol "5.6.0"]
[org.metafacture/metafacture-mangling "5.6.0"]
[org.metafacture/metafacture-plumbing "5.6.0"]
[org.metafacture/metafacture-monitoring "5.6.0"]
[org.metafacture/metafacture-scripting "5.6.0"]
[org.metafacture/metafacture-javaintegration "5.6.0"]
[org.metafacture/metafacture-strings "5.6.0"]
[org.metafacture/metafacture-formeta "5.6.0"]
[org.metafacture/metafacture-formatting "5.6.0"]
[org.metafacture/metafacture-xml "5.6.0"]
[org.metafacture/metafacture-html "5.6.0"]
[org.metafacture/metafacture-triples "5.6.0"]
[org.metafacture/metafacture-statistics "5.6.0"]
[org.metafacture/metafacture-io "5.6.0"]
[org.metafacture/metafacture-biblio "5.6.0"]
[org.metafacture/metafacture-csv "5.6.0"]
[org.metafacture/metafacture-elasticsearch "5.6.0"]
[org.metafacture/metafacture-files "5.6.0"]
[org.metafacture/metafacture-jdom "5.6.0"]
[org.metafacture/metafacture-json "5.6.0"]
[org.metafacture/metafacture-linkeddata "5.6.0"]
[org.metafacture/metafacture-flux "5.6.0"]
[org.metafacture/metafacture-runner "5.6.0"]
[org.metafacture/metafacture-yaml "5.6.0"]
[org.metafacture/metamorph-api "5.6.0"]
[org.metafacture/metamorph "5.6.0"]
[org.metafacture/metamorph-test "5.6.0"]
[org.metafacture/metafix "0.6.1" :exclusions [[org.eclipse.xtext/xtext-dev-bom]]]]

:plugins [[lein-shadow "0.4.0"]

Expand Down
1 change: 1 addition & 0 deletions resources/examples/How_to_use_the_Playground
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://test.metafacture.org/playground/?flux=inputFile+//+This+is+a+variable+for+the+input+data.%0A%0A//+These+are+Flux+commands.%0A%7C+open-file%0A%7C+as-records%0A%7C+decode-json%0A%7C+fix%28transformationFile%29+//+This+uses+a+variable+to+reference+the+content+of+the+box+transformationFile.%0A%7C+encode-yaml%0A%7C+print%0A%3B&transformation=replace_all%28%22Hello%22%2C%22ld%22%2C%22kers%22%29%0Aremove_field%28%22This%5B%5D.3%22%29%0Aremove_field%28%22Please%22%29%0Aadd_field%28%22This%5B%5D.%24append%22%2C%22output%22%29%0Aadd_field%28%22Great%22%2C%22Success%21%22%29%0A&data=%7B%0A++++%22Hello%22%3A+%22World%22%2C%0A++++%22This%22%3A+%5B%22is%22%2C%22an%22%2C%22input%22%2C%22example%22%5D%2C%0A++++%22Please%22%3A+%22Paste+your+input+data+here%2C+if+needed%22%0A%7D
2 changes: 1 addition & 1 deletion resources/examples/Local_formeta_to_XML_(fix)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://metafacture.org/playground/?data=1%7Ba%3A+Faust%2C+b+%7Bn%3A+Goethe%2C+v%3A+JW%7D%2C+c%3A+Weimar%7D%0A2%7Ba%3A+R%C3%A4uber%2C+b+%7Bn%3A+Schiller%2C+v%3A+F%7D%2C+c%3A+Weimar%7D&flux=PG_DATA%0A%7Cas-lines%0A%7Cdecode-formeta%0A%7Cfix%0A%7Cencode-xml%28rootTag%3D%22collection%22%29%0A%7Cprint%0A%3B&fix=move_field%28_id%2C+id%29%0Amove_field%28a%2C+title%29%0Apaste%28author%2C+b.v%2C+b.n%2C+%27~aus%27%2C+c%29%0Aretain%28id%2C+title%2C+author%29&morph=&active-editor=fix
https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-lines%0A%7Cdecode-formeta%0A%7Cfix%28transformationFile%29%0A%7Cencode-xml%28rootTag%3D%22collection%22%29%0A%7Cprint%0A%3B&transformation=move_field%28_id%2C+id%29%0Amove_field%28a%2C+title%29%0Apaste%28author%2C+b.v%2C+b.n%2C+%27~aus%27%2C+c%29%0Aretain%28id%2C+title%2C+author%29&data=1%7Ba%3A+Faust%2C+b+%7Bn%3A+Goethe%2C+v%3A+JW%7D%2C+c%3A+Weimar%7D%0A2%7Ba%3A+R%C3%A4uber%2C+b+%7Bn%3A+Schiller%2C+v%3A+F%7D%2C+c%3A+Weimar%7D
2 changes: 1 addition & 1 deletion resources/examples/Local_formeta_to_XML_(morph)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://metafacture.org/playground/?data=1%7Ba%3A+Faust%2C+b+%7Bn%3A+Goethe%2C+v%3A+JW%7D%2C+c%3A+Weimar%7D%0A2%7Ba%3A+R%C3%A4uber%2C+b+%7Bn%3A+Schiller%2C+v%3A+F%7D%2C+c%3A+Weimar%7D&flux=PG_DATA%0A%7Cas-lines%0A%7Cdecode-formeta%0A%7Cmorph%0A%7Cencode-xml%28rootTag%3D%22collection%22%29%0A%7Cprint%0A%3B&morph=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3Cmetamorph+xmlns%3D%22http%3A//www.culturegraph.org/metamorph%22+xmlns%3Axsi%3D%22http%3A//www.w3.org/2001/XMLSchema-instance%22%0A%09version%3D%221%22%3E%0A%09%3Crules%3E%0A%09%09%3Cdata+source%3D%22_id%22+name%3D%22id%22/%3E%0A%09%09%3Cdata+source%3D%22a%22+name%3D%22title%22/%3E%0A%09%09%3Ccombine+value%3D%22%24%7Bfirst%7D+%24%7Blast%7D+aus+%24%7Bplace%7D%22+name%3D%22author%22%3E%0A%09%09%09%3Cdata+source%3D%22b.v%22+name%3D%22first%22+/%3E%0A%09%09%09%3Cdata+source%3D%22b.n%22+name%3D%22last%22+/%3E%0A%09%09%09%3Cdata+source%3D%22c%22+name%3D%22place%22+/%3E%0A%09%09%3C/combine%3E%0A%09%3C/rules%3E%0A%3C/metamorph%3E&active-editor=morph
http://localhost:8280/?flux=inputFile%0A%7Copen-file%0A%7Cas-lines%0A%7Cdecode-formeta%0A%7Cmorph%28transformationFile%29%0A%7Cencode-xml%28rootTag%3D%22collection%22%29%0A%7Cprint%0A%3B&transformation=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3Cmetamorph+xmlns%3D%22http%3A//www.culturegraph.org/metamorph%22+xmlns%3Axsi%3D%22http%3A//www.w3.org/2001/XMLSchema-instance%22%0A%09version%3D%221%22%3E%0A%09%3Crules%3E%0A%09%09%3Cdata+source%3D%22_id%22+name%3D%22id%22/%3E%0A%09%09%3Cdata+source%3D%22a%22+name%3D%22title%22/%3E%0A%09%09%3Ccombine+value%3D%22%24%7Bfirst%7D+%24%7Blast%7D+aus+%24%7Bplace%7D%22+name%3D%22author%22%3E%0A%09%09%09%3Cdata+source%3D%22b.v%22+name%3D%22first%22+/%3E%0A%09%09%09%3Cdata+source%3D%22b.n%22+name%3D%22last%22+/%3E%0A%09%09%09%3Cdata+source%3D%22c%22+name%3D%22place%22+/%3E%0A%09%09%3C/combine%3E%0A%09%3C/rules%3E%0A%3C/metamorph%3E&data=1%7Ba%3A+Faust%2C+b+%7Bn%3A+Goethe%2C+v%3A+JW%7D%2C+c%3A+Weimar%7D%0A2%7Ba%3A+R%C3%A4uber%2C+b+%7Bn%3A+Schiller%2C+v%3A+F%7D%2C+c%3A+Weimar%7D
2 changes: 1 addition & 1 deletion resources/examples/experimental/Large_Input_HTTP
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://test.metafacture.org/?flux=%22https%3A//github.com/hbz/metafacture-flux-examples/blob/master/sample4/bib-data.pica%3Fraw%3Dtrue%22%0A%7C+open-http%0A%7C+as-lines%0A%7C+decode-pica%0A%7C+fix%0A%7C+stream-to-triples%0A%7C+count-triples%28countBy+%3D+%22object%22%29%0A%7C+sort-triples%28by+%3D+%22object%22%2C+numeric+%3D+%22true%22%2C+order+%3D+%22decreasing%22%29%0A%7C+template%28%22%24%7Bo%7D+%7C+%24%7Bs%7D%22%29%0A%7C+print%0A%3B&fix=move_field%28%27032@.a%27%2C+%27Edition%27%29%0Aretain%28%27Edition%27%29&active-editor=fix
http://localhost:8280/?flux=%22https%3A//github.com/hbz/metafacture-flux-examples/blob/master/sample4/bib-data.pica%3Fraw%3Dtrue%22%0A%7C+open-http%0A%7C+as-lines%0A%7C+decode-pica%0A%7C+fix%28transformationFile%29%0A%7C+stream-to-triples%0A%7C+count-triples%28countBy+%3D+%22object%22%29%0A%7C+sort-triples%28by+%3D+%22object%22%2C+numeric+%3D+%22true%22%2C+order+%3D+%22decreasing%22%29%0A%7C+template%28%22%24%7Bo%7D+%7C+%24%7Bs%7D%22%29%0A%7C+print%0A%3B&transformation=move_field%28%27032@.a%27%2C+%27Edition%27%29%0Aretain%28%27Edition%27%29
2 changes: 1 addition & 1 deletion resources/examples/experimental/Post-to-Reconciliation-API
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://metafacture.org/playground/?flux=PG_DATA%0A%7Cas-lines%0A%7Copen-http%28method%3D%22POST%22%2C+url%3D%22http%3A//lobid.org/gnd/reconcile%22%29%0A%7Cas-lines%0A%7Cdecode-json%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B&data=queries%3D%7B%22q1%22%3A%7B%22query%22%3A%22Twain%2C+Mark%22%7D%7D&active-editor=fix
http://localhost:8280/?flux=inputFile%0A%7Copen-file%0A%7Cas-lines%0A%7Copen-http%28method%3D%22POST%22%2C+url%3D%22http%3A//lobid.org/gnd/reconcile%22%29%0A%7Cas-lines%0A%7Cdecode-json%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B&data=queries%3D%7B%22q1%22%3A%7B%22query%22%3A%22Twain%2C+Mark%22%7D%7D
2 changes: 1 addition & 1 deletion resources/examples/experimental/Result_as_file_download
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://metafacture.org/playground/?flux=PG_DATA%0A%7Cas-lines%0A%7Cdecode-formeta%0A%7Cfix%0A%7Cencode-xml%28rootTag%3D%22collection%22%29%0A%7Cwrite%28%22my-result.xml%22%29%0A%3B&fix=move_field%28_id%2C+id%29%0Amove_field%28a%2C+title%29%0Apaste%28author%2C+b.v%2C+b.n%2C+%27~aus%27%2C+c%29%0Aretain%28id%2C+title%2C+author%29&data=1%7Ba%3A+Faust%2C+b+%7Bn%3A+Goethe%2C+v%3A+JW%7D%2C+c%3A+Weimar%7D%0A2%7Ba%3A+R%C3%A4uber%2C+b+%7Bn%3A+Schiller%2C+v%3A+F%7D%2C+c%3A+Weimar%7D&active-editor=fix
http://localhost:8280/?flux=inputFile%0A%7Copen-file%0A%7Cas-lines%0A%7Cdecode-formeta%0A%7Cfix%28transformationFile%29%0A%7Cencode-xml%28rootTag%3D%22collection%22%29%0A%7Cwrite%28%22my-result.xml%22%29%0A%3B&transformation=move_field%28_id%2C+id%29%0Amove_field%28a%2C+title%29%0Apaste%28author%2C+b.v%2C+b.n%2C+%27~aus%27%2C+c%29%0Aretain%28id%2C+title%2C+author%29&data=1%7Ba%3A+Faust%2C+b+%7Bn%3A+Goethe%2C+v%3A+JW%7D%2C+c%3A+Weimar%7D%0A2%7Ba%3A+R%C3%A4uber%2C+b+%7Bn%3A+Schiller%2C+v%3A+F%7D%2C+c%3A+Weimar%7D
2 changes: 1 addition & 1 deletion resources/examples/experimental/Web_JSON_to_JSON_(fix)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://metafacture.org/playground/?flux=%22https%3A//lobid.org/gnd/11942150X%22%0A%7C+open-http%28accept%3D%22application/json%22%29%0A%7C+as-records%0A%7C+decode-json%0A%7C+fix%0A%7C+encode-json%28prettyPrinting%3D%22true%22%29%0A%7C+print%3B&fix=copy_field%28%22preferredName%22%2C+%22name%22%29%0Acopy_field%28%22affiliation%5B%5D.1.label%22%2C+%22placeOfWork%22%29%0Aretain%28%22name%22%2C+%22placeOfWork%22%29&active-editor=fix
http://localhost:8280/?flux=%22https%3A//lobid.org/gnd/11942150X%22%0A%7C+open-http%28accept%3D%22application/json%22%29%0A%7C+as-records%0A%7C+decode-json%0A%7C+fix%28transformationFile%29%0A%7C+encode-json%28prettyPrinting%3D%22true%22%29%0A%7C+print%3B&transformation=copy_field%28%22preferredName%22%2C+%22name%22%29%0Acopy_field%28%22affiliation%5B%5D.1.label%22%2C+%22placeOfWork%22%29%0Aretain%28%22name%22%2C+%22placeOfWork%22%29
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://metafacture.org/playground/?data=&flux=%22https%3A//raw.githubusercontent.com/metafacture/metafacture-core/master/metafacture-runner/src/main/dist/examples/morph/pica-to-marcxml/nonNormalized.pica%22%0A%7C+open-http%0A%7C+as-lines%0A%7C+lines-to-records%0A%7C+decode-pica%28normalizedSerialization%3D%22false%22%2C+ignoreMissingIdn%3D%22true%22%29%0A%7C+morph%0A%7C+encode-marc21%0A%7C+decode-marc21%28emitLeaderAsWhole%3D%22true%22%2C+ignoreMissingId%3D%22true%22%29%0A%7C+encode-marcxml%0A%7C+print%0A%3B&fix=&morph=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3Cmetamorph+xmlns%3D%22http%3A//www.culturegraph.org/metamorph%22+xmlns%3Axsi%3D%22http%3A//www.w3.org/2001/XMLSchema-instance%22+version%3D%221%22%3E%0A++++%3Crules%3E%0A++++++++%3Centity+name%3D%22leader%22+flushWith%3D%22record%22%3E%0A++++++++++++%3Cchoose%3E%0A++++++++++++++++%3Cdata+source%3D%22003.@%22+name%3D%22characterCodingScheme%22%3E%0A++++++++++++++++++++%3Cconstant+value%3D%22a%22/%3E%0A++++++++++++++++%3C/data%3E%0A++++++++++++++++%3Cdata+source%3D%22%3F%3F%3F%3F%22+name%3D%22characterCodingScheme%22%3E%0A++++++++++++++++++++%3Cconstant+value%3D%22a%22/%3E%0A++++++++++++++++%3C/data%3E%0A++++++++++++%3C/choose%3E%0A++++++++%3C/entity%3E%0A++++++++%3Cdata+name%3D%22001%22+source%3D%22003@.0%22/%3E%0A++++++++%3Centity+name%3D%22650+0%22+reset%3D%22true%22%3E%0A++++++++++++%3Cdata+source%3D%22044N.a%22+name%3D%22a%22/%3E%0A++++++++%3C/entity%3E%0A++++%3C/rules%3E%0A%3C/metamorph%3E&active-editor=morph
http://localhost:8280/?flux=%22https%3A//raw.githubusercontent.com/metafacture/metafacture-core/master/metafacture-runner/src/main/dist/examples/morph/pica-to-marcxml/nonNormalized.pica%22%0A%7C+open-http%0A%7C+as-lines%0A%7C+lines-to-records%0A%7C+decode-pica%28normalizedSerialization%3D%22false%22%2C+ignoreMissingIdn%3D%22true%22%29%0A%7C+morph%28transformationFile%29%0A%7C+encode-marc21%0A%7C+decode-marc21%28emitLeaderAsWhole%3D%22true%22%2C+ignoreMissingId%3D%22true%22%29%0A%7C+encode-marcxml%0A%7C+print%0A%3B&transformation=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%0A%3Cmetamorph+xmlns%3D%22http%3A//www.culturegraph.org/metamorph%22+xmlns%3Axsi%3D%22http%3A//www.w3.org/2001/XMLSchema-instance%22+version%3D%221%22%3E%0A++++%3Crules%3E%0A++++++++%3Centity+name%3D%22leader%22+flushWith%3D%22record%22%3E%0A++++++++++++%3Cchoose%3E%0A++++++++++++++++%3Cdata+source%3D%22003.@%22+name%3D%22characterCodingScheme%22%3E%0A++++++++++++++++++++%3Cconstant+value%3D%22a%22/%3E%0A++++++++++++++++%3C/data%3E%0A++++++++++++++++%3Cdata+source%3D%22%3F%3F%3F%3F%22+name%3D%22characterCodingScheme%22%3E%0A++++++++++++++++++++%3Cconstant+value%3D%22a%22/%3E%0A++++++++++++++++%3C/data%3E%0A++++++++++++%3C/choose%3E%0A++++++++%3C/entity%3E%0A++++++++%3Cdata+name%3D%22001%22+source%3D%22003@.0%22/%3E%0A++++++++%3Centity+name%3D%22650+0%22+reset%3D%22true%22%3E%0A++++++++++++%3Cdata+source%3D%22044N.a%22+name%3D%22a%22/%3E%0A++++++++%3C/entity%3E%0A++++%3C/rules%3E%0A%3C/metamorph%3E
2 changes: 1 addition & 1 deletion resources/examples/experimental/XML_repeated_fields
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://metafacture.org/playground/?flux=PG_DATA%0A%7Cdecode-xml%0A%7Chandle-generic-xml%0A%7Cfix%28%22nothing%28%29%22%2CrepeatedFieldsToEntities%3D%22true%22%29%0A%7Cflatten%0A%7Cencode-literals%0A%7Cprint%0A%3B&data=%3C%3Fxml+version%3D%221.0%22%3F%3E%0A%3Crecord%3E%0A++++%3Cfield%3Ea%3C/field%3E%0A++++%3Cfield%3Eb%3C/field%3E%0A%3C/record%3E&active-editor=fix
http://localhost:8280/?flux=inputFile%0A%7Copen-file%0A%7Cdecode-xml%0A%7Chandle-generic-xml%0A%7Cfix%28%22nothing%28%29%22%2CrepeatedFieldsToEntities%3D%22true%22%29%0A%7Cflatten%0A%7Cencode-literals%0A%7Cprint%0A%3B&data=%3C%3Fxml+version%3D%221.0%22%3F%3E%0A%3Crecord%3E%0A++++%3Cfield%3Ea%3C/field%3E%0A++++%3Cfield%3Eb%3C/field%3E%0A%3C/record%3E
Loading

0 comments on commit dd3846a

Please sign in to comment.