Z25704

{
    "Z1K1": "Z2",
    "Z2K1": {
        "Z1K1": "Z6",
        "Z6K1": "Z25704"
    },
    "Z2K2": {
        "Z1K1": "Z64",
        "Z64K1": "Z25704",
        "Z64K2": "Z6010",
        "Z64K3": {
            "Z1K1": "Z16",
            "Z16K1": "Z600",
            "Z16K2": "function Z25704( Z25704K1 ) {\r\n\t// In converting the rational numbers, we choose not to divide by greatest common divisor,\r\n\t// so the approach here may differ from the approach in the Rational number converters.\r\n\r\n\tfunction makeRational( fraction ) {\r\n\t\tlet signzid = 'Z16660';\r\n\t\tconst product = fraction.K1 * fraction.K2;\r\n\t\tif (product \u003C 0n) {\r\n\t\t\tsignzid = 'Z16662';\r\n\t\t} else if (product === 0n) {\r\n\t\t\tsignzid = 'Z16661';\r\n\t\t}\r\n\t\tconst numerator = (fraction.K1 \u003E 0) ? fraction.K1 : (fraction.K1 * -1n);\r\n\t\tconst denominator = (fraction.K2 \u003E 0) ? fraction.K2 : (fraction.K2 * -1n);\r\n\t\treturn {\r\n\t\t\t\"Z1K1\": {\r\n\t\t\t\t\"Z1K1\": \"Z9\",\r\n\t\t\t\t\"Z9K1\": \"Z19677\"\r\n\r\n\t\t\t},\r\n\t\t\t\"Z19677K1\": {\r\n\t\t\t\t\"Z1K1\": {\r\n\t\t\t\t\t\"Z1K1\": \"Z9\",\r\n\t\t\t\t\t\"Z9K1\": \"Z16659\"\r\n\t\t\t\t},\r\n\t\t\t\t\"Z16659K1\": {\r\n\t\t\t\t\t\"Z1K1\": \"Z9\",\r\n\t\t\t\t\t\"Z9K1\": signzid\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"Z19677K2\": {\r\n\t\t\t\t\"Z1K1\": {\r\n\t\t\t\t\t\"Z1K1\": \"Z9\",\r\n\t\t\t\t\t\"Z9K1\": \"Z13518\"\r\n\t\t\t\t},\r\n\t\t\t\t\"Z13518K1\": {\r\n\t\t\t\t\t\"Z1K1\": \"Z6\",\r\n\t\t\t\t\t\"Z6K1\": numerator.toString()\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t\"Z19677K3\": {\r\n\t\t\t\t\"Z1K1\": {\r\n\t\t\t\t\t\"Z1K1\": \"Z9\",\r\n\t\t\t\t\t\"Z9K1\": \"Z13518\"\r\n\t\t\t\t},\r\n\t\t\t\t\"Z13518K1\": {\r\n\t\t\t\t\t\"Z1K1\": \"Z6\",\r\n\t\t\t\t\t\"Z6K1\": denominator.toString()\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}\r\n\r\n\tfunction makeVoid() {\r\n\t\treturn { \"Z1K1\": \"Z9\",\"Z9K1\": \"Z24\" };\r\n\t}\r\n\r\n\tconst amount = makeRational( Z25704K1.K1 );\r\n\r\n\tlet lowerBound;\r\n\tif ( Z25704K1.K2 === null ) {\r\n\t\tlowerBound = makeVoid();\r\n\t} else {\r\n\t\tlowerBound = makeRational( Z25704K1.K2 );\r\n\t}\r\n\r\n\tlet upperBound;\r\n\tif ( Z25704K1.K3 === null ) {\r\n\t\tupperBound = makeVoid();\r\n\t} else {\r\n\t\tupperBound = makeRational( Z25704K1.K3 );\r\n\t}\r\n\r\n\tconst unit = {\r\n\t\t\"Z1K1\": {\r\n\t\t\t\"Z1K1\": \"Z9\",\r\n\t\t\t\"Z9K1\": \"Z6091\"\r\n\t\t},\r\n\t\t\"Z6091K1\": {\r\n\t\t\t\"Z1K1\": \"Z6\",\r\n\t\t\t\"Z6K1\": Z25704K1.K4\r\n\t\t}\r\n\t};\r\n\r\n\treturn {\r\n\t\t\"Z1K1\": {\r\n\t\t\t\"Z1K1\": \"Z9\",\r\n\t\t\t\"Z9K1\": \"Z6010\"\r\n\t\t},\r\n\t\t\"Z6010K1\": amount,\r\n\t\t\"Z6010K2\": lowerBound,\r\n\t\t\"Z6010K3\": upperBound,\r\n\t\t\"Z6010K4\": unit\r\n\t};\r\n}"
        },
        "Z64K4": "Object"
    },
    "Z2K3": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11",
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1002",
                "Z11K2": "Convert to Wikidata quantity, JavaScript"
            }
        ]
    },
    "Z2K4": {
        "Z1K1": "Z32",
        "Z32K1": [
            "Z31"
        ]
    },
    "Z2K5": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11"
        ]
    }
}