From 4f5184f21e72aea525444e4b99ae3e976efb6a10 Mon Sep 17 00:00:00 2001 From: TobiasNx Date: Thu, 23 Nov 2023 17:37:25 +0100 Subject: [PATCH 1/6] Add example for paste --- resources/examples/Fixes/paste | 1 + 1 file changed, 1 insertion(+) create mode 100644 resources/examples/Fixes/paste diff --git a/resources/examples/Fixes/paste b/resources/examples/Fixes/paste new file mode 100644 index 0000000..bc4b3c7 --- /dev/null +++ b/resources/examples/Fixes/paste @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=paste%28%22test%22%2C%22a%22%2C+%22~+%22%2C%22b%22%2C%22~%21%22%2C+join_char%3A%22%22%29%0A&data=%7B%0A++%22a%22+%3A+%22Hello%22%2C%0A++%22b%22+%3A+%22World%22%0A%7D%0A \ No newline at end of file From 400996da2dd9d20ea142104cf6c0a38def4d2102 Mon Sep 17 00:00:00 2001 From: TobiasNx Date: Tue, 2 Jul 2024 12:01:28 +0200 Subject: [PATCH 2/6] Add old workshop examples as use cases #175 --- resources/examples/Use Cases/Backlinks_via_wormhole | 1 + resources/examples/Use Cases/Count_patterns_with_triples | 1 + resources/examples/Use Cases/Count_values_for_path | 0 .../examples/Use Cases/Enrich_pica_data_with_GND_via_wormhole | 1 + resources/examples/Use Cases/List_incoming_paths | 1 + resources/examples/Use Cases/PICA_to_JSON | 1 + resources/examples/Use Cases/Simple_Lookup | 1 + 7 files changed, 6 insertions(+) create mode 100644 resources/examples/Use Cases/Backlinks_via_wormhole create mode 100644 resources/examples/Use Cases/Count_patterns_with_triples create mode 100644 resources/examples/Use Cases/Count_values_for_path create mode 100644 resources/examples/Use Cases/Enrich_pica_data_with_GND_via_wormhole create mode 100644 resources/examples/Use Cases/List_incoming_paths create mode 100644 resources/examples/Use Cases/PICA_to_JSON create mode 100644 resources/examples/Use Cases/Simple_Lookup diff --git a/resources/examples/Use Cases/Backlinks_via_wormhole b/resources/examples/Use Cases/Backlinks_via_wormhole new file mode 100644 index 0000000..0c37384 --- /dev/null +++ b/resources/examples/Use Cases/Backlinks_via_wormhole @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-lines%0A%7Cdecode-pica%0A%7Cfix%28%22%0A++paste%28%27%7Bto%3A118514768%7DauthorOf%27%2C+%27_id%27%29+%23+TODO%3A+118514768+from+028A.9%0A++retain%28%27%7Bto%3A118514768%7DauthorOf%27%29%0A%22%29%0A%7Cstream-to-triples%28redirect%3D%22true%22%29%0A%7Ccount-triples%28countBy%3D%22subject%22%29%0A%7C@X%3B%0A%0A%22https%3A//raw.githubusercontent.com/hbz/metafacture-flux-examples/master/sample6/authority-persons.pica%22%0A%7Copen-http%0A%7Cas-lines%0A%7Cdecode-pica%0A%7Cfix%28%22%0A++paste%28%27name%27%2C+%27028A.d%27%2C+%27028A.a%27%29%0A++retain%28%27name%27%29%0A%22%29%0A%7Cstream-to-triples%0A%7C@X%3B%0A%0A@X%0A%7Cwait-for-inputs%28%222%22%29%0A%7Csort-triples%28by%3D%22subject%22%29%0A%7Ccollect-triples%0A%7Cencode-formeta%28style%3D%22verbose%22%29%0A%7Cprint%3B&data=001@+%1F01%1Fa5%1E001A+%1F01100%3A15-11-94%1E001B+%1F09999%3A31-05-11%1Ft17%3A11%3A14.000%1E001D+%1F09999%3A05-11-04%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Aao%1E003@+%1F0200025643%1E004A+%1Ff-.50%1E007I+%1FSo%1F0249415633%1E007J+%1F0660-091-7%1E007L+%1F0a74%2C06%2C17%2C007%2C0001%1E011@+%1Fa1974%1Fn1974%1E017A+%1Fara%1E019@+%1FaXA-DDDE%1E021A+%1FaDie+@Gewehre+der+Frau+Carrar%1FhBertolt+Brecht.+%5BAnm.+von+Ruth+Berlau.+Nachw.+von+Wilfried+Adling%5D%1E028A+%1F9118514768%1F7Tp1%1FVpip%1FAgnd%1F0118514768%1FE1898%1FB1956%1FaBrecht%1FdBertolt%1E032@+%1Fg215%1Fa15.+Aufl.%1E033A+%1FpLeipzig%1FnReclam%1E034D+%1Fa67+S.%1E034I+%1Fa17+cm%1E036E+%1FaReclams+Universal-Bibliothek%1Fl140%1E036F+%1Fx3140%1FaReclams+Universal-Bibliothek%1Fl140%1E038L+%1FaDBL1%1FbP%1Fx76.596%1F9760412030%1E045E+%1Fc2303%1FmB%1E047A+%1FcH%1E%0A001@+%1F01%1Fa5%1E001A+%1F01100%3A15-11-94%1E001B+%1F09999%3A31-05-11%1Ft17%3A13%3A06.000%1E001D+%1F09999%3A05-11-04%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Aao%1E003@+%1F020006746X%1E004A+%1Ff1.00%1E007I+%1FSo%1F0247968386%1E007J+%1F0660-131-1%1E007L+%1F0a74%2C10%2C22%2C048%2C0001%1E011@+%1Fa1974%1Fn1974%1E017A+%1Fara%1E019@+%1FaXA-DDDE%1E021A+%1FaLeben+des+Galilei%1Fdmit+Anm.+Brechts%1FhBertolt+Brecht%1E028A+%1F9118514768%1F7Tp1%1FVpip%1FAgnd%1F0118514768%1FE1898%1FB1956%1FaBrecht%1FdBertolt%1E032@+%1Fg214%1Fa14.+Aufl.%1E033A+%1FpLeipzig%1FnReclam%1E034D+%1Fa156+S.%1E034I+%1Fa17+cm%1E036E+%1FaReclams+Universal-Bibliothek%1Fl179%1E036F+%1Fx3179%1FaReclams+Universal-Bibliothek%1Fl179%1E038L+%1FaDBL1%1FbP%1Fx82.917%1F9760412049%1E044F+%1FgGalilei%2C+Galileo%1FhIn+der+Literatur%1E045E+%1Fc2303%1FmB%1E047A+%1FcH%1E \ No newline at end of file diff --git a/resources/examples/Use Cases/Count_patterns_with_triples b/resources/examples/Use Cases/Count_patterns_with_triples new file mode 100644 index 0000000..cae97aa --- /dev/null +++ b/resources/examples/Use Cases/Count_patterns_with_triples @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7C+open-file%0A%7C+as-lines%0A%7C+decode-pica%0A%7C+fix%28transformationFile%29%0A%7C+stream-to-triples%0A%7C+count-triples%28countBy+%3D+%22predicate%22%29%0A%7C+template%28%22%24%7Bs%7D%3A\t+%24%7Bo%7D%22%29%0A%7C+print%0A%3B&transformation=if+any_match%28%27060R.a%27%2C+%27%5E\\d%7B2%7D\\.\\d%7B2%7D.\\d%7B4%7D%27%29%0A++move_field%28%27060R.a%27%2C+%27birth+%28full%29%27%29%0Aelsif+any_match%28%27060R.a%27%2C+%27%5E\\d%7B2%2C4%7D%27%29%0A++move_field%28%27060R.a%27%2C+%27birth+%28year%29%27%29%0Aelse%0A++move_field%28%27060R.a%27%2C%27invalid+birth%27%29%0Aend%0Aretain%28%27birth+%28full%29%27%2C+%27birth+%28year%29%27%2C+%27invalid+birth%27%29&data=001A+%1F09013%3A26-09-11%1E001B+%1F09013%3A26-09-11%1Ft13%3A45%3A15.000%1E001D+%1F09013%3A26-09-11%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Tp6%1E003@+%1F0172385830%1E003U+%1Fahttp%3A//d-nb.info/gnd/172385830%1E004B+%1Fapiz%1E007K+%1Fagnd%1F0172385830%1E007N+%1Fapnd%1F0172385830%1Fvzg%1E008A+%1Faf%1E028A+%1FdJochanan%1FaStenesh%1E042@+%1F0NN%1Fchbz-per_indiv_20110920%1Fd45423%1Fe2011-09-26%1E047A/03+%1FeDE-605%1E047A/03+%1FrDE-605%1E047C+%1FSpnd%1Fia%1FaStenesh%2C+Jochanan%1F0172385830%1E050C+%1Famaschinell+eingespielte+Altdaten%1E060R+%1Fa1927%1F4datl%1E%0A001A+%1F01240%3A06-06-08%1E001B+%1F09999%3A12-07-08%1Ft01%3A36%3A32.000%1E001D+%1F01240%3A06-06-08%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Tp3%1E003@+%1F0135646189%1E003U+%1Fahttp%3A//d-nb.info/gnd/135646189%1E004B+%1Fapiz%1E007K+%1Fagnd%1F0135646189%1E007N+%1Fapnd%1F0135646189%1Fvzg%1E008A+%1Faf%1E008B+%1Fav%1E028A+%1FdMichael%1FaHack%1E041R+%1F9040031578%1F7Ts1%1FVsaz%1FAgnd%1F04003157-3%1FaArzt%1F4berc%1E047A/03+%1FeDE-101%1E047A/03+%1FrDE-101%1E047C+%1FSpnd%1Fia%1FaHack%2C+Michael%1F0135646189%1E050G+%1FbDiss.+Medizinische+Fakulta%CC%88t+an+der+Universita%CC%88t+Regensburg%1E060R+%1Fakein-jahr%1F4datl%1E065R+%1FaDingolfing%1F4ortg%1E%0A001A+%1F09013%3A26-09-11%1E001B+%1F09013%3A26-09-11%1Ft13%3A27%3A15.000%1E001D+%1F09013%3A26-09-11%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Tp6%1E003@+%1F017216575X%1E003U+%1Fahttp%3A//d-nb.info/gnd/17216575X%1E004B+%1Fapiz%1E007K+%1Fagnd%1F017216575X%1E007N+%1Fapnd%1F017216575X%1Fvzg%1E008A+%1Faf%1E028@+%1FdP.+W.+M.%1FaJacobs%1E028@+%1FdPatrick+W.+M.%1FaJacobs%1E028A+%1FdPatrick+W.%1FaJacobs%1E042@+%1F0NN%1Fchbz-per_indiv_20110920%1Fd23415%1Fe2011-09-26%1E047A/03+%1FeDE-605%1E047A/03+%1FrDE-605%1E047C+%1FSpnd%1Fia%1FaJacobs%2C+Patrick+W.%1F017216575X%1E050C+%1Famaschinell+eingespielte+Altdaten%1E050G+%1FbEmeritus+Professor+der+Physikalischen+Chemie%1E%0A001A+%1F01140%3A16-12-99%1E001B+%1F09999%3A06-04-08%1Ft10%3A09%3A57.000%1E001D+%1F09999%3A06-04-08%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Tp3%1E003@+%1F0121656551%1E003U+%1Fahttp%3A//d-nb.info/gnd/121656551%1E004B+%1Fapiz%1E007K+%1Fagnd%1F0121656551%1E007N+%1Fapnd%1F0121656551%1Fvzg%1E008A+%1Faf%1E008B+%1Fav%1E028A+%1FdMichael%1FaBotor%1E047A/03+%1FeDE-101%1E047A/03+%1FrDE-101%1E047C+%1FSpnd%1Fia%1FaBotor%2C+Michael%1F0121656551%1E050G+%1FbDissertation+Fachbereich+Germanistik%3B+Germanist%2C+Lehrer%1E060R+%1Fa1969%1F4datl%1E%0A001A+%1F09013%3A26-09-11%1E001B+%1F09013%3A26-09-11%1Ft15%3A59%3A48.000%1E001D+%1F09013%3A26-09-11%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Tp6%1E003@+%1F0174129386%1E003U+%1Fahttp%3A//d-nb.info/gnd/174129386%1E004B+%1Fapiz%1E007K+%1Fagnd%1F0174129386%1E007N+%1Fapnd%1F0174129386%1Fvzg%1E008A+%1Faf%1E028@+%1FdWilhelmus%1Fcde%1FaPechmann%1E028A+%1FdWilhelm%1Fcvon%1FaPechmann%1E042@+%1F0NN%1Fchbz-per_indiv_20110920%1Fd219778%1Fe2011-09-26%1E047A/03+%1FeDE-605%1E047A/03+%1FrDE-605%1E047C+%1FSpnd%1Fia%1FaPechmann%2C+Wilhelm+/von%1F0174129386%1E050C+%1Famaschinell+eingespielte+Altdaten%1E050G+%1Fb1.2%3A+%22Ex+libris+Wilhelmi+Liberi+Baronis+de+Pechmann%22%1E%0A001A+%1F09013%3A26-09-11%1E001B+%1F09999%3A31-07-13%1Ft01%3A16%3A49.000%1E001D+%1F09013%3A26-09-11%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Tp6%1E003@+%1F0174168926%1E007K+%1Fagnd%1F0174168926%1E008@+%1Fazu%1E039I+%1F9174039441%1F7Tp3%1FVpiz%1FAgnd%1F0174039441%1FaMolisch%1FdHans%1E%0A001A+%1F00012%3A30-04-97%1E001B+%1F09999%3A05-04-08%1Ft22%3A04%3A47.000%1E001D+%1F09999%3A05-04-08%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Tp1%1E003@+%1F0104379642%1E003U+%1Fahttp%3A//d-nb.info/gnd/104379642%1E004B+%1Fapiz%1E007K+%1Fagnd%1F0104379642%1E007N+%1Fapnd%1F0104379642%1Fvzg%1E008A+%1Faa%1Faf%1E028A+%1FdAndre%CC%81%1FaBaiole%1E042B+%1FaXA-FR%1E047A/03+%1FeDE-12%1E047A/03+%1FrDE-12%1E047C+%1FSpnd%1Fia%1FaBaiole%2C+Andre%CC%81%1F0104379642%1E050C+%1FaHBZ%1E050E+%1FaBN%1E050G+%1FbFranz.+Theologe%1E060R+%1Fcum+1649%1F4datl%1E%0A001A+%1F00103%3A31-07-96%1E001B+%1F07777%3A30-07-13%1Ft11%3A05%3A32.000%1E001D+%1F09999%3A05-04-08%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Tp1%1E003@+%1F0117305553%1E003U+%1Fahttp%3A//d-nb.info/gnd/117305553%1E004B+%1Fapiz%1E007K+%1Fagnd%1F0117305553%1E007N+%1Fapnd%1F0117305553%1Fvzg%1E008A+%1Faz%1E008B+%1Fak%1E028@+%1FdL...%1FaStrackerjan%1E028A+%1FdLudwig%1FaStrackerjan%1E032T+%1Fam%1E041R+%1F9040290506%1F7Ts1%1FVsaz%1FAgnd%1F04029050-5%1FaJurist%1F4berc%1E041R+%1F9040533093%1F7Ts1%1FVsaz%1FAgnd%1F04053309-8%1FaSchriftsteller%1F4beru%1E042B+%1FaXA-DE%1E047A/03+%1FeDE-611%1E047A/03+%1FrDE-611%1E047C+%1FSpnd%1Fia%1FaStrackerjan%2C+Ludwig%1F0117305553%1E050C+%1FaNDSBIO%1E060R+%1Fa1825%1Fb1881%1F4datl%1E%0A001A+%1F00255%3A08-01-02%1E001B+%1F09999%3A02-01-12%1Ft17%3A16%3A36.000%1E001D+%1F09999%3A06-04-08%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Tp1%1E003@+%1F0123464595%1E003U+%1Fahttp%3A//d-nb.info/gnd/123464595%1E004B+%1Fapiz%1E007K+%1Fagnd%1F0123464595%1E007N+%1Fapnd%1F0123464595%1Fvzg%1E007N+%1Faswd%1F04666643-6%1Fvzg%1E008A+%1Fas%1E028A+%1FdSiliano%1FaSimoncini%1E042A+%1Fa13.4p%1E042B+%1FaXA-IT%1E047A/03+%1FeDE-255%1E047A/03+%1FrDE-255%1E047C+%1FSpnd%1Fia%1FaSimoncini%2C+Siliano%1F0123464595%1E050E+%1FaInternet%1E050G+%1FbItal.+Maler%1E060R+%1Fa1941%1F4datl%1FvVorlage%1E%0A001A+%1F09999%3A23-01-02%1E001B+%1F09999%3A05-04-08%1Ft20%3A38%3A46.000%1E001D+%1F09999%3A05-04-08%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Tp6%1E003@+%1F0126744327%1E003U+%1Fahttp%3A//d-nb.info/gnd/126744327%1E004B+%1Fapiz%1E007K+%1Fagnd%1F0126744327%1E007N+%1Fapnd%1F0126744327%1Fvzg%1E008A+%1Faf%1E008B+%1Fav%1E028A+%1FdHermann%1FaMa%CC%88dler%1E046G+%1FaMehr+fu%CC%88r+Hamburg+-+weniger+fu%CC%88r+die+Ru%CC%88stung%1E047A/03+%1FeDE-101%1E047A/03+%1FrDE-101%1E047C+%1FSpnd%1Fia%1FaMa%CC%88dler%2C+Hermann%1F0126744327%1E050C+%1FaMaschinell+erzeugt+aus+DBL-Retro-Daten%3BMaschinell+verknuepft+mit+DBL-Retro-Titeldaten%1E060R+%1Fc1970%1F4datw%1E \ No newline at end of file diff --git a/resources/examples/Use Cases/Count_values_for_path b/resources/examples/Use Cases/Count_values_for_path new file mode 100644 index 0000000..e69de29 diff --git a/resources/examples/Use Cases/Enrich_pica_data_with_GND_via_wormhole b/resources/examples/Use Cases/Enrich_pica_data_with_GND_via_wormhole new file mode 100644 index 0000000..b15b7c8 --- /dev/null +++ b/resources/examples/Use Cases/Enrich_pica_data_with_GND_via_wormhole @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7C+open-file%0A%7C+as-lines%0A%7C+decode-pica%0A%7C+stream-to-triples%0A%7C+@X%3B%0A%0A%22https%3A//raw.githubusercontent.com/hbz/metafacture-flux-examples/master/sample6/wiki-persons.foma%22%0A%7C+open-http%0A%7C+as-lines%0A%7C+decode-formeta%0A%7C+fix%28transformationFile%29%0A%7C+stream-to-triples%28redirect%3D%22true%22%29%0A%7C+@X%3B%0A%0A@X%0A%7C+wait-for-inputs%28%222%22%29%0A%7C+sort-triples%28by%3D%22subject%22%29%0A%7C+collect-triples%0A%7C+encode-json%28prettyPrinting%3D%22true%22%29%0A%7C+print%3B%0A%0A%0A%0A%0A&transformation=copy_field%28%27gnd%27%2C+%27_id%27%29&data=001A+%1F01250%3A01-07-88%1E001B+%1F01140%3A26-07-13%1Ft08%3A58%3A08.000%1E001D+%1F01220%3A16-06-08%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Tp1%1E003@+%1F0118514768%1E003U+%1Fahttp%3A//d-nb.info/gnd/118514768%1Fzhttp%3A//d-nb.info/gnd/1022091077%1E004B+%1Fapip%1E007K+%1Fagnd%1F0118514768%1E007N+%1Fagnd%1F01022091077%1E007N+%1Fapnd%1F0118514768%1Fvzg%1E007N+%1Fapnd%1F0141399074%1E007N+%1Fapnd%1F0139089691%1E007N+%1Fapnd%1F0141300248%1E007N+%1Fapnd%1F0136949541%1E007N+%1Fapnd%1F0134336232%1E007N+%1Fapnd%1F012794544X%1E007N+%1Fapnd%1F012736630X%1E007N+%1Fapnd%1F012722811X%1E008A+%1Faf%1Fas%1Faz%1Fam%1Fah%1E008B+%1Fav%1Faw%1Fak%1Fam%1Fae%1Faz%1Fah%1E028@+%1FdBecton%1FaBre%CC%82cht%1E028@+%1FdBert%1FaBrecht%1E028@+%1FdBertol%CA%B9%1FaBrecht%1E028@+%1FdBerthold%1FaBrecht%1E028@+%1FdBertholt%1FaBrecht%1E028@+%1FdBertold%1FaBrecht%1E028@+%1FdB.%1FaBrecht%1E028@+%1FdEugen+Berthold+Friedrich%1FaBrecht%1FvGeburtsname%1E028@+%1Fd...%1FaBrecht%1E028@+%1Fd...%1FaBrecht-Eisler%1FvScheinbarer+Doppelname%1E028@+%1FdBertolt%1FaBecht%1E028@+%1FPBeituo%27erte-Bulaixite%1E028@+%1FdB.%1FaBerchito%1E028@+%1FdB.%1FaBrechtas%1E028@+%1FdBertolts%1FaBrechts%1E028@+%1FdBerd%1FaBrehd%1E028@+%1FdBertolt%1FaBreht%1E028@+%1FdBertolts%1FaBrehts%1E028@+%1FdBa%CC%84rt%CC%A3olt%CC%A3%1FaBrek%CC%A3ht%CC%A3%1E028@+%1FdBert%CC%A3olt%CC%A3%1FaBrekt%1E028@+%1FdBert%CC%A3o%CC%84lt%CC%A3%1FaBrekt%CC%A3%1E028@+%1FdBert%CC%A3o%CC%82lt%CC%A3%1FaBrek%CC%A3t%CC%A3%1E028@+%1FdBert%CC%A3alt%CC%A3a%1FaBres%CC%81t%CC%A3%1E028@+%1FdBart%CC%A3olt%CC%A3a%1FaBres%CC%A3t%CC%A3a%1E028@+%1FdBartu%CC%84lt%1FaBris%CC%8Ct%1E028@+%1FdBirtu%CC%84ld%1FaBris%CC%8Ct%1E028@+%1FdBirtult%1FaBris%CC%8Ct%1E028@+%1FdBerutorutu%1FaBuchito%1E028@+%1FdBeituo%27erte%1FaBulaixite%1E028@+%1Fd...%1FaBulaixite%1E028@+%1FdBerutoruto%1FaBurehito%1E028@+%1Fd...%1FaBurehito%1E028@+%1FPB.+B.%1E028@+%1FdBerthold%1FaLarsen%1F4pseu%1E028@+%1FdMpertolt%1FaMprecht%1E028@+%1Fd...%1FaMprecht%1E028@+%1FdPeit%27oc%CC%82rht%27e%CC%82%1FaPulaihsit%27e%CC%82%1E028@+%1Fd...%1FaPulaihsit%27e%CC%82%1E028@+%1FdPeo%CC%86t%27olt%27u%CC%86%1FaPu%CC%86rehit%27u%CC%86%1E028@+%1FdBeo%CC%86t%27olt%27u%CC%86%1FaBu%CC%86rehit%27u%CC%86%1E028@+%1FT01%1FUArab%1FP%D8%A8%D8%B1%D8%B4%D8%AA%D8%8C+%D8%A8%D8%B1%D8%AA%D9%88%D9%84%D8%AF%1F5DE-576%1E028@+%1FT01%1FUKore%1Fd%E1%84%87%E1%85%A6%E1%84%85%E1%85%B3%E1%84%90%E1%85%A9%E1%86%AF%E1%84%90%E1%85%B3%1Fa%E1%84%87%E1%85%B3%E1%84%85%E1%85%A6%E1%84%92%E1%85%B5%E1%84%90%E1%85%B3%1F5DE-576%1E028@+%1FT01%1FUHebr%1Fd%D7%91%D7%A8%D7%98%D7%95%D7%9C%D7%98%1Fa%D7%91%D7%A8%D7%9B%D7%98%1F5DE-576%1E028@+%1FT01%1FUHans%1FP%E8%B4%9D%C2%B7%E5%B8%83%E8%8E%B1%E5%B8%8C%E7%89%B9%1F5DE-576%1E028@+%1FT01%1FUHans%1Fd%E8%B4%9D%1Fa%E5%B8%83%E8%8E%B1%E5%B8%8C%E7%89%B9%1F5DE-576%1E028@+%1FT01%1FUJpan%1Fd%E3%83%98%E3%82%99%E3%83%AB%E3%83%88%E3%83%AB%E3%83%88%1Fa%E3%83%95%E3%82%99%E3%83%AC%E3%83%92%E3%83%88%1F5DE-576%1E028A+%1FdBertolt%1FaBrecht%1E028P+%1FdBertolt%1FaBrecht%1Fv1898-1956%1E028P+%1FT01%1FUHant%1FP%E5%B8%83%E8%90%8A%E5%B8%8C%E7%89%B9%1F5DE-603%1E028R+%1F9121608557%1F7Tp1%1FVpiz%1FAgnd%1F0121608557%1FE1869%1FB1939%1FaBrecht%1FdBerthold+Friedrich%1F4bezf%1FvVater%1E028R+%1F9119056011%1F7Tp1%1FVpiz%1FAgnd%1F0119056011%1FE1901%1FaBanholzer%1FdPaula%1F4bezf%1FvFru%CC%88he+Geliebte%1E028R+%1F9118738348%1F7Tp1%1FVpiz%1FAgnd%1F0118738348%1FE1900%1FB1942%1FaNeher%1FdCarola%1F4bezf%1FvFru%CC%88he+Geliebte%1E028R+%1F9137070411%1F7Tp1%1FVpiz%1FAgnd%1F0137070411%1FE1919%1FB1943%1FaBanholzer%1FdFrank%1F4bezf%1FvUnehelicher+Sohn%1E028R+%1F9118809849%1F7Tp1%1FVpiz%1FAgnd%1F0118809849%1FE1906%1FB1974%1FaBerlau%1FdRuth%1F4bezf%1FvLangja%CC%88hrige+Geliebte%1E028R+%1F9119027615%1F7Tp1%1FVpiz%1FAgnd%1F0119027615%1FE1908%1FB1941%1FaSteffin%1FdMargarete%1F4bezf%1FvGeliebte%1E028R+%1F9118940163%1F7Tp1%1FVpiz%1FAgnd%1F0118940163%1FE1893%1FB1984%1FaZoff%1FdMarianne%1F4bezf%1Fv1.+Ehefrau%1E028R+%1F9118630091%1F7Tp1%1FVpiz%1FAgnd%1F0118630091%1FE1900%1FB1971%1FaWeigel%1FdHelene%1F4bezf%1Fv2.+Ehefrau%1E028R+%1F9123783283%1F7Tp1%1FVpiz%1FAgnd%1F0123783283%1FE1926%1FB2012%1FaReichel%1FdKa%CC%88the%1F4bezf%1FvSpa%CC%88te+Geliebte%1E028R+%1F9118940155%1F7Tp1%1FVpiz%1FAgnd%1F0118940155%1FE1923%1FB2009%1FaHiob%1FdHanne%1F4bezf%1FvTochter%1E028R+%1F9110005449%1F7Tp1%1FVpiz%1FAgnd%1F0110005449%1FE1924%1FB2009%1FaBrecht%1FdStefan%1F4bezf%1FvSohn%1E028R+%1F913612495X%1F7Tp1%1FVpiz%1FAgnd%1F013612495X%1FE1930%1FaBrecht-Schall%1FdBarbara%1F4bezf%1FvTochter%1E028R+%1F9123757398%1F7Tp1%1FVpiz%1FAgnd%1F0123757398%1FE1930%1FB2005%1FaSchall%1FdEkkehard%1F4bezf%1FvSchwiegersohn%1E028R+%1F91030496250%1F7Tp1%1FVpiz%1FAgnd%1F01030496250%1FE1842%1FB1922%1FaBrezing%1FdJoseph+Friedrich%1F4bezf%1FvGro%C3%9Fvater%1E028R+%1F91030496366%1F7Tp1%1FVpiz%1FAgnd%1F01030496366%1FE1838%1FB1916%1FaBrezing%1FdFriederike%1F4bezf%1FvGro%C3%9Fmutter%1E032T+%1Fam%1E041R+%1F9040533093%1F7Ts1%1FVsaz%1FAgnd%1F04053309-8%1FaSchriftsteller%1F4berc%1E041R+%1F904185053X%1F7Ts1%1FVsaz%1FAgnd%1F04185053-1%1FaTheaterregisseur%1F4beru%1E041R+%1F9041402413%1F7Ts1%1FVsaz%1FAgnd%1F04140241-8%1FaDramatiker%1F4beru%1E041R+%1F9040521540%1F7Ts1%1FAgnd%1F04052154-0%1FaSchauspieler%1F4beru%1E041R+%1F9041683919%1F7Ts1%1FAgnd%1F04168391-2%1FaLyriker%1F4beru%1E041R+%1Fas%1F4funk%1E041R+%1Fai%1F4funk%1E041R+%1FaSprechst.%1F4istr%1E041R+%1FaGsg.%1F4funk%1E041R+%1FaText%1F4funk%1E042A+%1Fa12.2p%1Fa15.1p%1E042B+%1FaXA-DE%1E042C+%1Fager%1E047A/03+%1FeDE-101%1E047A/03+%1FrDE-101%1E047C+%1FSpnd%1Fia%1FaBrecht%2C+Bertolt%1F0118514768%1E050C+%1Fa7%1E050C+%1Fa12%1E050C+%1FaLABI-BW-WLB%1E050E+%1FaLCAuth%1E050E+%1FaB+1986%1E050E+%1FaBiogr.+H+Emigr.%1E050E+%1FaLandesbibliographie%1E050E+%1FaArchiv+der+American+Guild+for+German+Cultural+Freedom%2C+New+York+im+Deutschen+Exilarchiv+1933+%E2%80%93+1945%1E060R+%1Fa1898%1Fb1956%1F4datl%1E060R+%1Fa10.02.1898%1Fb14.08.1956%1F4datx%1E065R+%1F9040036146%1F7Tg1%1FVgik%1FAgnd%1F04003614-5%1FaAugsburg%1F4ortg%1E065R+%1F9040057283%1F7Tg1%1FVgik%1FAgnd%1F04005728-8%1FaBerlin%1F4orts%1E065R+%1F9040108775%1F7Tg1%1FVgik%1FAgnd%1F04010877-6%1FaDa%CC%88nemark%1F4ortx%1FZ1938%1E065R+%1F9040772586%1F7Tg1%1FVgik%1FAgnd%1F04077258-5%1FaSchweden%1F4ortx%1FZ1939%1E \ No newline at end of file diff --git a/resources/examples/Use Cases/List_incoming_paths b/resources/examples/Use Cases/List_incoming_paths new file mode 100644 index 0000000..d4784c7 --- /dev/null +++ b/resources/examples/Use Cases/List_incoming_paths @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7C+open-file%0A%7C+as-lines%0A%7C+decode-pica%0A%7C+list-fix-paths%28count%3D%22false%22%29%0A%7C+print%3B&data=001@+%1Fa5%1F01-2%1E001A+%1F01100%3A15-10-94%1E001B+%1F09999%3A12-06-06%1Ft16%3A10%3A17.000%1E001D+%1F09999%3A99-99-99%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Aag%1E003@+%1F0482147350%1E006U+%1F094%2CP05%1E007E+%1F0U+70.16407%1E007I+%1FSo%1F074057548%1E011@+%1Fa1970%1E017A+%1Farh%1E021A+%1FaDie+@Berufsfreiheit+der+Arbeitnehmer+und+ihre+Ausgestaltung+in+vo%CC%88lkerrechtlichen+Vertra%CC%88gen%1FdEine+Grundrechtsbetrachtg%1E028A+%1F9106884905%1F7Tn3%1FAgnd%1F0106884905%1FaProjahn%1FdHorst+D.%1E033A+%1FpWu%CC%88rzburg%1E034D+%1FaXXXVIII%2C+165+S.%1E034I+%1Fa8%1E037C+%1FaWu%CC%88rzburg%2C+Jur.+F.%2C+Diss.+v.+7.+Aug.+1970%1E%0A001@+%1F01%1Fa5%1E001A+%1F01140%3A08-12-99%1E001B+%1F09999%3A05-01-08%1Ft22%3A57%3A29.000%1E001D+%1F09999%3A99-99-99%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Aa%1E003@+%1F0958090564%1E004A+%1Ffkart.+%3A+DM+9.70%2C+EUR+4.94%2C+sfr+8.00%2C+S+68.00%1E006U+%1F000%2CB05%2C0285%1E007I+%1FSo%1F076088278%1E011@+%1Fa1999%1E017A+%1Farb%1Fasi%1E019@+%1FaXA-AT%1E021A+%1FaZukunft+Bildung%1FhPolitische+Akademie.+%5BHrsg.+von+Gu%CC%88nther+R.+Burkert-Dottolo+und+Bernhard+Moser%5D%1E028C+%1F9130681849%1F7Tp1%1FVpiz%1FAgnd%1F0130681849%1FE1952%1FaBurkert%1FdGu%CC%88nther+R.%1FBHrsg.%1E033A+%1FpWien%1FnPolit.+Akad.%1E034D+%1Fa79+S.%1E034I+%1Fa24+cm%1E036F+%1Fx299+12%1F9551720077%1FgAdn%1F7Tb1%1FAgnd%1F01040469-7%1FaPolitische+Akademie%1FgWien%1FYPA-Information%1FhPolitische+Akademie%2C+WB%1FpWien%1FJPolitische+Akad.%2C+WB%1Fl99%2C2%1E036F/01+%1Fx12%1F9025841467%1FgAdvz%1Fi2142105-5%1FYAktuelle+Fragen+der+Politik%1FhPolitische+Akademie%1FpWien%1FJPolitische+Akad.+der+O%CC%88VP%1FlBd.+2%1E045E+%1Fa22%1Fd18%1Fm370%1E047A+%1FSFE%1Fata%1E%0A001@+%1Fa5%1F01%1E001A+%1F01140%3A19-02-03%1E001B+%1F09999%3A19-06-11%1Ft01%3A20%3A13.000%1E001D+%1F09999%3A26-04-03%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Aal%1E003@+%1F0361809549%1E004A+%1FfHlw.%1E006U+%1F000%2CL01%1E006U+%1F004%2CP01-s-41%1E006U+%1F004%2CP01-f-21%1E007G+%1FaDNB%1F0361809549%1E007I+%1FSo%1F072658383%1E007M+%1F04413/0275%1E011@+%1Fa1925%1E019@+%1FaXA-DXDE%1FaXA-DE%1E021A+%1FaHundert+Jahre+Buchdrucker-Innung+Hamburg%1FdWesen+u.+Werden+d.+Vereinigungen+Hamburger+Buchdruckereibesitzer+1825-1925+%3B+Gedenkschrift+zur+100.+Wiederkehr+d.+Gru%CC%88ndungstages%2C+verf.+im+Auftr.+d.+Vorstandes+d.+Buchdrucker-Innung+%28Freie+Innung%29+zu+Hamburg%1FhFriedrich+Voeltzer%1E028A+%1F9101386281%1F7Tp1%1FVpiz%1FAgnd%1F0101386281%1FE1895%1FaVo%CC%88ltzer%1FdFriedrich%1E033A+%1FpHamburg%1FnBuchdrucker-Innung+%28Freie+Innung%29%1E033A+%1FpHamburg%1Fn%5BVerlagsbuchh.+Broschek+%26+Co.%5D%1E034D+%1Fa44+S.%1E034I+%1Fa4%1E%0A001@+%1Fa5%1F01-3%1E001A+%1F01240%3A01-08-95%1E001B+%1F09999%3A24-09-10%1Ft17%3A42%3A20.000%1E001D+%1F09999%3A99-99-99%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Af%1E003@+%1F0945184085%1E004A+%1F03-89007-044-2%1FfGewebe+%3A+DM+198.00%2C+sfr+198.00%2C+S+1386.00%1E006T+%1F095%2CN35%2C0856%1E006U+%1F095%2CA48%2C1186%1E006U+%1F010%2CP01%1E007I+%1FSo%1F061975997%1E011@+%1Fa1995%1E017A+%1Fara%1E021A+%1Fx213%1F9550711899%1FYNeues+Handbuch+der+Musikwissenschaft%1Fhhrsg.+von+Carl+Dahlhaus.+Fortgef.+von+Hermann+Danuser%1FpLaaber%1FJLaaber-Verl.%1FS48%1F03-89007-030-2%1FgAc%1E021B+%1FlBd.+13.%1FaRegister%1Fhzsgest.+von+Hans-Joachim+Hinrichsen%1E028C+%1F9121445453%1F7Tp3%1FVpiz%1FAgnd%1F0121445453%1FE1952%1FaHinrichsen%1FdHans-Joachim%1E034D+%1FaVIII%2C+408+S.%1E045V+%1F9090001001%1E047A+%1FSFE%1Fagb/fm%1E%0A001@+%1F01-2%1Fa5%1E001A+%1F01239%3A18-08-11%1E001B+%1F09999%3A05-09-11%1Ft23%3A31%3A44.000%1E001D+%1F01240%3A30-08-11%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Af%1E003@+%1F01014417392%1E004A+%1Ffkart.%1E006U+%1F011%2CA37%1E007G+%1FaDNB%1F01014417392%1E007I+%1FSo%1F0752937239%1E010@+%1Fager%1E011@+%1Fa2011%1E017A+%1Fara%1Fasf%1E021A+%1Fxtr%1F91014809657%1F7Tp3%1FVpiz%1FAgnd%1F01034622773%1FE1958%1FaLu%CC%88beck%1FdMonika%1FYPersonalwirtschaft+mit+DATEV%1FhMonika+Lu%CC%88beck+%3B+Helmut+Lu%CC%88beck%1FpBodenheim%1FpWien%1FJHerdt%1FRXA-DE%1FS650%1FgAc%1E021B+%1FlTrainerbd.%1E032@+%1Fg11%1Fa1.+Ausg.%1E034D+%1Fa129+S.%1E034M+%1FaIll.%1E047A+%1FSFE%1Famar%1E047A+%1FSERW%1Fasal%1E047I+%1Fu%24%1Fc04%1FdDNB%1Fe1%1E \ No newline at end of file diff --git a/resources/examples/Use Cases/PICA_to_JSON b/resources/examples/Use Cases/PICA_to_JSON new file mode 100644 index 0000000..82228c9 --- /dev/null +++ b/resources/examples/Use Cases/PICA_to_JSON @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7C+open-file%0A%7C+as-lines%0A%7C+decode-pica%0A%7C+fix%28transformationFile%29%0A%7C+encode-json%28prettyPrinting%3D%22true%22%29%0A%7C+print%3B&transformation=move_field%28%27021A.a%27%2C+%27Title%27%29%0Amove_field%28%27011@.a%27%2C+Year%29%0Apaste%28%27Publisher%27%2C+%27033A.n%27%2C+%27~%3A+%27%2C+%27033A.p%27%29%0Aretain%28Title%2C+Year%2C+Publisher%29&data=001@+%1Fa5%1F01-2%1E001A+%1F01100%3A15-10-94%1E001B+%1F09999%3A12-06-06%1Ft16%3A10%3A17.000%1E001D+%1F09999%3A99-99-99%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Aag%1E003@+%1F0482147350%1E006U+%1F094%2CP05%1E007E+%1F0U+70.16407%1E007I+%1FSo%1F074057548%1E011@+%1Fa1970%1E017A+%1Farh%1E021A+%1FaDie+@Berufsfreiheit+der+Arbeitnehmer+und+ihre+Ausgestaltung+in+vo%CC%88lkerrechtlichen+Vertra%CC%88gen%1FdEine+Grundrechtsbetrachtg%1E028A+%1F9106884905%1F7Tn3%1FAgnd%1F0106884905%1FaProjahn%1FdHorst+D.%1E033A+%1FpWu%CC%88rzburg%1E034D+%1FaXXXVIII%2C+165+S.%1E034I+%1Fa8%1E037C+%1FaWu%CC%88rzburg%2C+Jur.+F.%2C+Diss.+v.+7.+Aug.+1970%1E%0A001@+%1F01%1Fa5%1E001A+%1F01140%3A08-12-99%1E001B+%1F09999%3A05-01-08%1Ft22%3A57%3A29.000%1E001D+%1F09999%3A99-99-99%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Aa%1E003@+%1F0958090564%1E004A+%1Ffkart.+%3A+DM+9.70%2C+EUR+4.94%2C+sfr+8.00%2C+S+68.00%1E006U+%1F000%2CB05%2C0285%1E007I+%1FSo%1F076088278%1E011@+%1Fa1999%1E017A+%1Farb%1Fasi%1E019@+%1FaXA-AT%1E021A+%1FaZukunft+Bildung%1FhPolitische+Akademie.+%5BHrsg.+von+Gu%CC%88nther+R.+Burkert-Dottolo+und+Bernhard+Moser%5D%1E028C+%1F9130681849%1F7Tp1%1FVpiz%1FAgnd%1F0130681849%1FE1952%1FaBurkert%1FdGu%CC%88nther+R.%1FBHrsg.%1E033A+%1FpWien%1FnPolit.+Akad.%1E034D+%1Fa79+S.%1E034I+%1Fa24+cm%1E036F+%1Fx299+12%1F9551720077%1FgAdn%1F7Tb1%1FAgnd%1F01040469-7%1FaPolitische+Akademie%1FgWien%1FYPA-Information%1FhPolitische+Akademie%2C+WB%1FpWien%1FJPolitische+Akad.%2C+WB%1Fl99%2C2%1E036F/01+%1Fx12%1F9025841467%1FgAdvz%1Fi2142105-5%1FYAktuelle+Fragen+der+Politik%1FhPolitische+Akademie%1FpWien%1FJPolitische+Akad.+der+O%CC%88VP%1FlBd.+2%1E045E+%1Fa22%1Fd18%1Fm370%1E047A+%1FSFE%1Fata%1E%0A001@+%1Fa5%1F01%1E001A+%1F01140%3A19-02-03%1E001B+%1F09999%3A19-06-11%1Ft01%3A20%3A13.000%1E001D+%1F09999%3A26-04-03%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Aal%1E003@+%1F0361809549%1E004A+%1FfHlw.%1E006U+%1F000%2CL01%1E006U+%1F004%2CP01-s-41%1E006U+%1F004%2CP01-f-21%1E007G+%1FaDNB%1F0361809549%1E007I+%1FSo%1F072658383%1E007M+%1F04413/0275%1E011@+%1Fa1925%1E019@+%1FaXA-DXDE%1FaXA-DE%1E021A+%1FaHundert+Jahre+Buchdrucker-Innung+Hamburg%1FdWesen+u.+Werden+d.+Vereinigungen+Hamburger+Buchdruckereibesitzer+1825-1925+%3B+Gedenkschrift+zur+100.+Wiederkehr+d.+Gru%CC%88ndungstages%2C+verf.+im+Auftr.+d.+Vorstandes+d.+Buchdrucker-Innung+%28Freie+Innung%29+zu+Hamburg%1FhFriedrich+Voeltzer%1E028A+%1F9101386281%1F7Tp1%1FVpiz%1FAgnd%1F0101386281%1FE1895%1FaVo%CC%88ltzer%1FdFriedrich%1E033A+%1FpHamburg%1FnBuchdrucker-Innung+%28Freie+Innung%29%1E033A+%1FpHamburg%1Fn%5BVerlagsbuchh.+Broschek+%26+Co.%5D%1E034D+%1Fa44+S.%1E034I+%1Fa4%1E%0A001@+%1Fa5%1F01-3%1E001A+%1F01240%3A01-08-95%1E001B+%1F09999%3A24-09-10%1Ft17%3A42%3A20.000%1E001D+%1F09999%3A99-99-99%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Af%1E003@+%1F0945184085%1E004A+%1F03-89007-044-2%1FfGewebe+%3A+DM+198.00%2C+sfr+198.00%2C+S+1386.00%1E006T+%1F095%2CN35%2C0856%1E006U+%1F095%2CA48%2C1186%1E006U+%1F010%2CP01%1E007I+%1FSo%1F061975997%1E011@+%1Fa1995%1E017A+%1Fara%1E021A+%1Fx213%1F9550711899%1FYNeues+Handbuch+der+Musikwissenschaft%1Fhhrsg.+von+Carl+Dahlhaus.+Fortgef.+von+Hermann+Danuser%1FpLaaber%1FJLaaber-Verl.%1FS48%1F03-89007-030-2%1FgAc%1E021B+%1FlBd.+13.%1FaRegister%1Fhzsgest.+von+Hans-Joachim+Hinrichsen%1E028C+%1F9121445453%1F7Tp3%1FVpiz%1FAgnd%1F0121445453%1FE1952%1FaHinrichsen%1FdHans-Joachim%1E034D+%1FaVIII%2C+408+S.%1E045V+%1F9090001001%1E047A+%1FSFE%1Fagb/fm%1E%0A001@+%1F01-2%1Fa5%1E001A+%1F01239%3A18-08-11%1E001B+%1F09999%3A05-09-11%1Ft23%3A31%3A44.000%1E001D+%1F01240%3A30-08-11%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Af%1E003@+%1F01014417392%1E004A+%1Ffkart.%1E006U+%1F011%2CA37%1E007G+%1FaDNB%1F01014417392%1E007I+%1FSo%1F0752937239%1E010@+%1Fager%1E011@+%1Fa2011%1E017A+%1Fara%1Fasf%1E021A+%1Fxtr%1F91014809657%1F7Tp3%1FVpiz%1FAgnd%1F01034622773%1FE1958%1FaLu%CC%88beck%1FdMonika%1FYPersonalwirtschaft+mit+DATEV%1FhMonika+Lu%CC%88beck+%3B+Helmut+Lu%CC%88beck%1FpBodenheim%1FpWien%1FJHerdt%1FRXA-DE%1FS650%1FgAc%1E021B+%1FlTrainerbd.%1E032@+%1Fg11%1Fa1.+Ausg.%1E034D+%1Fa129+S.%1E034M+%1FaIll.%1E047A+%1FSFE%1Famar%1E047A+%1FSERW%1Fasal%1E047I+%1Fu%24%1Fc04%1FdDNB%1Fe1%1E \ No newline at end of file diff --git a/resources/examples/Use Cases/Simple_Lookup b/resources/examples/Use Cases/Simple_Lookup new file mode 100644 index 0000000..6564af3 --- /dev/null +++ b/resources/examples/Use Cases/Simple_Lookup @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7C+open-file%0A%7C+as-lines%0A%7C+decode-pica%0A%7C+fix%28transformationFile%29%0A%7C+encode-json%28prettyPrinting%3D%22true%22%29%0A%7C+print%3B&transformation=copy_field%28%27002@.0%27%2C+%27dcterms%3Aformat%27%29%0Asubstring%28%27dcterms%3Aformat%27%2C+%270%27%2C+%271%27%29%0Alookup%28%27dcterms%3Aformat%27%2C+A%3A+print%2C+B%3A+audiovisual%2C+O%3A+online%29%0Aretain%28%27002@%27%2C+%27dcterms%3Aformat%27%29&data=001@+%1Fa5%1F01-2%1E001A+%1F01100%3A15-10-94%1E001B+%1F09999%3A12-06-06%1Ft16%3A10%3A17.000%1E001D+%1F09999%3A99-99-99%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Aag%1E003@+%1F0482147350%1E006U+%1F094%2CP05%1E007E+%1F0U+70.16407%1E007I+%1FSo%1F074057548%1E011@+%1Fa1970%1E017A+%1Farh%1E021A+%1FaDie+@Berufsfreiheit+der+Arbeitnehmer+und+ihre+Ausgestaltung+in+vo%CC%88lkerrechtlichen+Vertra%CC%88gen%1FdEine+Grundrechtsbetrachtg%1E028A+%1F9106884905%1F7Tn3%1FAgnd%1F0106884905%1FaProjahn%1FdHorst+D.%1E033A+%1FpWu%CC%88rzburg%1E034D+%1FaXXXVIII%2C+165+S.%1E034I+%1Fa8%1E037C+%1FaWu%CC%88rzburg%2C+Jur.+F.%2C+Diss.+v.+7.+Aug.+1970%1E%0A001@+%1F01%1Fa5%1E001A+%1F01140%3A08-12-99%1E001B+%1F09999%3A05-01-08%1Ft22%3A57%3A29.000%1E001D+%1F09999%3A99-99-99%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Aa%1E003@+%1F0958090564%1E004A+%1Ffkart.+%3A+DM+9.70%2C+EUR+4.94%2C+sfr+8.00%2C+S+68.00%1E006U+%1F000%2CB05%2C0285%1E007I+%1FSo%1F076088278%1E011@+%1Fa1999%1E017A+%1Farb%1Fasi%1E019@+%1FaXA-AT%1E021A+%1FaZukunft+Bildung%1FhPolitische+Akademie.+%5BHrsg.+von+Gu%CC%88nther+R.+Burkert-Dottolo+und+Bernhard+Moser%5D%1E028C+%1F9130681849%1F7Tp1%1FVpiz%1FAgnd%1F0130681849%1FE1952%1FaBurkert%1FdGu%CC%88nther+R.%1FBHrsg.%1E033A+%1FpWien%1FnPolit.+Akad.%1E034D+%1Fa79+S.%1E034I+%1Fa24+cm%1E036F+%1Fx299+12%1F9551720077%1FgAdn%1F7Tb1%1FAgnd%1F01040469-7%1FaPolitische+Akademie%1FgWien%1FYPA-Information%1FhPolitische+Akademie%2C+WB%1FpWien%1FJPolitische+Akad.%2C+WB%1Fl99%2C2%1E036F/01+%1Fx12%1F9025841467%1FgAdvz%1Fi2142105-5%1FYAktuelle+Fragen+der+Politik%1FhPolitische+Akademie%1FpWien%1FJPolitische+Akad.+der+O%CC%88VP%1FlBd.+2%1E045E+%1Fa22%1Fd18%1Fm370%1E047A+%1FSFE%1Fata%1E%0A001@+%1Fa5%1F01%1E001A+%1F01140%3A19-02-03%1E001B+%1F09999%3A19-06-11%1Ft01%3A20%3A13.000%1E001D+%1F09999%3A26-04-03%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Aal%1E003@+%1F0361809549%1E004A+%1FfHlw.%1E006U+%1F000%2CL01%1E006U+%1F004%2CP01-s-41%1E006U+%1F004%2CP01-f-21%1E007G+%1FaDNB%1F0361809549%1E007I+%1FSo%1F072658383%1E007M+%1F04413/0275%1E011@+%1Fa1925%1E019@+%1FaXA-DXDE%1FaXA-DE%1E021A+%1FaHundert+Jahre+Buchdrucker-Innung+Hamburg%1FdWesen+u.+Werden+d.+Vereinigungen+Hamburger+Buchdruckereibesitzer+1825-1925+%3B+Gedenkschrift+zur+100.+Wiederkehr+d.+Gru%CC%88ndungstages%2C+verf.+im+Auftr.+d.+Vorstandes+d.+Buchdrucker-Innung+%28Freie+Innung%29+zu+Hamburg%1FhFriedrich+Voeltzer%1E028A+%1F9101386281%1F7Tp1%1FVpiz%1FAgnd%1F0101386281%1FE1895%1FaVo%CC%88ltzer%1FdFriedrich%1E033A+%1FpHamburg%1FnBuchdrucker-Innung+%28Freie+Innung%29%1E033A+%1FpHamburg%1Fn%5BVerlagsbuchh.+Broschek+%26+Co.%5D%1E034D+%1Fa44+S.%1E034I+%1Fa4%1E%0A001@+%1Fa5%1F01-3%1E001A+%1F01240%3A01-08-95%1E001B+%1F09999%3A24-09-10%1Ft17%3A42%3A20.000%1E001D+%1F09999%3A99-99-99%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Af%1E003@+%1F0945184085%1E004A+%1F03-89007-044-2%1FfGewebe+%3A+DM+198.00%2C+sfr+198.00%2C+S+1386.00%1E006T+%1F095%2CN35%2C0856%1E006U+%1F095%2CA48%2C1186%1E006U+%1F010%2CP01%1E007I+%1FSo%1F061975997%1E011@+%1Fa1995%1E017A+%1Fara%1E021A+%1Fx213%1F9550711899%1FYNeues+Handbuch+der+Musikwissenschaft%1Fhhrsg.+von+Carl+Dahlhaus.+Fortgef.+von+Hermann+Danuser%1FpLaaber%1FJLaaber-Verl.%1FS48%1F03-89007-030-2%1FgAc%1E021B+%1FlBd.+13.%1FaRegister%1Fhzsgest.+von+Hans-Joachim+Hinrichsen%1E028C+%1F9121445453%1F7Tp3%1FVpiz%1FAgnd%1F0121445453%1FE1952%1FaHinrichsen%1FdHans-Joachim%1E034D+%1FaVIII%2C+408+S.%1E045V+%1F9090001001%1E047A+%1FSFE%1Fagb/fm%1E%0A001@+%1F01-2%1Fa5%1E001A+%1F01239%3A18-08-11%1E001B+%1F09999%3A05-09-11%1Ft23%3A31%3A44.000%1E001D+%1F01240%3A30-08-11%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Af%1E003@+%1F01014417392%1E004A+%1Ffkart.%1E006U+%1F011%2CA37%1E007G+%1FaDNB%1F01014417392%1E007I+%1FSo%1F0752937239%1E010@+%1Fager%1E011@+%1Fa2011%1E017A+%1Fara%1Fasf%1E021A+%1Fxtr%1F91014809657%1F7Tp3%1FVpiz%1FAgnd%1F01034622773%1FE1958%1FaLu%CC%88beck%1FdMonika%1FYPersonalwirtschaft+mit+DATEV%1FhMonika+Lu%CC%88beck+%3B+Helmut+Lu%CC%88beck%1FpBodenheim%1FpWien%1FJHerdt%1FRXA-DE%1FS650%1FgAc%1E021B+%1FlTrainerbd.%1E032@+%1Fg11%1Fa1.+Ausg.%1E034D+%1Fa129+S.%1E034M+%1FaIll.%1E047A+%1FSFE%1Famar%1E047A+%1FSERW%1Fasal%1E047I+%1Fu%24%1Fc04%1FdDNB%1Fe1%1E \ No newline at end of file From cef808ced18a5445b1bbede43dbb792b272feeb2 Mon Sep 17 00:00:00 2001 From: TobiasNx Date: Tue, 2 Jul 2024 16:33:02 +0200 Subject: [PATCH 3/6] Add a lot of fix function examples --- resources/examples/Fixes/all_contain | 1 + resources/examples/Fixes/all_equal | 1 + resources/examples/Fixes/all_match | 1 + resources/examples/Fixes/any_contain | 1 + resources/examples/Fixes/any_equal | 1 + resources/examples/Fixes/any_match | 1 + resources/examples/Fixes/array | 1 + resources/examples/Fixes/count | 1 + resources/examples/Fixes/do list_as | 1 + resources/examples/Fixes/exists | 1 + resources/examples/Fixes/hash | 1 + resources/examples/Fixes/if-elsif-else-conditionals | 1 + resources/examples/Fixes/in | 1 + resources/examples/Fixes/is_array | 1 + resources/examples/Fixes/is_empty | 1 + resources/examples/Fixes/is_false | 1 + resources/examples/Fixes/is_string | 1 + resources/examples/Fixes/is_true | 1 + resources/examples/Fixes/none_contain | 1 + resources/examples/Fixes/none_equal | 1 + resources/examples/Fixes/none_match | 1 + resources/examples/Fixes/parse_text | 1 + resources/examples/Fixes/random | 1 + resources/examples/Fixes/reverse | 1 + resources/examples/Fixes/set_hash | 1 + resources/examples/Fixes/str_contain | 1 + resources/examples/Fixes/str_equal | 1 + resources/examples/Fixes/str_match | 1 + resources/examples/Fixes/substring | 1 + resources/examples/Fixes/sum | 1 + resources/examples/Fixes/timestamp | 1 + resources/examples/Fixes/to_base64 | 1 + resources/examples/Fixes/to_json | 1 + resources/examples/Fixes/uri_encode | 1 + 34 files changed, 34 insertions(+) create mode 100644 resources/examples/Fixes/all_contain create mode 100644 resources/examples/Fixes/all_equal create mode 100644 resources/examples/Fixes/all_match create mode 100644 resources/examples/Fixes/any_contain create mode 100644 resources/examples/Fixes/any_equal create mode 100644 resources/examples/Fixes/any_match create mode 100644 resources/examples/Fixes/array create mode 100644 resources/examples/Fixes/count create mode 100644 resources/examples/Fixes/do list_as create mode 100644 resources/examples/Fixes/exists create mode 100644 resources/examples/Fixes/hash create mode 100644 resources/examples/Fixes/if-elsif-else-conditionals create mode 100644 resources/examples/Fixes/in create mode 100644 resources/examples/Fixes/is_array create mode 100644 resources/examples/Fixes/is_empty create mode 100644 resources/examples/Fixes/is_false create mode 100644 resources/examples/Fixes/is_string create mode 100644 resources/examples/Fixes/is_true create mode 100644 resources/examples/Fixes/none_contain create mode 100644 resources/examples/Fixes/none_equal create mode 100644 resources/examples/Fixes/none_match create mode 100644 resources/examples/Fixes/parse_text create mode 100644 resources/examples/Fixes/random create mode 100644 resources/examples/Fixes/reverse create mode 100644 resources/examples/Fixes/set_hash create mode 100644 resources/examples/Fixes/str_contain create mode 100644 resources/examples/Fixes/str_equal create mode 100644 resources/examples/Fixes/str_match create mode 100644 resources/examples/Fixes/substring create mode 100644 resources/examples/Fixes/sum create mode 100644 resources/examples/Fixes/timestamp create mode 100644 resources/examples/Fixes/to_base64 create mode 100644 resources/examples/Fixes/to_json create mode 100644 resources/examples/Fixes/uri_encode diff --git a/resources/examples/Fixes/all_contain b/resources/examples/Fixes/all_contain new file mode 100644 index 0000000..491b0ce --- /dev/null +++ b/resources/examples/Fixes/all_contain @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=if+all_contain%28%22animal%5B%5D%22%2C%22o%22%29%0A++add_field%28%22note%22%2C%22All+listed+animals+have+an+o%22%29%0Aelse%0A++add_field%28%22note%22%2C%22Not+all+listed+animals+have+an+o%22%29%0Aend%0A&data=%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22monkey%22%2C%22parrot%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22cat%22%2C%22bird%22%2C%22butterfly%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22human%22%2C+%22turkey%22%2C+%22bear%22%0A++%5D%0A%7D \ No newline at end of file diff --git a/resources/examples/Fixes/all_equal b/resources/examples/Fixes/all_equal new file mode 100644 index 0000000..356cabc --- /dev/null +++ b/resources/examples/Fixes/all_equal @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=if+all_equal%28%22animal%5B%5D%22%2C%22human%22%29%0A++add_field%28%22note%22%2C%22Only+humans%21%22%29%0Aelse%0A++add_field%28%22note%22%2C%22None+or+not+only+humans%21%22%29%0Aend&data=%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22cat%22%2C%22bird%22%2C%22human%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22human%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22cat%22%2C%22bird%22%2C%22butterfly%22%0A++%5D%0A%7D \ No newline at end of file diff --git a/resources/examples/Fixes/all_match b/resources/examples/Fixes/all_match new file mode 100644 index 0000000..3cb15f2 --- /dev/null +++ b/resources/examples/Fixes/all_match @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=if+all_match%28%22animal%5B%5D%22%2C%22.%2Ao.%2A%22%29%0A++add_field%28%22note%22%2C%22All+of+the+listed+matched+the+pattern%22%29%0Aelse%0A++add_field%28%22note%22%2C%22At+least+one+of+the+listed+did+not+match+the+pattern%22%29%0Aend%0A&data=%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22monkey%22%2C%22parrot%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22cat%22%2C%22bird%22%2C%22butterfly%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22human%22%2C+%22turkey%22%2C+%22bear%22%0A++%5D%0A%7D \ No newline at end of file diff --git a/resources/examples/Fixes/any_contain b/resources/examples/Fixes/any_contain new file mode 100644 index 0000000..282d4a5 --- /dev/null +++ b/resources/examples/Fixes/any_contain @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=if+any_contain%28%22animal%5B%5D%22%2C%22o%22%29%0A++add_field%28%22note%22%2C%22At+least+one+listed+animal+has+an+o%22%29%0Aelse%0A++add_field%28%22note%22%2C%22Not+one+of+the+listed+animals+has+an+o%22%29%0Aend%0A&data=%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22monkey%22%2C%22parrot%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22cat%22%2C%22bird%22%2C%22butterfly%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22human%22%2C+%22turkey%22%2C+%22bear%22%0A++%5D%0A%7D \ No newline at end of file diff --git a/resources/examples/Fixes/any_equal b/resources/examples/Fixes/any_equal new file mode 100644 index 0000000..3aea848 --- /dev/null +++ b/resources/examples/Fixes/any_equal @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=if+any_equal%28%22animal%5B%5D%22%2C%22human%22%29%0A++add_field%28%22note%22%2C%22At+least+one+human%21%22%29%0Aelse%0A++add_field%28%22note%22%2C%22No+humans%21%22%29%0Aend&data=%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22cat%22%2C%22bird%22%2C%22human%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22human%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22cat%22%2C%22bird%22%2C%22butterfly%22%0A++%5D%0A%7D \ No newline at end of file diff --git a/resources/examples/Fixes/any_match b/resources/examples/Fixes/any_match new file mode 100644 index 0000000..26b400b --- /dev/null +++ b/resources/examples/Fixes/any_match @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=if+any_match%28%22animal%5B%5D%22%2C%22.%2Ao.%2A%22%29%0A++add_field%28%22note%22%2C%22At+least+one+of+the+listed+matched+the+pattern%22%29%0Aelse%0A++add_field%28%22note%22%2C%22None+of+the+listed+did+match+the+pattern%22%29%0Aend%0A&data=%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22monkey%22%2C%22parrot%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22cat%22%2C%22bird%22%2C%22butterfly%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22human%22%2C+%22turkey%22%2C+%22bear%22%0A++%5D%0A%7D \ No newline at end of file diff --git a/resources/examples/Fixes/array b/resources/examples/Fixes/array new file mode 100644 index 0000000..c2046a1 --- /dev/null +++ b/resources/examples/Fixes/array @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Turns+all+keys+and+values+of+an+object+into+a+list/array%0Aarray%28%22example1%22%29%0Acopy_field%28%22example1%22%2C%22example2%5B%5D%22%29%0A&data=%7B%0A++%22example1%22+%3A+%7B%0A++++%22key%22+%3A+%22word%22%2C%0A++++%22test%22+%3A+%22case%22%0A++%7D%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/count b/resources/examples/Fixes/count new file mode 100644 index 0000000..0d3f97a --- /dev/null +++ b/resources/examples/Fixes/count @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Counts+array%0Acount%28%22keyword%5B%5D%22%29%0A&data=%7B%0A++%22keyword%22+%3A+%5B%0A++++%22I%22%2C%0A++++%22describe%22%2C%0A++++%22something%21%22%0A++%5D%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/do list_as b/resources/examples/Fixes/do list_as new file mode 100644 index 0000000..dc8b9bd --- /dev/null +++ b/resources/examples/Fixes/do list_as @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=%23+Iterates+over+different+arrays+and+one+can%0A%23+manipulate+the+same+index+pos+of+each+array%0A%23+at+the+same+time.%0A%0Ado+list_as%28aut%3A+%22author%5B%5D%22%2C+aff%3A+%22affiliation%5B%5D%22%29%0A++copy_field%28%22aff%22%2C%22aut.affiliation%22%29%0Aend%0A%0Aretain%28%22author%5B%5D%22%29&data=%7B%0A++%22author%22%3A+%5B%0A++++%7B%0A++++++%22name%22%3A+%22Test+Team%22%2C%0A++++++%22@type%22%3A+%22Organization%22%0A++++%7D%2C%0A++++%7B%0A++++++%22name%22%3A+%22Maxi+Muster%22%2C%0A++++++%22@type%22%3A+%22Person%22%0A++++%7D%2C%0A++++%7B%0A++++++%22name%22%3A+%22Sally+Sample%22%2C%0A++++++%22@type%22%3A+%22Person%22%0A++++%7D%0A++%5D%2C%0A++%22affiliation%22%3A+%5B%0A++++%22Org1%22%2C%22City2%22%2C%22Uni3%22%0A++%5D%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/exists b/resources/examples/Fixes/exists new file mode 100644 index 0000000..ed84d6e --- /dev/null +++ b/resources/examples/Fixes/exists @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=do+list%28path%3A%22author%5B%5D%22%29%0A++%23+Checks+if+element+exists%0A++unless+exists%28%22@type%22%29%0A++++add_field%28%22@type%22%2C%22undefined%22%29%0A++end%0Aend%0A%0A&data=%7B%0A++%22author%22%3A+%5B%0A++++%7B%0A++++++%22name%22%3A+%22Test+Team%22%0A++++%7D%2C%0A++++%7B%0A++++++%22name%22%3A+%22Maxi+Muster%22%2C%0A++++++%22@type%22%3A+%22Person%22%0A++++%7D%2C%0A++++%7B%0A++++++%22name%22%3A+%22Sally+Sample%22%2C%0A++++++%22@type%22%3A+%22Person%22%0A++++%7D%0A++%5D%0A%7D%0A%7B%0A++%22author%22%3A+%5B%0A++++%7B%0A++++++%22@type%22%3A+%22Person%22%2C%0A++++++%22name%22%3A+%22J%C3%BCrgen+Meta%22%0A++++%7D%0A++%5D%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/hash b/resources/examples/Fixes/hash new file mode 100644 index 0000000..61067a2 --- /dev/null +++ b/resources/examples/Fixes/hash @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Turns+array+into+hash/object+with+keys+and+values+depending+on+the+incoming+order%2C+first+key+second+value.%0Ahash%28%22example1%22%29%0Ahash%28%22example2%5B%5D%22%29%0Acopy_field%28%22example2%5B%5D%22%2C%22example3%22%29&data=%7B%0A++%22example1%22+%3A+%22key%22%2C%0A++%22example1%22+%3A+%22word%22%2C%0A++%22example1%22+%3A+%22test%22%2C%0A++%22example1%22+%3A+%22case%22%2C%0A++%22example2%22+%3A+%5B+%22key%22%2C+%22word%22%2C+%22test%22%2C+%22case%22+%5D%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/if-elsif-else-conditionals b/resources/examples/Fixes/if-elsif-else-conditionals new file mode 100644 index 0000000..5746f3f --- /dev/null +++ b/resources/examples/Fixes/if-elsif-else-conditionals @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=if+any_contain%28%22animal%5B%5D%22%2C%22butterfly%22%29%0A++add_field%28%22note%22%2C%22Nice%22%29%0Aelsif+all_equal%28%22animal%5B%5D%22%2C%22human%22%29%0A++add_field%28%22note%22%2C%22We+are+doomed%21%22%29%0Aelse%0A++add_field%28%22note%22%2C%22Lets+try%21%22%29%0Aend&data=%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22cat%22%2C%22bird%22%2C%22human%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22human%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22cat%22%2C%22bird%22%2C%22butterfly%22%0A++%5D%0A%7D \ No newline at end of file diff --git a/resources/examples/Fixes/in b/resources/examples/Fixes/in new file mode 100644 index 0000000..4403cb9 --- /dev/null +++ b/resources/examples/Fixes/in @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=do+list%28path%3A%22concept%5B%5D%22%2C%22var%22%3A%22%24i%22%29%0A++%23+Checks+if+value+of+element+is+equal+to+value+in+target+element%28s%29%0A++unless+in%28%22%24i%22%2C%22keyword%5B%5D%22%29%0A++++copy_field%28%22%24i%22%2C%22keyword%5B%5D.%24append%22%29%0A++end%0Aend%0A%0A&data=%7B%0A++%22keyword%22%3A+%5B%0A++++%22Key1%22%2C%22Key2%22%0A++%5D%2C%0A++%22concept%22%3A+%5B%0A++++%22Key1%22%2C%22Con1%22%2C%22Con2%22%0A++%5D%0A%7D%0A%0A \ No newline at end of file diff --git a/resources/examples/Fixes/is_array b/resources/examples/Fixes/is_array new file mode 100644 index 0000000..4e7610b --- /dev/null +++ b/resources/examples/Fixes/is_array @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7C+open-file%0A%7Cdecode-xml%0A%7Chandle-generic-xml%0A%7C+fix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=%23+Useful+to+test+elements+of+formats+without+arrays+if+an+element+is+repeated+or+not.+Since+MF+turns+them+into+arrays%0A%0Aif+is_array%28%22field1%22%29%0A++++add_field%28%22note1%22%2C%22Field1+is+an+array/list%21%22%29%0Aelse%0A++++add_field%28%22note1%22%2C%22Field1+is+not+an+array/list%21%22%29%0Aend%0A%0Aif+is_array%28%22field2%22%29%0A++++add_field%28%22note2%22%2C%22Field2+is+an+array/list%21%22%29%0Aelse%0A++++add_field%28%22note2%22%2C%22Field2+is+not+an+array/list%21%22%29%0Aend&data=%3C%3Fxml+version%3D%221.0%22%3F%3E%0A%3Crecord%3E%0A++++%3Cfield1%3Ea%3C/field1%3E%0A++++%3Cfield1%3Eb%3C/field1%3E%0A++++%3Cfield2%3Ea%3C/field2%3E%0A%3C/record%3E \ No newline at end of file diff --git a/resources/examples/Fixes/is_empty b/resources/examples/Fixes/is_empty new file mode 100644 index 0000000..6a1c9ab --- /dev/null +++ b/resources/examples/Fixes/is_empty @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7C+open-file%0A%7Cdecode-xml%0A%7Chandle-generic-xml%0A%7C+fix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=if+is_empty%28%22field1%22%29%0A++++add_field%28%22note1%22%2C%22Field1+is+empty%22%29%0Aelse%0A++++add_field%28%22note1%22%2C%22Field1+is+not+empty%22%29%0Aend%0A%0Aif+is_empty%28%22field2%22%29%0A++++add_field%28%22note2%22%2C%22Field2+is+empty%22%29%0Aelse%0A++++add_field%28%22note2%22%2C%22Field2+is+not+empty%22%29%0Aend&data=%3C%3Fxml+version%3D%221.0%22%3F%3E%0A%3Crecord%3E%0A++++%3Cfield1%3Ea%3C/field1%3E%0A++++%3Cfield1%3Eb%3C/field1%3E%0A++++%3Cfield2+/%3E%0A%3C/record%3E \ No newline at end of file diff --git a/resources/examples/Fixes/is_false b/resources/examples/Fixes/is_false new file mode 100644 index 0000000..79a81f6 --- /dev/null +++ b/resources/examples/Fixes/is_false @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=if+is_false%28%22test%22%29%0A++add_field%28%22note%22%2C%22Test+is+true+%28because+value+is+false+or+0%29%21%22%29%0Aelse%0A++add_field%28%22note%22%2C%22Test+is+not+true+%28because+value+is+not+false+or+0%29%21%22%29%0Aend&data=%7B%0A++%22test%22%3A+%22true%22%0A%7D%0A%7B%0A++%22test%22%3A+%221%22%0A%7D%0A%7B%0A++%22test%22%3A+%22false%22%0A%7D%0A%7B%0A++%22test%22%3A+%22other%22%0A%7D%0A%7B%0A++%22test%22%3A+%220%22%0A%7D \ No newline at end of file diff --git a/resources/examples/Fixes/is_string b/resources/examples/Fixes/is_string new file mode 100644 index 0000000..b6cd33b --- /dev/null +++ b/resources/examples/Fixes/is_string @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=if+is_string%28%22test%22%29%0A++add_field%28%22note%22%2C%22Test+value+is+a+string+%28and+not+a+number%29%21%22%29%0Aelse%0A++add_field%28%22note%22%2C%22Test+value+is+not+a+string%22%29%0Aend&data=%7B%0A++%22test%22%3A+%2299%22%0A%7D%0A%7B%0A++%22test%22%3A+%22string%22%0A%7D%0A%7B%0A++%22test%22%3A+%7B%0A++++%22subfield%22+%3A+%22value%22%0A++%7D%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/is_true b/resources/examples/Fixes/is_true new file mode 100644 index 0000000..5f152a8 --- /dev/null +++ b/resources/examples/Fixes/is_true @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=if+is_true%28%22test%22%29%0A++add_field%28%22note%22%2C%22Test+is+true%21%22%29%0Aelse%0A++add_field%28%22note%22%2C%22Test+is+not+true%21%22%29%0Aend&data=%7B%0A++%22test%22%3A+%22true%22%0A%7D%0A%7B%0A++%22test%22%3A+%221%22%0A%7D%0A%7B%0A++%22test%22%3A+%22false%22%0A%7D%0A%7B%0A++%22test%22%3A+%22other%22%0A%7D \ No newline at end of file diff --git a/resources/examples/Fixes/none_contain b/resources/examples/Fixes/none_contain new file mode 100644 index 0000000..46b9d24 --- /dev/null +++ b/resources/examples/Fixes/none_contain @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=if+none_contain%28%22animal%5B%5D%22%2C%22o%22%29%0A++add_field%28%22note%22%2C%22None+of+the+listed+animals+has+an+o%22%29%0Aelse%0A++add_field%28%22note%22%2C%22At+least+one+of+the+listed+animals+has+an+o%22%29%0Aend%0A&data=%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22monkey%22%2C%22parrot%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22cat%22%2C%22bird%22%2C%22butterfly%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22human%22%2C+%22turkey%22%2C+%22bear%22%0A++%5D%0A%7D \ No newline at end of file diff --git a/resources/examples/Fixes/none_equal b/resources/examples/Fixes/none_equal new file mode 100644 index 0000000..6c9694f --- /dev/null +++ b/resources/examples/Fixes/none_equal @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=if+none_equal%28%22animal%5B%5D%22%2C%22human%22%29%0A++add_field%28%22note%22%2C%22No+humans%21%22%29%0Aelse%0A++add_field%28%22note%22%2C%22At+least+one+human%21%22%29%0Aend&data=%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22cat%22%2C%22bird%22%2C%22human%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22human%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22cat%22%2C%22bird%22%2C%22butterfly%22%0A++%5D%0A%7D \ No newline at end of file diff --git a/resources/examples/Fixes/none_match b/resources/examples/Fixes/none_match new file mode 100644 index 0000000..197d728 --- /dev/null +++ b/resources/examples/Fixes/none_match @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=if+none_match%28%22animal%5B%5D%22%2C%22.%2Ao.%2A%22%29%0A++add_field%28%22note%22%2C+%22None+of+the+listed+did+match+the+pattern%22%29%0Aelse%0A++add_field%28%22note%22%2C%22At+least+one+of+the+listed+matched+the+pattern%22%29%0Aend%0A&data=%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22monkey%22%2C%22parrot%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22cat%22%2C%22bird%22%2C%22butterfly%22%0A++%5D%0A%7D%0A%7B%0A++%22animal%22%3A+%5B%0A++++%22human%22%2C+%22turkey%22%2C+%22bear%22%0A++%5D%0A%7D \ No newline at end of file diff --git a/resources/examples/Fixes/parse_text b/resources/examples/Fixes/parse_text new file mode 100644 index 0000000..096b329 --- /dev/null +++ b/resources/examples/Fixes/parse_text @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Parses+a+text+into+an+array/list+or+hash+of+values.%0A%0Aparse_text%28%22date1%22%2C%22%28\\d%7B4%7D%29-%28\\d%7B2%7D%29-%28\\d%7B2%7D%29%22%29%0Acopy_field%28%22date1%22%2C%22date3%5B%5D%22%29%0A%0A%23+Parses+a+text+into+an+hash+of+values.%0Aparse_text%28%22date2%22%2C%22%28%3F%3Cyear%3E\\d%7B4%7D%29-%28%3F%3Cmonth%3E\\d%7B2%7D%29-%28%3F%3Cday%3E\\d%7B2%7D%29%22%29&data=%7B%0A++%22date1%22+%3A+%221918-11-11%22%2C%0A++%22date2%22+%3A+%222024-03-19%22+%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/random b/resources/examples/Fixes/random new file mode 100644 index 0000000..2ff7e7e --- /dev/null +++ b/resources/examples/Fixes/random @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Add+a+new+field%0Arandom%28%22randomValue%22%2C%22100%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/reverse b/resources/examples/Fixes/reverse new file mode 100644 index 0000000..16cb746 --- /dev/null +++ b/resources/examples/Fixes/reverse @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Add+a+new+field%0Areverse%28%22key%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/set_hash b/resources/examples/Fixes/set_hash new file mode 100644 index 0000000..aca1188 --- /dev/null +++ b/resources/examples/Fixes/set_hash @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Add+a+new+hash+and+a+hash+with+certain+subfields%0Aset_hash%28%22object1%22%29%0Aset_hash%28%22object2%22%2C+%22subfieldName1%22%3A+%22value1%22+%2C+%22subfieldName2%22%3A+%22value2%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/str_contain b/resources/examples/Fixes/str_contain new file mode 100644 index 0000000..d81d31e --- /dev/null +++ b/resources/examples/Fixes/str_contain @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=put_var%28%22test%22%2C%22alue%22%29%0A%0A%23+Useful+when+testing+variables+and+if+the+variable+is+dynamic+either+due+to+changes+in+the+fix+or+configuration+in+the+flus+workflow.%0Aif+str_contain%28%22testValue%22%2C%22%24%5Btest%5D%22%29+%0A++add_field%28%22note%22%2C%22Test+true%22%29%0Aend%0A&data=%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22monkey%22%2C%22parrot%22%0A++%5D%0A%7D \ No newline at end of file diff --git a/resources/examples/Fixes/str_equal b/resources/examples/Fixes/str_equal new file mode 100644 index 0000000..ed62d45 --- /dev/null +++ b/resources/examples/Fixes/str_equal @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=put_var%28%22test%22%2C%22testValue%22%29%0A%0A%23+Useful+when+testing+variables+and+if+the+variable+is+dynamic+either+due+to+changes+in+the+fix+or+configuration+in+the+flus+workflow.%0Aif+str_equal%28%22testValue%22%2C%22%24%5Btest%5D%22%29+%0A++add_field%28%22note1%22%2C%22Test+true%22%29%0Aend%0A%0A%23+Useful+when+testing+variables+and+if+the+variable+is+dynamic+either+due+to+changes+in+the+fix+or+configuration+in+the+flus+workflow.%0Aif+str_equal%28%22notestValue%22%2C%22%24%5Btest%5D%22%29+%0A++add_field%28%22note2%22%2C%22Test+true%22%29%0Aend%0A&data=%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22monkey%22%2C%22parrot%22%0A++%5D%0A%7D \ No newline at end of file diff --git a/resources/examples/Fixes/str_match b/resources/examples/Fixes/str_match new file mode 100644 index 0000000..93d07d9 --- /dev/null +++ b/resources/examples/Fixes/str_match @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-yaml%0A%7Cprint%0A%3B&transformation=put_var%28%22test%22%2C%22testValue%22%29%0A%0A%23+Useful+when+testing+variables+and+if+the+variable+is+dynamic+either+due+to+changes+in+the+fix+or+configuration+in+the+flus+workflow.%0Aif+str_match%28%22%24%5Btest%5D%22%2C%22.%2AVal.%2A%22%29+%0A++add_field%28%22note%22%2C%22Test+true%22%29%0Aend%0A&data=%7B%0A++%22animal%22%3A+%5B%0A++++%22dog%22%2C%22monkey%22%2C%22parrot%22%0A++%5D%0A%7D \ No newline at end of file diff --git a/resources/examples/Fixes/substring b/resources/examples/Fixes/substring new file mode 100644 index 0000000..7198ccc --- /dev/null +++ b/resources/examples/Fixes/substring @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=substring%28%22test%22%2C%220%22%2C%223%22%29&data=%7B%0A++%22test%22+%3A+%22keyword%22%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/sum b/resources/examples/Fixes/sum new file mode 100644 index 0000000..5a22e48 --- /dev/null +++ b/resources/examples/Fixes/sum @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=sum%28%22numbers%5B%5D%22%29%0A&data=%7B%0A++%22numbers%22+%3A+%5B+%2241%22%2C+%2242%22%2C+%226%22%2C+%226%22+%5D%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/timestamp b/resources/examples/Fixes/timestamp new file mode 100644 index 0000000..ac2ad4e --- /dev/null +++ b/resources/examples/Fixes/timestamp @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Add+a+new+field%0Atimestamp%28%22date%22%2Cformat%3A+%22yyyy.MM.dd+G+%27at%27+HH%3Amm%3Ass+z%22%2C+language%3A%22de%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/to_base64 b/resources/examples/Fixes/to_base64 new file mode 100644 index 0000000..8ca04b7 --- /dev/null +++ b/resources/examples/Fixes/to_base64 @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+Transforms+the+value+to+base64+hash%0Ato_base64%28%22key%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/to_json b/resources/examples/Fixes/to_json new file mode 100644 index 0000000..a78ffe6 --- /dev/null +++ b/resources/examples/Fixes/to_json @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-literals%0A%7Cprint%0A%3B&transformation=to_json%28%22author%5B%5D%22%29%0Amove_field%28%22author%5B%5D%22%2C%22authorJsonValue%22%29%0A%0A%0A&data=%7B%0A++%22author%22%3A+%5B%0A++++%7B%0A++++++%22name%22%3A+%22Test+Team%22%2C%0A++++++%22@type%22%3A+%22Organization%22%0A++++%7D%2C%0A++++%7B%0A++++++%22name%22%3A+%22Maxi+Muster%22%2C%0A++++++%22@type%22%3A+%22Person%22%0A++++%7D%2C%0A++++%7B%0A++++++%22name%22%3A+%22Sally+Sample%22%2C%0A++++++%22@type%22%3A+%22Person%22%0A++++%7D%0A++%5D%0A%7D%0A%7B%0A++%22author%22%3A+%5B%0A++++%7B%0A++++++%22@type%22%3A+%22Person%22%2C%0A++++++%22name%22%3A+%22J%C3%BCrgen+Meta%22%0A++++%7D%0A++%5D%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/uri_encode b/resources/examples/Fixes/uri_encode new file mode 100644 index 0000000..94bffe4 --- /dev/null +++ b/resources/examples/Fixes/uri_encode @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-json%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=uri_encode%28%22test%22%2C+plus_for_space%3A%22false%22%2C+safe_chars%3A%22%22%29&data=%7B%0A++%22test%22+%3A+%22%C3%84+\%22+%C3%96+Test%22%0A%7D%0A \ No newline at end of file From ba1c5c8e7e3e11bd8ad08c0453f14a54a1c7964e Mon Sep 17 00:00:00 2001 From: TobiasNx Date: Tue, 2 Jul 2024 16:37:15 +0200 Subject: [PATCH 4/6] Add MarcXML_to_MARC21 example --- resources/examples/MarcXML_to_MARC21 | 1 + 1 file changed, 1 insertion(+) create mode 100644 resources/examples/MarcXML_to_MARC21 diff --git a/resources/examples/MarcXML_to_MARC21 b/resources/examples/MarcXML_to_MARC21 new file mode 100644 index 0000000..eb97f75 --- /dev/null +++ b/resources/examples/MarcXML_to_MARC21 @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=%22https%3A//d-nb.info/1106253078/about/marcxml%22%0A%7C+open-http%28accept%3D%22application/xml%22%29%0A%7C+decode-xml%0A%7C+handle-marcxml%0A%7C+encode-marc21%0A%7C+print%0A%3B \ No newline at end of file From c4315fa4eace90cdac845702f44e0bd37a24def1 Mon Sep 17 00:00:00 2001 From: TobiasNx Date: Thu, 22 Aug 2024 16:08:02 +0200 Subject: [PATCH 5/6] Add missing link text --- resources/examples/Use Cases/Count_values_for_path | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/examples/Use Cases/Count_values_for_path b/resources/examples/Use Cases/Count_values_for_path index e69de29..3846d99 100644 --- a/resources/examples/Use Cases/Count_values_for_path +++ b/resources/examples/Use Cases/Count_values_for_path @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=inputFile%0A%7C+open-file%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+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&data=001@+%1F01%1Fa5%1E001A+%1F09999%3A07-04-01%1E001B+%1F09999%3A10-03-04%1Ft13%3A31%3A00.000%1E001D+%1F09999%3A07-04-01%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Aal%1E003@+%1F0570346983%1E006U+%1F000%2CL01%1E007I+%1FSo%1F0720834513%1E007M+%1F01602/0263%1E011@+%1Fa1929%1E021A+%1FaDie+@Ehrenstatuen+der+Pa%CC%88pste%1E028A+%1F9118700561%1F7Tp1%1FVpiz%1FAgnd%1F0118700561%1FE1900%1FB1997%1FaHager%1FdWerner%1E033A+%1FpLeipzig%1E034D+%1Fa82+S.%1E034I+%1Fa4%1E037A+%1FaAuch+in+Buchh.+als%3A+Ro%CC%88mische+Forschungen%2C+hrsg.+v.+d.+Bibliotheca+Hertziana+in+Rom.+Bd+7.+1929.%1E037C+%1FaBasel%2C+Phil.-+hist.+Diss.%1E%0A001@+%1F01-2%1Fa5%1E001A+%1F01200%3A28-09-87%1E001B+%1F09999%3A29-12-07%1Ft19%3A41%3A36.000%1E001D+%1F09999%3A99-99-99%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Aan%1E003@+%1F0871159031%1E004A+%1Ffgeh.+%28Pr.+nicht+mitget.%29%1E006U+%1F087%2CB42%2C0848%1E007I+%1FSo%1F0310869122%1E011@+%1Fa1987%1E021A+%1FaEinfach+klassisch%21%1FdEine+Orestie+mit+glu%CC%88ckl.+Ausgang%1FhWalter+Mehring+%281896+-+1981%29.+Mit+e.+Nachw.+hrsg.+von+Didier+Plassard.+Univ.+-+Gesamthochsch.+Siegen%1E028A+%1F9118579983%1F7Tp1%1FVpip%1FAgnd%1F0118579983%1FE1896%1FB1981%1FaMehring%1FdWalter%1E032@+%1Fg12%1Fa%282.+Aufl.%29%1E033A+%1FpSiegen%1FnUniv.+-+Gesamthochsch.%1E034D+%1Fa28+S.%1E034I+%1Fa21+cm%1E036F+%1Fx216%1F9010243046%1FgAdvz%1Fi19442-6%1FYVergessene+Autoren+der+Moderne%1FpSiegen%1FJUniv.-Gesamthochschule%1Fl16%1E045E+%1Fa59%1Fm810%1Fm820%1Fm830%1Fm839%1Fm840%1Fm850%1Fm860%1Fm870%1Fm880%1Fm890%1FmB%1E047A+%1FSFE%1Fabs%1E%0A001@+%1F01%1Fa5%1E001A+%1F09999%3A31-10-01%1E001B+%1F00101%3A07-08-09%1Ft17%3A28%3A39.000%1E001D+%1F09999%3A31-10-01%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Aal%1E003@+%1F0572736959%1E006U+%1F000%2CL01%1E007I+%1FSo%1F072019536%1E007M+%1F02797/0022%1E010@+%1Fager%1E011@+%1Fa1916%1E021A+%1FaDorfheimat%1FdBilder+aus+der+Knabenzeit%1Fhvon+Franziskus+Nagler%1E028A+%1F9116880430%1F7Tp1%1FVpiz%1FAgnd%1F0116880430%1FE1873%1FB1957%1FaNagler%1FdFranciscus%1E032@+%1Fg13%1Fa3.+Aufl.%1E033A+%1FpMeissen%1FnBuchheim%1E034D+%1Fa208+S.%1E034I+%1Fa8%1E037A+%1FaIn+Fraktur%1E047E+%1Faagi-809Haerig%1E%0A001@+%1Fa5%1E001A+%1F01145%3A29-03-04%1E001B+%1F01145%3A27-04-05%1Ft18%3A02%3A05.000%1E001D+%1F09999%3A10-05-08%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Acl%1E003@+%1F0560568487%1E007I+%1FSo%1F073290854%1E007M+%1F01769/0218%1E017A+%1Fagw%1E021A+%1FaMein+Hermannsland%1E033A+%1FpBielefeld%1FpLeipzig%1FnVelhagen+%26+Klasing%1E034I+%1Fa8%1E036G+%1FaVelhagen+%26+Klasings+Erga%CC%88nzungshefte+zu+deutschen+Lesebu%CC%88chern%1E042@+%1F0NN%1Fc34p3_vk.dat%1Fd1337%1Fe2004-03-29%1E%0A001@+%1F01-2%1Fa5%1E001A+%1F01130%3A27-10-05%1E001B+%1F09999%3A23-11-05%1Ft10%3A44%3A17.000%1E001D+%1F01140%3A03-11-05%1E001U+%1F0utf8%1E001X+%1F00%1E002@+%1F0Af%1E003@+%1F0976858223%1E004A+%1Ffkart.%1E006U+%1F005%2CB49%2C0021%1E007I+%1FSo%1F0723555963%1E011@+%1Fa2005%1Fn%5B2005%5D%1E017A+%1Farb%1E021A+%1Fx13%1F9957878923%1FYSoftware-Architektur%1FhFernuniversita%CC%88t+in+Hagen%1FpHagen%1FJFernuniv.%1FS004%1FgAc%1E021B+%1FlKurseinheit+3.%1FaGenerische+Architekturen+und+Komponentensysteme%1FhAutor%3A+A.+Poetzsch-Heffter.+Mitarb.%3A+N.+Rauch%1E032@+%1Fg16%1Fa%5B6.+Aufl.%5D%1E034D+%1FaS.+66+-+102%1E034I+%1FaIll.%1E047A+%1FSFE%1Fa%5BADH%1E047A+%1FSERW%1Farm%1E \ No newline at end of file From 9c96d4b18f657bd2bcec502700cf83d23c0a5d8a Mon Sep 17 00:00:00 2001 From: TobiasNx <61879957+TobiasNx@users.noreply.github.com> Date: Thu, 22 Aug 2024 17:12:26 +0200 Subject: [PATCH 6/6] Add find-fix-paths --- resources/examples/Flux_Commands/find-fix-paths | 1 + 1 file changed, 1 insertion(+) create mode 100644 resources/examples/Flux_Commands/find-fix-paths diff --git a/resources/examples/Flux_Commands/find-fix-paths b/resources/examples/Flux_Commands/find-fix-paths new file mode 100644 index 0000000..b00d5f8 --- /dev/null +++ b/resources/examples/Flux_Commands/find-fix-paths @@ -0,0 +1 @@ +https://metafacture.org/playground/?flux=%22https%3A//d-nb.info/gnd/1160720738/about/marcxml%22%0A%7C+open-http%28accept%3D%22application/xml%22%29%0A%7C+decode-xml%0A%7C+handle-marcxml%0A%7C+find-fix-paths%28%22.%2AETL.%2A%22%29%0A%7C+print%0A%3B