{ "description": "Test in-text annotation `_uri` on valid/invalid scheme/path", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has url", "contents": "[[Has type::URL]]" }, { "page": "Example/P0503/1", "contents": "[[Has url::ftp://example.com/foo]]" }, { "page": "Example/P0503/2", "contents": "[[Has url::User:Test]]" }, { "page": "Example/P0503/3", "contents": "[[Has url::http:///]]" }, { "page": "Example/P0503/Q.1", "contents": "{{#ask: [[Has url::User:Test]] |default=No result }}" } ], "tests": [ { "type": "parser", "about": "#0 valid ftp", "subject": "Example/P0503/1", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "_SKEY", "_MDAT", "Has url" ], "propertyValues": [ "ftp://example.com/foo" ] } } }, { "type": "parser", "about": "#1 invalid User:", "subject": "Example/P0503/2", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "_SKEY", "_MDAT", "_ERRC" ] } } }, { "type": "parser", "about": "#2 (allow invalid scheme in query context)", "subject": "Example/P0503/Q.1", "assert-output": { "to-contain": [ "No result" ], "not-contain": [ "