Quantcast

Retrieve property values as defined in integration tests

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Retrieve property values as defined in integration tests

Toni Hermoso Pulido-3
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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
Loading...