{ "description": "Test `smw/schema` on `PROPERTY_CONSTRAINT_SCHEMA` with `non_negative_integer` and `Constraint schema`", "setup": [ { "namespace": "SMW_NS_SCHEMA", "page": "Constraint:NonNegative", "contents": { "import-from": "/../Fixtures/p-1101-constraint-non-negative.json" } }, { "namespace": "SMW_NS_PROPERTY", "page": "Has int", "contents": "[[Has type::Number]] [[Constraint schema::Constraint:NonNegative]]" }, { "page": "P1101/1", "contents": "[[Has int::-1]]" }, { "page": "P1101/2", "contents": "[[Has int::1001]]" }, { "page": "P1101/3", "contents": "[[Has int::0]]" } ], "tests": [ { "type": "parser", "about": "#0 (invalid assignment on `non_negative_integer`)", "subject": "P1101/1", "assert-store": { "semantic-data": { "strict-mode-valuematch": false, "propertyCount": 3, "propertyKeys": [ "_SKEY", "_MDAT", "_ERRC" ] } } }, { "type": "parser", "about": "#0.1 (invalid assignment on `non_negative_integer`)", "namespace": "NS_MAIN", "subject": "P1101/1#_ERR47ba1a0b46170006c2bb5ef6c8cea171", "assert-store": { "semantic-data": { "strict-mode-valuematch": false, "propertyCount": 4, "propertyKeys": [ "_SKEY", "_ERRT", "_ERRP", "_ERR_TYPE" ], "propertyValues": [ { "serialization": "[2,\"smw-constraint-violation-non-negative-integer\",\"Has int\",\"-1\"]" } ] } } }, { "type": "parser", "about": "#1 (valid assignment on `non_negative_integer`)", "subject": "P1101/2", "assert-store": { "semantic-data": { "strict-mode-valuematch": false, "propertyCount": 3, "propertyKeys": [ "_SKEY", "_MDAT", "Has int" ], "propertyValues": [ "1001" ] } } }, { "type": "parser", "about": "#2 (valid assignment on `non_negative_integer`)", "subject": "P1101/3", "assert-store": { "semantic-data": { "strict-mode-valuematch": false, "propertyCount": 3, "propertyKeys": [ "_SKEY", "_MDAT", "Has int" ], "propertyValues": [ "0" ] } } } ], "settings": { "wgContLang": "en", "wgLang": "en", "smwgPageSpecialProperties": [ "_MDAT" ], "smwgNamespacesWithSemanticLinks": { "NS_MAIN": true, "SMW_NS_PROPERTY": true, "SMW_NS_SCHEMA": true } }, "meta": { "version": "2", "is-incomplete": false, "debug": false } }