From cb8988ebcf20220bf12b5bad1dfb3f8dbf799879 Mon Sep 17 00:00:00 2001 From: TobiasNx Date: Thu, 23 Nov 2023 14:28:58 +0100 Subject: [PATCH 1/2] Add more flux examples --- resources/examples/Flux_Commands/encode-json | 1 + resources/examples/Flux_Commands/encode-yaml | 1 + resources/examples/Flux_Commands/lines-to-records | 1 + 3 files changed, 3 insertions(+) create mode 100644 resources/examples/Flux_Commands/encode-json create mode 100644 resources/examples/Flux_Commands/encode-yaml create mode 100644 resources/examples/Flux_Commands/lines-to-records diff --git a/resources/examples/Flux_Commands/encode-json b/resources/examples/Flux_Commands/encode-json new file mode 100644 index 0000000..f9f9a35 --- /dev/null +++ b/resources/examples/Flux_Commands/encode-json @@ -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-json%28prettyPrinting%3D%22true%22%29%0A%7C+print%0A%3B \ No newline at end of file diff --git a/resources/examples/Flux_Commands/encode-yaml b/resources/examples/Flux_Commands/encode-yaml new file mode 100644 index 0000000..03ae8fc --- /dev/null +++ b/resources/examples/Flux_Commands/encode-yaml @@ -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-yaml%0A%7C+print%0A%3B \ No newline at end of file diff --git a/resources/examples/Flux_Commands/lines-to-records b/resources/examples/Flux_Commands/lines-to-records new file mode 100644 index 0000000..f50383f --- /dev/null +++ b/resources/examples/Flux_Commands/lines-to-records @@ -0,0 +1 @@ +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+encode-pica%0A%7C+print%0A%3B \ No newline at end of file From a604c11039a1bf7bb776239225081bbb78aa4f99 Mon Sep 17 00:00:00 2001 From: TobiasNx Date: Thu, 23 Nov 2023 17:11:41 +0100 Subject: [PATCH 2/2] Update decode-html example schema.org breaks due to arbitrary change from html to binary/gzip. --- resources/examples/Flux_Commands/decode-html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/examples/Flux_Commands/decode-html b/resources/examples/Flux_Commands/decode-html index 4d309e7..69be4c6 100644 --- a/resources/examples/Flux_Commands/decode-html +++ b/resources/examples/Flux_Commands/decode-html @@ -1 +1 @@ -https://metafacture.org/playground/?flux=%22https%3A//schema.org/%22%0A%7C+open-http%0A%7C+decode-html%28attrValsAsSubfields%3D%22%26p.class%26a.class%26div.class%26span.class%22%29%0A%7C+fix%28transformationFile%29%0A%7C+encode-json%28prettyPrinting%3D%22true%22%29%0A%7C+print%0A%3B&transformation=copy_field%28%22html.head.title.value%22%2C%22title%22%29%0Acopy_field%28%22html.head.meta.%2A.description%22%2C%22description%22%29%0Aretain%28%22title%22%2C%22description%22%29 \ No newline at end of file +https://metafacture.org/playground/?flux=%22https%3A//github.com/metafacture%22%0A%7C+open-http%0A%7C+decode-html%28attrValsAsSubfields%3D%22%26p.class%26a.class%26div.class%26span.class%22%29%0A%7C+fix%28transformationFile%29%0A%7C+encode-json%28prettyPrinting%3D%22true%22%29%0A%7C+print%0A%3B&transformation=copy_field%28%22html.head.title.value%22%2C%22title%22%29%0Acopy_field%28%22html.head.meta.%2A.description%22%2C%22description%22%29%0Aretain%28%22title%22%2C%22description%22%29 \ No newline at end of file