77 lines
1.7 KiB
JSON
77 lines
1.7 KiB
JSON
{
|
|
"description": "Test to map `Foaf` property from back-end / using a localized predefined property `A le type@fr` (en)",
|
|
"setup": [
|
|
{
|
|
"namespace": "NS_MEDIAWIKI",
|
|
"page": "Smw import foaf",
|
|
"contents": "http://xmlns.com/foaf/0.1/|[http://www.foaf-project.org/ Friend Of A Friend]\n name|Type:Text\n homepage|Type:URL\n mbox|Type:Email\n mbox_sha1sum|Type:Text\n depiction|Type:URL\n phone|Type:Text\n Person|Category\n Organization|Category\n knows|Type:Page\n member|Type:Page\n"
|
|
},
|
|
{
|
|
"namespace": "SMW_NS_PROPERTY",
|
|
"page": "Foaf:homepage",
|
|
"contents": "[[Imported from::foaf:homepage]] [[Category:Import]]"
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"type": "query",
|
|
"about": "#0",
|
|
"condition": "[[Has type::+]] [[Category:Import]]",
|
|
"printouts": [
|
|
"Has type"
|
|
],
|
|
"parameters": {
|
|
"limit": "10"
|
|
},
|
|
"assert-queryresult": {
|
|
"count": 1,
|
|
"results": [
|
|
"Foaf:homepage#102##"
|
|
],
|
|
"datavalues": [
|
|
{
|
|
"property": "Has type",
|
|
"value": "URL"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "query",
|
|
"about": "#1 (A le type@fr == Has type)",
|
|
"condition": "[[A le type@fr::+]] [[Category:Import]]",
|
|
"printouts": [
|
|
"A le type@fr"
|
|
],
|
|
"parameters": {
|
|
"limit": "10"
|
|
},
|
|
"assert-queryresult": {
|
|
"count": 1,
|
|
"results": [
|
|
"Foaf:homepage#102##"
|
|
],
|
|
"datavalues": [
|
|
{
|
|
"property": "Has type",
|
|
"value": "URL"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"settings": {
|
|
"wgContLang": "en",
|
|
"wgLang": "en",
|
|
"smwgNamespace": "http://example.org/id/",
|
|
"smwgNamespacesWithSemanticLinks": {
|
|
"NS_MAIN": true,
|
|
"SMW_NS_PROPERTY": true
|
|
}
|
|
},
|
|
"meta": {
|
|
"version": "2",
|
|
"is-incomplete": false,
|
|
"debug": false
|
|
}
|
|
} |