diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0413.json')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0413.json | 882 |
1 files changed, 882 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0413.json b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0413.json new file mode 100644 index 00000000..5a4d28e2 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/tests/phpunit/Integration/JSONScript/TestCases/p-0413.json @@ -0,0 +1,882 @@ +{ + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451585.9166782\">11 February 2000 10:00:01</td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451585.9166782\">2000-02-11T10:00:01</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"2451585.9166782\">2000-02-11T10:00:01</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"2451585.9166782\">10:00, 11 February 2000</td>" + ] + } + }, + { + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451585.5\">11 February 2000</td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451585.5\">2000-02-11</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"2451585.5\">2000-02-11</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"2451585.5\">11 February 2000</td>" + ] + } + }, + { + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451544.5\">2000</td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451544.5\">2000-01-01</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"2451544.5\">2000-01-01</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"2451544.5\">2000</td>" + ] + } + }, + { + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451586.4166782\">11 February 2000 22:00:01</td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451586.4166782\">2000-02-11T22:00:01</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"2451586.4166782\">2000-02-11T22:00:01</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"2451586.4166782\">22:00, 11 February 2000</td>" + ] + } + }, + { + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451586.4166782\">11 February 2000 22:00:01</td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451586.4166782\">2000-02-11T22:00:01</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"2451586.4166782\">2000-02-11T22:00:01</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"2451586.4166782\">22:00, 11 February 2000</td>" + ] + } + }, + { + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451586.4166782\">11 February 2000 22:00:01</td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451586.4166782\">2000-02-11T22:00:01</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"2451586.4166782\">2000-02-11T22:00:01</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"2451586.4166782\">22:00, 11 February 2000</td>" + ] + } + }, + { + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451586.3333449\">11 February 2000 20:00:01</td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451586.3333449\">2000-02-11T20:00:01</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"2451586.3333449\">2000-02-11T20:00:01</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"2451586.3333449\">20:00, 11 February 2000</td>" + ] + } + }, + { + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451576.5\">2 February 2000</td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451576.5\">2000-02-02</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"2451576.5\">2000-02-02</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"2451576.5\">2 February 2000</td>" + ] + } + }, + { + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451577.5\">3 February 2000</td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451577.5\">2000-02-03</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"2451577.5\">2000-02-03</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"2451577.5\">3 February 2000</td>" + ] + } + }, + { + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451577.5\">3 February 2000</td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451577.5\">2000-02-03</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"2451577.5\">2000-02-03</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"2451577.5\">3 February 2000</td>" + ] + } + }, + { + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"1611848.5\">1 January 300 BC <sup>JL</sup></td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"1611848.5\">28 December 301 BC</td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"1611848.5\">--301-12-28</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"1611848.5\">--301-12-28</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"1611848.5\">28 December 0000</td>", + "<td class=\"JD smwtype_dat\" data-sort-value=\"1611848.5\">1611848.5</td>" + ] + } + }, + { + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451598.5\">11 February 2000 <sup>JL</sup></td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451598.5\">2000-02-24</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"2451598.5\">2000-02-24</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"2451598.5\">24 February 2000</td>", + "<td class=\"JL-Date smwtype_dat\" data-sort-value=\"2451598.5\">11 February 2000 <sup>JL</sup></td>", + "<td class=\"GR-Date smwtype_dat\" data-sort-value=\"2451598.5\">24 February 2000</td>" + ] + } + }, + { + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2266042.5\">2 February 1492 <sup>JL</sup></td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2266042.5\">1492-02-11</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"2266042.5\">1492-02-11</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"2266042.5\">11 February 1492</td>", + "<td class=\"JL-Date smwtype_dat\" data-sort-value=\"2266042.5\">2 February 1492 <sup>JL</sup></td>", + "<td class=\"GR-Date smwtype_dat\" data-sort-value=\"2266042.5\">11 February 1492</td>" + ] + } + }, + { + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451585.9166667\">11 February 2000 10:00:00</td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451585.9166667\">2000-02-11T10:00:00</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"2451585.9166667\">2000-02-11T10:00:00</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"2451585.9166667\">10:00, 11 February 2000</td>", + "<td class=\"JL-Date smwtype_dat\" data-sort-value=\"2451585.9166667\">29 January 2000 10:00:00 <sup>JL</sup></td>", + "<td class=\"GR-Date smwtype_dat\" data-sort-value=\"2451585.9166667\">11 February 2000 10:00:00</td>" + ] + } + }, + { + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451596.5\">22 February 2000</td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2451596.5\">2000-02-22</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"2451596.5\">2000-02-22</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"2451596.5\">22 February 2000</td>" + ] + } + }, + { + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"-11001\">11000 BC</td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"-11001\">--11000-01-01</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"-11001\">--11000-01-01</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"-11001\">0000</td>" + ] + } + }, + { + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2488346.0804977\">4 October 2100 13:55:55</td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"2488346.0804977\">2100-10-04T13:55:55</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"2488346.0804977\">2100-10-04T13:55:55</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"2488346.0804977\">13:55, 4 October 2100</td>", + "<td class=\"JD smwtype_dat\" data-sort-value=\"2488346.0804977\">2488346.0804977</td>" + ] + } + }, + { + "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": [ + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"4888346.5804977\">27 September 8671 01:55:55</td>", + "<td class=\"Has-date smwtype_dat\" data-sort-value=\"4888346.5804977\">8671-09-27T01:55:55</td>", + "<td class=\"ISO-Date smwtype_dat\" data-sort-value=\"4888346.5804977\">8671-09-27T01:55:55</td>", + "<td class=\"MW-Date smwtype_dat\" data-sort-value=\"4888346.5804977\">01:55, 27 September 8671</td>", + "<td class=\"JD smwtype_dat\" data-sort-value=\"4888346.5804977\">4888346.5804977</td>" + ] + } + } + ], + "settings": { + "wgContLang": "en", + "wgLang": "en", + "smwgDVFeatures": [ + "SMW_DV_TIMEV_CM" + ] + }, + "meta": { + "version": "2", + "is-incomplete": false, + "debug": false + } +}
\ No newline at end of file |