Discussion:
[SMW-devel] Retrieve property values as defined in integration tests
Toni Hermoso Pulido
2017-01-30 16:49:27 UTC
Permalink
Hello,

I'm creating an integration test and I'm wondering wheter there is an
easy way to retrieve an actual property value (raw value I guess) from a
local wiki.

An example from:

https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/tests/phpunit/Integration/JSONScript/TestCases/p-0413.json


{
"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"
]
}
},


where:


{
"page": "Example/P0413/7",
"contents": "[[Has date::2000-02-11T22:00:01+02:00]]"
},

Summarizing, where/how can I get this: propertyValue ->
"2000-02-11T20:00:01" in a local wiki I might be testing the same thing.

Thanks!
--
Toni Hermoso Pulido
http://www.cau.cat
http://www.similis.cc
Loading...