88 lines
3.0 KiB
JSON
88 lines
3.0 KiB
JSON
{
|
|
"description": "Test RDF output generation that contain a monolingual text annotations `_PDESC` (`wgContLang=en`, `wgLang=es`, syntax=rdf/turtle)",
|
|
"setup": [
|
|
{
|
|
"namespace": "SMW_NS_PROPERTY",
|
|
"page": "Has number",
|
|
"contents": "[[Has type::Number]] [[Has property description::Is a number@en]] [[Has property description::数@ja]]"
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"type": "rdf",
|
|
"about": "#0",
|
|
"exportcontroller": {
|
|
"print-pages": [
|
|
"Property:Has number"
|
|
],
|
|
"parameters": {
|
|
"backlinks": true,
|
|
"recursion": "1",
|
|
"revisiondate": false
|
|
}
|
|
},
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"<owl:DatatypeProperty rdf:about=\"http://example.org/id/Property-3AHas_number\">",
|
|
"<skos:scopeNote xml:lang=\"en\">Is a number</skos:scopeNote>",
|
|
"<skos:scopeNote xml:lang=\"ja\">数</skos:scopeNote>",
|
|
"<property:Property_description rdf:resource=\"http://example.org/id/Property-3AHas_number-23_ML13b181afba7d1e489a656a75fa7917b2\"/>",
|
|
"<property:Property_description rdf:resource=\"http://example.org/id/Property-3AHas_number-23_ML4c33eabf5c7dfbb1292c817504951018\"/>",
|
|
"<swivt:Subject rdf:about=\"http://example.org/id/Property-3AHas_number-23_ML13b181afba7d1e489a656a75fa7917b2\">",
|
|
"<property:Text rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">Is a number</property:Text>",
|
|
"<property:Language_code rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">en</property:Language_code>",
|
|
"<swivt:Subject rdf:about=\"http://example.org/id/Property-3AHas_number-23_ML4c33eabf5c7dfbb1292c817504951018\">",
|
|
"<property:Text rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">数</property:Text>",
|
|
"<property:Language_code rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">ja</property:Language_code>"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "rdf",
|
|
"about": "#0",
|
|
"exportcontroller": {
|
|
"syntax": "turtle",
|
|
"print-pages": [
|
|
"Property:Has number"
|
|
],
|
|
"parameters": {
|
|
"backlinks": true,
|
|
"recursion": "1",
|
|
"revisiondate": false
|
|
}
|
|
},
|
|
"assert-output": {
|
|
"to-contain": [
|
|
"rdfs:label \"Has number\" ;",
|
|
"skos:scopeNote \"Is a number\"@en , \"数\"@ja ;",
|
|
"property:Property_description property:Has_number-23_ML13b181afba7d1e489a656a75fa7917b2 , property:Has_number-23_ML4c33eabf5c7dfbb1292c817504951018 ;",
|
|
"swivt:wikiPageSortKey \"Has number\" ;",
|
|
"swivt:type <http://semantic-mediawiki.org/swivt/1.0#_num> .",
|
|
"property:Language_code \"en\" ;",
|
|
"property:Text \"Is a number\" .",
|
|
"property:Language_code \"ja\" ;",
|
|
"property:Text \"数\" ."
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"settings": {
|
|
"smwgExportBCNonCanonicalFormUse": false,
|
|
"smwgNamespacesWithSemanticLinks": {
|
|
"NS_MAIN": true,
|
|
"NS_CATEGORY": true,
|
|
"SMW_NS_PROPERTY": true
|
|
},
|
|
"wgContLang": "en",
|
|
"wgLang": "es",
|
|
"smwgNamespace": "http://example.org/id/"
|
|
},
|
|
"meta": {
|
|
"skip-on": {
|
|
"mediawiki": [ ">1.42.x", "Skipping, broken due to 2 and 3 in #0" ]
|
|
},
|
|
"version": "2",
|
|
"is-incomplete": false,
|
|
"debug": false
|
|
}
|
|
} |