{ "description": "Test in-text annotation for different `_dat` input/output (en, skip virtuoso, `smwgDVFeatures`)", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has date", "contents": "[[Has type::Date]]" }, { "page": "Example/P0413/1", "contents": "[[Has date::Feb 11 2000 10:00:01]]" }, { "page": "Example/P0413/1a", "contents": "{{#ask: [[Example/P0413/1]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date }}" }, { "page": "Example/P0413/2", "contents": "[[Has date::Feb 11 2000]]" }, { "page": "Example/P0413/2a", "contents": "{{#ask: [[Example/P0413/2]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date }}" }, { "page": "Example/P0413/3", "contents": "[[Has date::2000]]" }, { "page": "Example/P0413/3a", "contents": "{{#ask: [[Example/P0413/3]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date }}" }, { "page": "Example/P0413/4", "contents": "[[Has date::Feb 11 2000 10:00:01 PM]]" }, { "page": "Example/P0413/4a", "contents": "{{#ask: [[Example/P0413/4]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date }}" }, { "page": "Example/P0413/5", "contents": "[[Has date::Feb 11 2000 22:00:01]]" }, { "page": "Example/P0413/5a", "contents": "{{#ask: [[Example/P0413/5]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date }}" }, { "page": "Example/P0413/6", "contents": "[[Has date::2000-02-11T22:00:01]]" }, { "page": "Example/P0413/6a", "contents": "{{#ask: [[Example/P0413/6]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date }}" }, { "page": "Example/P0413/7", "contents": "[[Has date::2000-02-11T22:00:01+02:00]]" }, { "page": "Example/P0413/7a", "contents": "{{#ask: [[Example/P0413/7]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date }}" }, { "page": "Example/P0413/8", "contents": "[[Has date::2000 February 2]]" }, { "page": "Example/P0413/8a", "contents": "{{#ask: [[Example/P0413/8]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date }}" }, { "page": "Example/P0413/9", "contents": "[[Has date::2-3-2000]]" }, { "page": "Example/P0413/9a", "contents": "{{#ask: [[Example/P0413/9]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date }}" }, { "page": "Example/P0413/10", "contents": "[[Has date::2/3/2000]]" }, { "page": "Example/P0413/10a", "contents": "{{#ask: [[Example/P0413/10]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date }}" }, { "skip-on": { "virtuoso": "Virtuoso 6.1 does not support BC/BCE dates" }, "page": "Example/P0413/11", "contents": "[[Has date::Jan 1 300 BC]]" }, { "skip-on": { "virtuoso": "Virtuoso 6.1 does not support BC/BCE dates" }, "page": "Example/P0413/11a", "contents": "{{#ask: [[Example/P0413/11]] |?Has date |?Has date#GR |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date |?Has date#JD=JD }}" }, { "skip-on": { "virtuoso": "Virtuoso 6.1 does not support BC/BCE dates" }, "page": "Example/P0413/12", "contents": "[[Has date::14000000000 BC]] (WIN-OS only allows 2147483647)" }, { "skip-on": { "virtuoso": "Virtuoso 6.1 does not support BC/BCE dates" }, "page": "Example/P0413/12a", "contents": "{{#ask: [[Example/P0413/12]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date }}" }, { "page": "Example/P0413/13", "contents": "[[Has date::Feb 11 2000 Jl]]" }, { "page": "Example/P0413/13a", "contents": "{{#ask: [[Example/P0413/13]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date |?Has date#JL=JL Date |?Has date#GR=GR Date }}" }, { "page": "Example/P0413/14", "contents": "[[Has date::Feb 11 1492 Gr]]" }, { "page": "Example/P0413/14a", "contents": "{{#ask: [[Example/P0413/14]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date |?Has date#JL=JL Date |?Has date#GR=GR Date }}" }, { "page": "Example/P0413/15", "contents": "[[Has date::Feb 11 2000 10:00 GMT]]" }, { "page": "Example/P0413/15a", "contents": "{{#ask: [[Example/P0413/15]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date |?Has date#JL=JL Date |?Has date#GR=GR Date }}" }, { "page": "Example/P0413/16", "contents": "[[Has date::2000-02-22]]" }, { "page": "Example/P0413/16a", "contents": "{{#ask: [[Example/P0413/16]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date }}" }, { "skip-on": { "virtuoso": "Virtuoso 6.1 does not support BC/BCE dates" }, "page": "Example/P0413/17", "contents": "[[Has date::11000 BC]]" }, { "skip-on": { "virtuoso": "Virtuoso 6.1 does not support BC/BCE dates" }, "page": "Example/P0413/17a", "contents": "{{#ask: [[Example/P0413/17]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date }}" }, { "page": "Example/P0413/18", "contents": "[[Has date::2488346.0804977 JD]]" }, { "page": "Example/P0413/18a", "contents": "{{#ask: [[Example/P0413/18]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date |?Has date#JD=JD }}" }, { "page": "Example/P0413/19", "contents": "[[Has date::2488346.0804977 MJD]]" }, { "page": "Example/P0413/19a", "contents": "{{#ask: [[Example/P0413/19]] |?Has date |?Has date#- |?Has date#ISO=ISO Date |?Has date#MEDIAWIKI=MW Date |?Has date#JD=JD }}" } ], "tests": [ { "type": "parser", "about": "#0 Complete date with time", "subject": "Example/P0413/1", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "2000-02-11T10:00:01" ] } }, "assert-output": { "to-contain": [ "Feb 11 2000 10:00:01" ] } }, { "type": "parser", "about": "#1", "subject": "Example/P0413/1a", "assert-output": { "to-contain": [ "11 February 2000 10:00:01", "2000-02-11T10:00:01", "2000-02-11T10:00:01", "10:00, 11 February 2000" ] } }, { "type": "parser", "about": "#2 Just a date", "subject": "Example/P0413/2", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "2000-02-11" ] } }, "assert-output": { "to-contain": [ "Feb 11 2000" ] } }, { "type": "parser", "about": "#3", "subject": "Example/P0413/2a", "assert-output": { "to-contain": [ "11 February 2000", "2000-02-11", "2000-02-11", "11 February 2000" ] } }, { "type": "parser", "about": "#4 Yearby itself", "subject": "Example/P0413/3", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "2000-01-01" ] } }, "assert-output": { "to-contain": [ "2000" ] } }, { "type": "parser", "about": "#5", "subject": "Example/P0413/3a", "assert-output": { "to-contain": [ "2000", "2000-01-01", "2000-01-01", "2000" ] } }, { "type": "parser", "about": "#6 Complete date with time, PM", "subject": "Example/P0413/4", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "2000-02-11T22:00:01" ] } }, "assert-output": { "to-contain": [ "Feb 11 2000 10:00:01 PM" ] } }, { "type": "parser", "about": "#7", "subject": "Example/P0413/4a", "assert-output": { "to-contain": [ "11 February 2000 22:00:01", "2000-02-11T22:00:01", "2000-02-11T22:00:01", "22:00, 11 February 2000" ] } }, { "type": "parser", "about": "#8 Complete date with 24h time", "subject": "Example/P0413/5", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "2000-02-11T22:00:01" ] } }, "assert-output": { "to-contain": [ "Feb 11 2000 22:00:01" ] } }, { "type": "parser", "about": "#9", "subject": "Example/P0413/5a", "assert-output": { "to-contain": [ "11 February 2000 22:00:01", "2000-02-11T22:00:01", "2000-02-11T22:00:01", "22:00, 11 February 2000" ] } }, { "type": "parser", "about": "#10 ISO-style date", "subject": "Example/P0413/6", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "2000-02-11T22:00:01" ] } }, "assert-output": { "to-contain": [ "2000-02-11T22:00:01" ] } }, { "type": "parser", "about": "#11", "subject": "Example/P0413/6a", "assert-output": { "to-contain": [ "11 February 2000 22:00:01", "2000-02-11T22:00:01", "2000-02-11T22:00:01", "22:00, 11 February 2000" ] } }, { "type": "parser", "about": "#12 ISO-style date with offset", "subject": "Example/P0413/7", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "2000-02-11T20:00:01" ] } }, "assert-output": { "to-contain": [ "2000-02-11T22:00:01+02:00" ] } }, { "type": "parser", "about": "#13", "subject": "Example/P0413/7a", "assert-output": { "to-contain": [ "11 February 2000 20:00:01", "2000-02-11T20:00:01", "2000-02-11T20:00:01", "20:00, 11 February 2000" ] } }, { "type": "parser", "about": "#14 varying order of inputs", "subject": "Example/P0413/8", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "2000-02-02" ] } }, "assert-output": { "to-contain": [ "2000 February 2" ] } }, { "type": "parser", "about": "#15", "subject": "Example/P0413/8a", "assert-output": { "to-contain": [ "2 February 2000", "2000-02-02", "2000-02-02", "2 February 2000" ] } }, { "type": "parser", "about": "#16 preferred interpretation, month or day, sometimes depends on language settings", "subject": "Example/P0413/9", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "2000-02-03" ] } }, "assert-output": { "to-contain": [ "2-3-2000" ] } }, { "type": "parser", "about": "#17", "subject": "Example/P0413/9a", "assert-output": { "to-contain": [ "3 February 2000", "2000-02-03", "2000-02-03", "3 February 2000" ] } }, { "type": "parser", "about": "#18 various kinds of separators (/) are recognized in all languages", "subject": "Example/P0413/10", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "2000-02-03" ] } }, "assert-output": { "to-contain": [ "2/3/2000" ] } }, { "type": "parser", "about": "#19", "subject": "Example/P0413/10a", "assert-output": { "to-contain": [ "3 February 2000", "2000-02-03", "2000-02-03", "3 February 2000" ] } }, { "type": "parser", "about": "#20 Dates BC/Before common era", "skip-on": { "virtuoso": "Virtuoso 6.1 does not support BC/BCE dates" }, "subject": "Example/P0413/11", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "--301-12-28" ] } }, "assert-output": { "to-contain": [ "Jan 1 300 BC" ] } }, { "type": "parser", "about": "#21", "skip-on": { "virtuoso": "Virtuoso 6.1 does not support BC/BCE dates" }, "subject": "Example/P0413/11a", "assert-output": { "to-contain": [ "1 January 300 BC JL", "28 December 301 BC", "--301-12-28", "--301-12-28", "28 December 0000", "1611848.5" ] } }, { "type": "parser", "about": "#24 Julian Calendar annotated date", "subject": "Example/P0413/13", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "2000-02-24" ] } }, "assert-output": { "to-contain": [ "Feb 11 2000 Jl" ] } }, { "type": "parser", "about": "#25", "subject": "Example/P0413/13a", "assert-output": { "to-contain": [ "11 February 2000 JL", "2000-02-24", "2000-02-24", "24 February 2000", "11 February 2000 JL", "24 February 2000" ] } }, { "type": "parser", "about": "#26 Gregorian Calendar annotated date", "subject": "Example/P0413/14", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "1492-02-11" ] } }, "assert-output": { "to-contain": [ "Feb 11 1492 Gr" ] } }, { "type": "parser", "about": "#27", "subject": "Example/P0413/14a", "assert-output": { "to-contain": [ "2 February 1492 JL", "1492-02-11", "1492-02-11", "11 February 1492", "2 February 1492 JL", "11 February 1492" ] } }, { "type": "parser", "about": "#28 Date with time zone shortcut", "subject": "Example/P0413/15", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "2000-02-11T10:00:00" ] } }, "assert-output": { "to-contain": [ "Feb 11 2000 10:00 GMT" ] } }, { "type": "parser", "about": "#29", "subject": "Example/P0413/15a", "assert-output": { "to-contain": [ "11 February 2000 10:00:00", "2000-02-11T10:00:00", "2000-02-11T10:00:00", "10:00, 11 February 2000", "29 January 2000 10:00:00 JL", "11 February 2000 10:00:00" ] } }, { "type": "parser", "about": "#30 MySQL date format", "subject": "Example/P0413/16", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "2000-02-22" ] } }, "assert-output": { "to-contain": [ "2000-02-22" ] } }, { "type": "parser", "about": "#31", "subject": "Example/P0413/16a", "assert-output": { "to-contain": [ "22 February 2000", "2000-02-22", "2000-02-22", "22 February 2000" ] } }, { "type": "parser", "about": "#32 Pre-history", "skip-on": { "virtuoso": "Virtuoso 6.1 does not support BC/BCE dates" }, "subject": "Example/P0413/17", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "--11000-01-01" ] } }, "assert-output": { "to-contain": [ "11000 BC" ] } }, { "type": "parser", "about": "#33", "skip-on": { "virtuoso": "Virtuoso 6.1 does not support BC/BCE dates" }, "subject": "Example/P0413/17a", "assert-output": { "to-contain": [ "11000 BC", "--11000-01-01", "--11000-01-01", "0000" ] } }, { "type": "parser", "about": "#34 Direct JD input", "subject": "Example/P0413/18", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "2100-10-04T13:55:55" ] } }, "assert-output": { "to-contain": [ "2488346.0804977 JD" ] } }, { "type": "parser", "about": "#35", "subject": "Example/P0413/18a", "assert-output": { "to-contain": [ "4 October 2100 13:55:55", "2100-10-04T13:55:55", "2100-10-04T13:55:55", "13:55, 4 October 2100", "2488346.0804977" ] } }, { "type": "parser", "about": "#36 Direct MJD input", "subject": "Example/P0413/19", "assert-store": { "semantic-data": { "strictPropertyValueMatch": false, "propertyCount": 3, "propertyKeys": [ "Has_date", "_SKEY", "_MDAT" ], "propertyValues": [ "8671-09-27T01:55:55" ] } }, "assert-output": { "to-contain": [ "2488346.0804977 MJD" ] } }, { "type": "parser", "about": "#37", "subject": "Example/P0413/19a", "assert-output": { "to-contain": [ "27 September 8671 01:55:55", "8671-09-27T01:55:55", "8671-09-27T01:55:55", "01:55, 27 September 8671", "4888346.5804977" ] } } ], "settings": { "wgContLang": "en", "wgLang": "en", "smwgDVFeatures": [ "SMW_DV_TIMEV_CM" ] }, "meta": { "version": "2", "is-incomplete": false, "debug": false } }