From 6ade1e8cd71c7413fc0e783f1a7d4d4d507753e7 Mon Sep 17 00:00:00 2001 From: TobiasNx Date: Thu, 23 Nov 2023 11:57:10 +0100 Subject: [PATCH] Normalize links to playground --- resources/examples/Fixes/add_field | 2 +- resources/examples/Fixes/append | 2 +- resources/examples/Fixes/call_macro | 2 +- resources/examples/Fixes/capitalize | 2 +- resources/examples/Fixes/copy_field | 2 +- resources/examples/Fixes/do_put_macro | 2 +- resources/examples/Fixes/downcase | 2 +- resources/examples/Fixes/filter | 2 +- resources/examples/Fixes/flatten | 2 +- resources/examples/Fixes/index | 2 +- resources/examples/Fixes/isbn | 2 +- resources/examples/Fixes/join_field | 2 +- resources/examples/Fixes/move_field | 2 +- resources/examples/Fixes/prepend | 2 +- resources/examples/Fixes/put_rdfmap | 2 +- resources/examples/Fixes/put_var | 2 +- resources/examples/Fixes/put_vars | 2 +- resources/examples/Fixes/reject | 2 +- resources/examples/Fixes/remove_field | 2 +- resources/examples/Fixes/rename | 2 +- resources/examples/Fixes/replace_all | 2 +- resources/examples/Fixes/retain | 2 +- resources/examples/Fixes/set_array | 2 +- resources/examples/Fixes/sort_field | 2 +- resources/examples/Fixes/split_field | 2 +- resources/examples/Fixes/trim | 2 +- resources/examples/Fixes/upcase | 2 +- resources/examples/Fixes/vacuum | 2 +- resources/examples/How_to_use_the_Playground | 2 +- resources/examples/experimental/Large_Input_HTTP | 2 +- resources/examples/experimental/Post-to-Reconciliation-API | 2 +- resources/examples/experimental/Result_as_file_download | 2 +- resources/examples/experimental/Web_JSON_to_JSON_(fix) | 2 +- resources/examples/experimental/Web_Pica-to-MarcXML_(morph) | 2 +- resources/examples/experimental/XML_repeated_fields | 2 +- 35 files changed, 35 insertions(+), 35 deletions(-) diff --git a/resources/examples/Fixes/add_field b/resources/examples/Fixes/add_field index 9fc004f..1012c09 100644 --- a/resources/examples/Fixes/add_field +++ b/resources/examples/Fixes/add_field @@ -1 +1 @@ -https://test.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%0Aadd_field%28%22another%22%2C+%22keyword%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file +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%0Aadd_field%28%22another%22%2C+%22keyword%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/append b/resources/examples/Fixes/append index c10ede5..c40429f 100644 --- a/resources/examples/Fixes/append +++ b/resources/examples/Fixes/append @@ -1 +1 @@ -https://test.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=append%28%22animal%22%2C+%22+is+cool%22%29%0Aappend%28%22animal_2.name%22%2C+%22+boss%22%29%0A&data=%7B%0A++%22animal%22%3A+%22bunny%22%2C%0A++%22animal_2%22%3A+%7B%0A++++%22name%22%3A+%22bird%22%2C%0A++++%22type%22%3A+%22TEST%22%0A++%7D%0A%7D%0A%0A%0A%0A \ No newline at end of file +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=append%28%22animal%22%2C+%22+is+cool%22%29%0Aappend%28%22animal_2.name%22%2C+%22+boss%22%29%0A&data=%7B%0A++%22animal%22%3A+%22bunny%22%2C%0A++%22animal_2%22%3A+%7B%0A++++%22name%22%3A+%22bird%22%2C%0A++++%22type%22%3A+%22TEST%22%0A++%7D%0A%7D%0A%0A%0A%0A \ No newline at end of file diff --git a/resources/examples/Fixes/call_macro b/resources/examples/Fixes/call_macro index 3738edc..fb30281 100644 --- a/resources/examples/Fixes/call_macro +++ b/resources/examples/Fixes/call_macro @@ -1 +1 @@ -https://test.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=do+put_macro%28%22testMacro%22%29%0A++++add_field%28%22%24%5BnewField%5D%22%2C%22field%22%29%0Aend%0A%0Acall_macro%28%22testMacro%22%2CnewField%3A%22createdByMacro%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file +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=do+put_macro%28%22testMacro%22%29%0A++++add_field%28%22%24%5BnewField%5D%22%2C%22field%22%29%0Aend%0A%0Acall_macro%28%22testMacro%22%2CnewField%3A%22createdByMacro%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/capitalize b/resources/examples/Fixes/capitalize index 898c0e7..b0ed838 100644 --- a/resources/examples/Fixes/capitalize +++ b/resources/examples/Fixes/capitalize @@ -1 +1 @@ -https://test.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=capitalize%28%22key%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file +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=capitalize%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/copy_field b/resources/examples/Fixes/copy_field index f1d6443..8c30ed7 100644 --- a/resources/examples/Fixes/copy_field +++ b/resources/examples/Fixes/copy_field @@ -1 +1 @@ -https://test.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+Copy+a+new+field%0Acopy_field%28%22key%22%2C+%22anotherKey%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file +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+Copy+a+new+field%0Acopy_field%28%22key%22%2C+%22anotherKey%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/do_put_macro b/resources/examples/Fixes/do_put_macro index 3738edc..fb30281 100644 --- a/resources/examples/Fixes/do_put_macro +++ b/resources/examples/Fixes/do_put_macro @@ -1 +1 @@ -https://test.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=do+put_macro%28%22testMacro%22%29%0A++++add_field%28%22%24%5BnewField%5D%22%2C%22field%22%29%0Aend%0A%0Acall_macro%28%22testMacro%22%2CnewField%3A%22createdByMacro%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file +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=do+put_macro%28%22testMacro%22%29%0A++++add_field%28%22%24%5BnewField%5D%22%2C%22field%22%29%0Aend%0A%0Acall_macro%28%22testMacro%22%2CnewField%3A%22createdByMacro%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/downcase b/resources/examples/Fixes/downcase index fadadd8..af26078 100644 --- a/resources/examples/Fixes/downcase +++ b/resources/examples/Fixes/downcase @@ -1 +1 @@ -https://test.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=downcase%28%22key%22%29%0A&data=%7B%0A++%22key%22+%3A+%22WORD%22%0A%7D%0A \ No newline at end of file +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=downcase%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/filter b/resources/examples/Fixes/filter index 8bb6865..e841a79 100644 --- a/resources/examples/Fixes/filter +++ b/resources/examples/Fixes/filter @@ -1 +1 @@ -https://test.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+Filter+arrays+for+certain+values%0Afilter%28%22animals%5B%5D%22%2C+%22%5BZz%5Debra%22%29%0Afilter%28%22investigators%5B%5D%22%2C+%22Justus%7CBob%22%29%0Afilter%28%22tools%5B%5D%22%2C+%22.%2Aw%22%29%0A&data=%7B%0A++%22animals%22+%3A+%5B+%22dog%22%2C+%22cat%22%2C+%22zebra%22%2C+%22Zebra%22+%5D%2C%0A++%22investigators%22+%3A+%5B+%22Justus%22%2C+%22Peter%22%2C+%22Bob%22+%5D%2C%0A++%22tools%22+%3A+%5B+%22hammer%22%2C+%22saw%22%2C+%22bow%22+%5D%0A%7D%0A%0A%0A \ No newline at end of file +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+Filter+arrays+for+certain+values%0Afilter%28%22animals%5B%5D%22%2C+%22%5BZz%5Debra%22%29%0Afilter%28%22investigators%5B%5D%22%2C+%22Justus%7CBob%22%29%0Afilter%28%22tools%5B%5D%22%2C+%22.%2Aw%22%29%0A&data=%7B%0A++%22animals%22+%3A+%5B+%22dog%22%2C+%22cat%22%2C+%22zebra%22%2C+%22Zebra%22+%5D%2C%0A++%22investigators%22+%3A+%5B+%22Justus%22%2C+%22Peter%22%2C+%22Bob%22+%5D%2C%0A++%22tools%22+%3A+%5B+%22hammer%22%2C+%22saw%22%2C+%22bow%22+%5D%0A%7D%0A%0A%0A \ No newline at end of file diff --git a/resources/examples/Fixes/flatten b/resources/examples/Fixes/flatten index da80813..e4c8a46 100644 --- a/resources/examples/Fixes/flatten +++ b/resources/examples/Fixes/flatten @@ -1 +1 @@ -https://test.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+Flatten+messy+array%0Aflatten%28%22animals%5B%5D%22%29%0A&data=%7B%0A++%22animals%22+%3A+%5B+%5B+%22ant%22%2C+%22dog%22+%5D%2C+%22cat%22%2C+%5B+%22fish%22%2C+%5B+%22zebra%22%2C+%22horse%22+%5D%2C+%22hippo%22+%5D%2C+%22giraffe%22+%5D%0A%7D%0A%0A \ No newline at end of file +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+Flatten+messy+array%0Aflatten%28%22animals%5B%5D%22%29%0A&data=%7B%0A++%22animals%22+%3A+%5B+%5B+%22ant%22%2C+%22dog%22+%5D%2C+%22cat%22%2C+%5B+%22fish%22%2C+%5B+%22zebra%22%2C+%22horse%22+%5D%2C+%22hippo%22+%5D%2C+%22giraffe%22+%5D%0A%7D%0A%0A \ No newline at end of file diff --git a/resources/examples/Fixes/index b/resources/examples/Fixes/index index 8385b20..8dc9e2c 100644 --- a/resources/examples/Fixes/index +++ b/resources/examples/Fixes/index @@ -1 +1 @@ -https://test.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=index%28%22animal%22%2C+%22n%22%29%0A&data=%7B%0A++%22animal%22%3A+%22canary%22%0A%7D%0A \ No newline at end of file +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=index%28%22animal%22%2C+%22n%22%29%0A&data=%7B%0A++%22animal%22%3A+%22canary%22%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/isbn b/resources/examples/Fixes/isbn index a7f3357..366d349 100644 --- a/resources/examples/Fixes/isbn +++ b/resources/examples/Fixes/isbn @@ -1 +1 @@ -https://test.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=isbn%28%22test_1%22%2Cto%3A%22clean%22%29%0Aisbn%28%22test_2%22%2Cto%3A%22clean%22%2Cverify_check_digit%3A%22true%22%2Cerror_string%3A%22ung%C3%BCltig%22%29%0Aisbn%28%22test_3%22%2Cto%3A%22ISBN13%22%2Cverify_check_digit%3A%22true%22%2Cerror_string%3A%22ung%C3%BCltig%22%29%0Aisbn%28%22test_4%22%2Cto%3A%22ISBN10%22%2Cverify_check_digit%3A%22true%22%2Cerror_string%3A%22ung%C3%BCltig%22%29%0A&data=%7B%0A++%22test_1%22+%3A+%22978-3-89401-810-9%22%2C%0A++%22test_2%22+%3A+%22978-3-89401-810-9%22%2C%0A++%22test_3%22+%3A+%223442151473%22%2C%0A++%22test_4%22+%3A+%22978-3-8218-0818-5%22%0A%7D%0A \ No newline at end of file +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=isbn%28%22test_1%22%2Cto%3A%22clean%22%29%0Aisbn%28%22test_2%22%2Cto%3A%22clean%22%2Cverify_check_digit%3A%22true%22%2Cerror_string%3A%22ung%C3%BCltig%22%29%0Aisbn%28%22test_3%22%2Cto%3A%22ISBN13%22%2Cverify_check_digit%3A%22true%22%2Cerror_string%3A%22ung%C3%BCltig%22%29%0Aisbn%28%22test_4%22%2Cto%3A%22ISBN10%22%2Cverify_check_digit%3A%22true%22%2Cerror_string%3A%22ung%C3%BCltig%22%29%0A&data=%7B%0A++%22test_1%22+%3A+%22978-3-89401-810-9%22%2C%0A++%22test_2%22+%3A+%22978-3-89401-810-9%22%2C%0A++%22test_3%22+%3A+%223442151473%22%2C%0A++%22test_4%22+%3A+%22978-3-8218-0818-5%22%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/join_field b/resources/examples/Fixes/join_field index 035d371..38473ec 100644 --- a/resources/examples/Fixes/join_field +++ b/resources/examples/Fixes/join_field @@ -1 +1 @@ -https://test.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=join_field%28%22investigators%5B%5D%22%2C%22%3F%22%29%0Amove_field%28%22investigators%5B%5D%22%2C%22investigators%22%29%0A&data=%7B%0A++%22investigators%22+%3A+%5B+%22Justus%22%2C+%22Peter%22%2C+%22Bob%22+%5D%0A%7D%0A%0A \ No newline at end of file +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=join_field%28%22investigators%5B%5D%22%2C%22%3F%22%29%0Amove_field%28%22investigators%5B%5D%22%2C%22investigators%22%29%0A&data=%7B%0A++%22investigators%22+%3A+%5B+%22Justus%22%2C+%22Peter%22%2C+%22Bob%22+%5D%0A%7D%0A%0A \ No newline at end of file diff --git a/resources/examples/Fixes/move_field b/resources/examples/Fixes/move_field index 40cae08..d0b0037 100644 --- a/resources/examples/Fixes/move_field +++ b/resources/examples/Fixes/move_field @@ -1 +1 @@ -https://test.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+Move+or+rename+a+field%0Amove_field%28%22key%22%2C+%22movedKey%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file +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+Move+or+rename+a+field%0Amove_field%28%22key%22%2C+%22movedKey%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/prepend b/resources/examples/Fixes/prepend index 4e4c19b..654691c 100644 --- a/resources/examples/Fixes/prepend +++ b/resources/examples/Fixes/prepend @@ -1 +1 @@ -https://test.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=prepend%28%22animal%22%2C+%22brown+%22%29%0Aprepend%28%22animal_2.name%22%2C+%22bluey+%22%29%0A&data=%7B%0A++%22animal%22%3A+%22bunny%22%2C%0A++%22animal_2%22%3A+%7B%0A++++%22name%22%3A+%22bird%22%2C%0A++++%22type%22%3A+%22TEST%22%0A++%7D%0A%7D%0A%0A%0A%0A \ No newline at end of file +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=prepend%28%22animal%22%2C+%22brown+%22%29%0Aprepend%28%22animal_2.name%22%2C+%22bluey+%22%29%0A&data=%7B%0A++%22animal%22%3A+%22bunny%22%2C%0A++%22animal_2%22%3A+%7B%0A++++%22name%22%3A+%22bird%22%2C%0A++++%22type%22%3A+%22TEST%22%0A++%7D%0A%7D%0A%0A%0A%0A \ No newline at end of file diff --git a/resources/examples/Fixes/put_rdfmap b/resources/examples/Fixes/put_rdfmap index 6907bef..5c638da 100644 --- a/resources/examples/Fixes/put_rdfmap +++ b/resources/examples/Fixes/put_rdfmap @@ -1 +1 @@ -https://test.metafacture.org/playground/?flux=%22http%3A//lobid.org/download/marcXml-8-records.xml%22%0A%7C+open-http%0A%7C+decode-xml%0A%7C+handle-marcxml%0A%7C+fix%28transformationFile%29%0A%7C+encode-json%28prettyPrinting%3D%22true%22%29%0A%7C+print%0A%3B&transformation=do+once%28%22maps%22%29%0A++++put_rdfmap%28%22https%3A//raw.githubusercontent.com/acka47/dnb-sg-skos/main/sg_skos_2020.ttl%22%2C+%22idLookup%22%2Ctarget%3A%22skos%3Anotation%22%29%0A++++put_rdfmap%28%22https%3A//raw.githubusercontent.com/acka47/dnb-sg-skos/main/sg_skos_2020.ttl%22%2C+%22labelLookup%22+%2C+target%3A+%22skos%3AprefLabel%22%2C+select_language%3A%22de%22%29%0Aend%0A%0Aset_array%28%22dnb_sg%5B%5D%22%29%0A%0Ado+list%28path%3A%22084%3F%3F%22%2C%22var%22%3A%22%24i%22%29%0A++++if+any_match%28%22%24i.2%22%2C+%22sdnb%7Czdbs%22%29%0A++++++++do+list%28path%3A%22%24i.a%22%2C%22var%22%3A%22%24j%22%29%0A++++++++++++copy_field%28%22%24j%22%2C%22dnb_sg%5B%5D.%24append.notation%22%29%0A++++++++++++copy_field%28%22%24j%22%2C%22dnb_sg%5B%5D.%24last.id%22%29%0A++++++++++++copy_field%28%22%24j%22%2C%22dnb_sg%5B%5D.%24last.label%22%29%0A++++++++end%0A++++end%0Aend%0A%0Alookup%28%22dnb_sg%5B%5D.%2A.id%22%2C%22idLookup%22%29%0Alookup%28%22dnb_sg%5B%5D.%2A.label%22%2C%22idLookup%22%29%0Alookup%28%22dnb_sg%5B%5D.%2A.label%22%2C%22labelLookup%22%29%0A%0Aretain%28%22dnb_sg%5B%5D%22%29 \ No newline at end of file +https://metafacture.org/playground/?flux=%22http%3A//lobid.org/download/marcXml-8-records.xml%22%0A%7C+open-http%0A%7C+decode-xml%0A%7C+handle-marcxml%0A%7C+fix%28transformationFile%29%0A%7C+encode-json%28prettyPrinting%3D%22true%22%29%0A%7C+print%0A%3B&transformation=do+once%28%22maps%22%29%0A++++put_rdfmap%28%22https%3A//raw.githubusercontent.com/acka47/dnb-sg-skos/main/sg_skos_2020.ttl%22%2C+%22idLookup%22%2Ctarget%3A%22skos%3Anotation%22%29%0A++++put_rdfmap%28%22https%3A//raw.githubusercontent.com/acka47/dnb-sg-skos/main/sg_skos_2020.ttl%22%2C+%22labelLookup%22+%2C+target%3A+%22skos%3AprefLabel%22%2C+select_language%3A%22de%22%29%0Aend%0A%0Aset_array%28%22dnb_sg%5B%5D%22%29%0A%0Ado+list%28path%3A%22084%3F%3F%22%2C%22var%22%3A%22%24i%22%29%0A++++if+any_match%28%22%24i.2%22%2C+%22sdnb%7Czdbs%22%29%0A++++++++do+list%28path%3A%22%24i.a%22%2C%22var%22%3A%22%24j%22%29%0A++++++++++++copy_field%28%22%24j%22%2C%22dnb_sg%5B%5D.%24append.notation%22%29%0A++++++++++++copy_field%28%22%24j%22%2C%22dnb_sg%5B%5D.%24last.id%22%29%0A++++++++++++copy_field%28%22%24j%22%2C%22dnb_sg%5B%5D.%24last.label%22%29%0A++++++++end%0A++++end%0Aend%0A%0Alookup%28%22dnb_sg%5B%5D.%2A.id%22%2C%22idLookup%22%29%0Alookup%28%22dnb_sg%5B%5D.%2A.label%22%2C%22idLookup%22%29%0Alookup%28%22dnb_sg%5B%5D.%2A.label%22%2C%22labelLookup%22%29%0A%0Aretain%28%22dnb_sg%5B%5D%22%29 \ No newline at end of file diff --git a/resources/examples/Fixes/put_var b/resources/examples/Fixes/put_var index 0cf397a..14f43c2 100644 --- a/resources/examples/Fixes/put_var +++ b/resources/examples/Fixes/put_var @@ -1 +1 @@ -https://test.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=put_var%28%22test%22%2C%22variable%22%29%0Aadd_field%28%22Show_Me_The%22%2C+%22%24%5Btest%5D%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file +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=put_var%28%22test%22%2C%22variable%22%29%0Aadd_field%28%22Show_Me_The%22%2C+%22%24%5Btest%5D%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/put_vars b/resources/examples/Fixes/put_vars index bdbfcf4..2ca2398 100644 --- a/resources/examples/Fixes/put_vars +++ b/resources/examples/Fixes/put_vars @@ -1 +1 @@ -https://test.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=put_vars%28%0A++%22status%22%3A+%22yes%22%2C%0A++%22redist%22%3A+%22allowed%22%0A%29%0A%0A%0Aadd_field%28%22open%22%2C+%22%24%5Bstatus%5D%22%29%0Aadd_field%28%22reuse%22%2C+%22%24%5Bredist%5D%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file +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=put_vars%28%0A++%22status%22%3A+%22yes%22%2C%0A++%22redist%22%3A+%22allowed%22%0A%29%0A%0A%0Aadd_field%28%22open%22%2C+%22%24%5Bstatus%5D%22%29%0Aadd_field%28%22reuse%22%2C+%22%24%5Bredist%5D%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/reject b/resources/examples/Fixes/reject index 7e7b150..ebe8640 100644 --- a/resources/examples/Fixes/reject +++ b/resources/examples/Fixes/reject @@ -1 +1 @@ -https://test.metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-yaml%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+kick+out+records+that+meet+the+conditional%0A%0Aif+exists%28%22test%22%29%0A++++reject%28%29%0Aend&data=---%0Akey%3A+word%0A%0A---%0Atest%3A+case%0A \ No newline at end of file +https://metafacture.org/playground/?flux=inputFile%0A%7Copen-file%0A%7Cas-records%0A%7Cdecode-yaml%0A%7Cfix%28transformationFile%29%0A%7Cencode-json%28prettyPrinting%3D%22true%22%29%0A%7Cprint%0A%3B%0A&transformation=%23+kick+out+records+that+meet+the+conditional%0A%0Aif+exists%28%22test%22%29%0A++++reject%28%29%0Aend&data=---%0Akey%3A+word%0A%0A---%0Atest%3A+case%0A \ No newline at end of file diff --git a/resources/examples/Fixes/remove_field b/resources/examples/Fixes/remove_field index 8a7bbb5..493aa86 100644 --- a/resources/examples/Fixes/remove_field +++ b/resources/examples/Fixes/remove_field @@ -1 +1 @@ -https://test.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+Remove+a+field%0Aremove_field%28%22delete%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%2C%0A++%22delete%22+%3A+%22me%22%0A%7D%0A \ No newline at end of file +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+Remove+a+field%0Aremove_field%28%22delete%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%2C%0A++%22delete%22+%3A+%22me%22%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/rename b/resources/examples/Fixes/rename index 4c0acb5..fcd7b83 100644 --- a/resources/examples/Fixes/rename +++ b/resources/examples/Fixes/rename @@ -1 +1 @@ -https://test.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+rename+subelements+in+object%0Arename%28%22object%22%2C+%22o%22%2C+%22__%22%29%0Arename%28%22object%22%2C+%22O%22%2C+%22%23%23%22%29%0A%0A&data=%7B%0A++%22object%22+%3A+%7B%0A++++%22okey%22+%3A+%22word%22%2C%0A++++%22key%22+%3A+%22word%22%2C%0A++++%22key_2%22+%3A+%22word_2%22%2C%0A++++%22object%22+%3A+%7B%0A++++++%22key_3%22+%3A+%22word_3%22%2C%0A++++++%22arrayOfStrings%22+%3A+%5B+%22test%22%2C+%22test_2%22%2C+%22test_3%22+%5D%0A++++%7D%2C%0A++++%22arrayOfObjects%22+%3A+%5B+%7B%0A++++++%22key_4%22+%3A+%22word_4%22%2C%0A++++++%22arrayOfStrings_2%22+%3A+%5B+%22test%22%2C+%22test_2%22%2C+%22test_3%22+%5D%0A++++%7D%2C+%7B%0A++++++%22okey_2%22+%3A+%22word_2%22%2C%0A++++++%22arrayOfStrings%22+%3A+%5B+%22test%22%2C+%22test_2%22%2C+%22test_3%22+%5D%0A++++%7D+%5D%0A++%7D%0A%7D%0A \ No newline at end of file +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+rename+subelements+in+object%0Arename%28%22object%22%2C+%22o%22%2C+%22__%22%29%0Arename%28%22object%22%2C+%22O%22%2C+%22%23%23%22%29%0A%0A&data=%7B%0A++%22object%22+%3A+%7B%0A++++%22okey%22+%3A+%22word%22%2C%0A++++%22key%22+%3A+%22word%22%2C%0A++++%22key_2%22+%3A+%22word_2%22%2C%0A++++%22object%22+%3A+%7B%0A++++++%22key_3%22+%3A+%22word_3%22%2C%0A++++++%22arrayOfStrings%22+%3A+%5B+%22test%22%2C+%22test_2%22%2C+%22test_3%22+%5D%0A++++%7D%2C%0A++++%22arrayOfObjects%22+%3A+%5B+%7B%0A++++++%22key_4%22+%3A+%22word_4%22%2C%0A++++++%22arrayOfStrings_2%22+%3A+%5B+%22test%22%2C+%22test_2%22%2C+%22test_3%22+%5D%0A++++%7D%2C+%7B%0A++++++%22okey_2%22+%3A+%22word_2%22%2C%0A++++++%22arrayOfStrings%22+%3A+%5B+%22test%22%2C+%22test_2%22%2C+%22test_3%22+%5D%0A++++%7D+%5D%0A++%7D%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/replace_all b/resources/examples/Fixes/replace_all index 8e42dbb..88bccf6 100644 --- a/resources/examples/Fixes/replace_all +++ b/resources/examples/Fixes/replace_all @@ -1 +1 @@ -https://test.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=replace_all%28%22key%22%2C+%22o%22%2C+%22__%22%29%0A&data=%7B%0A++%22key%22+%3A+%22board%22%0A%7D%0A%0A%0A%0A \ No newline at end of file +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=replace_all%28%22key%22%2C+%22o%22%2C+%22__%22%29%0A&data=%7B%0A++%22key%22+%3A+%22board%22%0A%7D%0A%0A%0A%0A \ No newline at end of file diff --git a/resources/examples/Fixes/retain b/resources/examples/Fixes/retain index a8c43d8..1b237f7 100644 --- a/resources/examples/Fixes/retain +++ b/resources/examples/Fixes/retain @@ -1 +1 @@ -https://test.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+Only+keep+certain+fields%0Aretain%28%22key%22%2C%22key3%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%2C%0A++%22key2%22+%3A+%22word2%22%2C%0A++%22key3%22+%3A+%22word3%22%2C%0A++%22key4%22+%3A+%22word4%22++%0A%7D%0A \ No newline at end of file +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+Only+keep+certain+fields%0Aretain%28%22key%22%2C%22key3%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%2C%0A++%22key2%22+%3A+%22word2%22%2C%0A++%22key3%22+%3A+%22word3%22%2C%0A++%22key4%22+%3A+%22word4%22++%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/set_array b/resources/examples/Fixes/set_array index 452bf96..bda6065 100644 --- a/resources/examples/Fixes/set_array +++ b/resources/examples/Fixes/set_array @@ -1 +1 @@ -https://test.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+an+empty+array/list%0Aset_array%28%22emptyArray%5B%5D%22%29%0A%0A%23+Add+an+array/list+with+values%0Aset_array%28%22array%5B%5D%22%2C%22value1%22%2C%22value2%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file +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+an+empty+array/list%0Aset_array%28%22emptyArray%5B%5D%22%29%0A%0A%23+Add+an+array/list+with+values%0Aset_array%28%22array%5B%5D%22%2C%22value1%22%2C%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/sort_field b/resources/examples/Fixes/sort_field index 2e60e29..6d696e2 100644 --- a/resources/examples/Fixes/sort_field +++ b/resources/examples/Fixes/sort_field @@ -1 +1 @@ -https://test.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=sort_field%28%22animals%5B%5D%22%29%0Asort_field%28%22numbers%5B%5D%22%29%0Asort_field%28%22numbers_2%5B%5D%22%2Cnumeric%3A%22true%22%29%0Asort_field%28%22animals_2%5B%5D%22%2Creverse%3A%22true%22%29%0Asort_field%28%22numbers_3%5B%5D%22%2C+numeric%3A%22true%22%2Creverse%3A%22true%22%29%0Asort_field%28%22animals_3%5B%5D%22%2C+uniq%3A%22true%22%29%0Asort_field%28%22numbers_4%5B%5D%22%2Cnumeric%3A%22true%22%2C+uniq%3A%22true%22%29%0A&data=%7B%0A++%22animals%22+%3A+%5B+%22dog%22%2C+%22cat%22%2C+%22cat%22%2C+%22zebra%22+%5D%2C%0A++%22animals_2%22+%3A+%5B+%22dog%22%2C+%22cat%22%2C+%22cat%22%2C+%22zebra%22+%5D%2C%0A++%22animals_3%22+%3A+%5B+%22dog%22%2C+%22cat%22%2C+%22cat%22%2C+%22zebra%22+%5D%2C%0A++%22numbers%22+%3A+%5B+%227%22%2C+%222%22%2C+%227%22%2C+%221%22%2C+%2210%22+%5D%2C%0A++%22numbers_2%22+%3A+%5B+%227%22%2C+%222%22%2C+%227%22%2C+%221%22%2C+%2210%22+%5D%2C%0A++%22numbers_3%22+%3A+%5B+%227%22%2C+%222%22%2C+%227%22%2C+%221%22%2C+%2210%22+%5D%2C%0A++%22numbers_4%22+%3A+%5B+%227%22%2C+%222%22%2C+%227%22%2C+%221%22%2C+%2210%22+%5D%0A%7D%0A \ No newline at end of file +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=sort_field%28%22animals%5B%5D%22%29%0Asort_field%28%22numbers%5B%5D%22%29%0Asort_field%28%22numbers_2%5B%5D%22%2Cnumeric%3A%22true%22%29%0Asort_field%28%22animals_2%5B%5D%22%2Creverse%3A%22true%22%29%0Asort_field%28%22numbers_3%5B%5D%22%2C+numeric%3A%22true%22%2Creverse%3A%22true%22%29%0Asort_field%28%22animals_3%5B%5D%22%2C+uniq%3A%22true%22%29%0Asort_field%28%22numbers_4%5B%5D%22%2Cnumeric%3A%22true%22%2C+uniq%3A%22true%22%29%0A&data=%7B%0A++%22animals%22+%3A+%5B+%22dog%22%2C+%22cat%22%2C+%22cat%22%2C+%22zebra%22+%5D%2C%0A++%22animals_2%22+%3A+%5B+%22dog%22%2C+%22cat%22%2C+%22cat%22%2C+%22zebra%22+%5D%2C%0A++%22animals_3%22+%3A+%5B+%22dog%22%2C+%22cat%22%2C+%22cat%22%2C+%22zebra%22+%5D%2C%0A++%22numbers%22+%3A+%5B+%227%22%2C+%222%22%2C+%227%22%2C+%221%22%2C+%2210%22+%5D%2C%0A++%22numbers_2%22+%3A+%5B+%227%22%2C+%222%22%2C+%227%22%2C+%221%22%2C+%2210%22+%5D%2C%0A++%22numbers_3%22+%3A+%5B+%227%22%2C+%222%22%2C+%227%22%2C+%221%22%2C+%2210%22+%5D%2C%0A++%22numbers_4%22+%3A+%5B+%227%22%2C+%222%22%2C+%227%22%2C+%221%22%2C+%2210%22+%5D%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/split_field b/resources/examples/Fixes/split_field index 2b6612d..e2c9d9b 100644 --- a/resources/examples/Fixes/split_field +++ b/resources/examples/Fixes/split_field @@ -1 +1 @@ -https://test.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=split_field%28%22tools%22%2C+%22--%22%29%0A&data=%7B%0A++%22tools%22+%3A+%22magic--arms--shapeShifting%22%0A%7D%0A%0A \ No newline at end of file +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=split_field%28%22tools%22%2C+%22--%22%29%0A&data=%7B%0A++%22tools%22+%3A+%22magic--arms--shapeShifting%22%0A%7D%0A%0A \ No newline at end of file diff --git a/resources/examples/Fixes/trim b/resources/examples/Fixes/trim index f15c39e..6fea612 100644 --- a/resources/examples/Fixes/trim +++ b/resources/examples/Fixes/trim @@ -1 +1 @@ -https://test.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+Delete+trailing+and+leading+whitespaces.%0Atrim%28%22key%22%29%0A&data=%7B%0A++%22key%22+%3A+%22+word+%22%0A%7D%0A \ No newline at end of file +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+Delete+trailing+and+leading+whitespaces.%0Atrim%28%22key%22%29%0A&data=%7B%0A++%22key%22+%3A+%22+word+%22%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/Fixes/upcase b/resources/examples/Fixes/upcase index 068387a..1907d8c 100644 --- a/resources/examples/Fixes/upcase +++ b/resources/examples/Fixes/upcase @@ -1 +1 @@ -https://test.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=upcase%28%22key%22%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%0A%7D%0A \ No newline at end of file +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=upcase%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/vacuum b/resources/examples/Fixes/vacuum index 70b82d7..3264b20 100644 --- a/resources/examples/Fixes/vacuum +++ b/resources/examples/Fixes/vacuum @@ -1 +1 @@ -https://test.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+Deletes+empty+elements%0Avacuum%28%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%2C%0A++%22empty%22+%3A+%22%22%0A%7D%0A \ No newline at end of file +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+Deletes+empty+elements%0Avacuum%28%29%0A&data=%7B%0A++%22key%22+%3A+%22word%22%2C%0A++%22empty%22+%3A+%22%22%0A%7D%0A \ No newline at end of file diff --git a/resources/examples/How_to_use_the_Playground b/resources/examples/How_to_use_the_Playground index 1fa3acf..8bc7147 100644 --- a/resources/examples/How_to_use_the_Playground +++ b/resources/examples/How_to_use_the_Playground @@ -1 +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 \ No newline at end of file +https://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 \ No newline at end of file diff --git a/resources/examples/experimental/Large_Input_HTTP b/resources/examples/experimental/Large_Input_HTTP index 8727332..97206b4 100644 --- a/resources/examples/experimental/Large_Input_HTTP +++ b/resources/examples/experimental/Large_Input_HTTP @@ -1 +1 @@ -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 \ No newline at end of file +https://metafacture.org/playground/?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 \ No newline at end of file diff --git a/resources/examples/experimental/Post-to-Reconciliation-API b/resources/examples/experimental/Post-to-Reconciliation-API index 05bab00..1f23a11 100644 --- a/resources/examples/experimental/Post-to-Reconciliation-API +++ b/resources/examples/experimental/Post-to-Reconciliation-API @@ -1 +1 @@ -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 \ No newline at end of file +https://metafacture.org/playground/?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 \ No newline at end of file diff --git a/resources/examples/experimental/Result_as_file_download b/resources/examples/experimental/Result_as_file_download index 25b981a..4cee350 100644 --- a/resources/examples/experimental/Result_as_file_download +++ b/resources/examples/experimental/Result_as_file_download @@ -1 +1 @@ -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 \ No newline at end of file +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%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 \ No newline at end of file diff --git a/resources/examples/experimental/Web_JSON_to_JSON_(fix) b/resources/examples/experimental/Web_JSON_to_JSON_(fix) index 1dccbde..0e020aa 100644 --- a/resources/examples/experimental/Web_JSON_to_JSON_(fix) +++ b/resources/examples/experimental/Web_JSON_to_JSON_(fix) @@ -1 +1 @@ -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 \ No newline at end of file +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%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 \ No newline at end of file diff --git a/resources/examples/experimental/Web_Pica-to-MarcXML_(morph) b/resources/examples/experimental/Web_Pica-to-MarcXML_(morph) index a62d540..f1814a3 100644 --- a/resources/examples/experimental/Web_Pica-to-MarcXML_(morph) +++ b/resources/examples/experimental/Web_Pica-to-MarcXML_(morph) @@ -1 +1 @@ -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 \ No newline at end of file +https://metafacture.org/playground/?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 \ No newline at end of file diff --git a/resources/examples/experimental/XML_repeated_fields b/resources/examples/experimental/XML_repeated_fields index ae908d4..3bb50f1 100644 --- a/resources/examples/experimental/XML_repeated_fields +++ b/resources/examples/experimental/XML_repeated_fields @@ -1 +1 @@ -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 \ No newline at end of file +https://metafacture.org/playground/?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 \ No newline at end of file