{ "description": "Test in-text annotation with DISPLAYTITLE / `foaf` to check on upper vs. lower case (`wgRestrictDisplayTitle`, `wgContLang=en`, `wgLang=en`)", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has text", "contents": "[[Has type::Text]]" }, { "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]] {{DISPLAYTITLE:foaf:homepage}} [[Has property description::URL representing ... @en]] [[Category:Imported vocabulary]]" }, { "page": "Example/P0427/Q0.1", "contents": "{{#show: Property:Foaf:homepage |?Has property description}}" }, { "page": "Example/P0427/Q0.2", "contents": "{{#ask: [[Property:+]][[Category:Imported vocabulary]] |?Has property description=Description |link=none}}" }, { "page": "Example/P0427/1", "contents": "{{#subobject: |Has text=abc |display title of=ab c123 |@category=P0427 }}{{#subobject: |Has text=ABC |display title of=AB C123 |@category=P0427 }}" }, { "page": "Example/P0427/Q1.1", "contents": "{{#ask: [[Category:P0427]] [[~ab c*]] |?Has text |link=none}}" }, { "page": "Example/P0427/Q1.2", "contents": "{{#ask: [[Category:P0427]] [[~AB C*]] |?Has text |link=none}}" }, { "page": "Example/P0427/Q1.3", "contents": "{{#ask: [[Example/P0427/1#_7cae05fedd48fa820a0ea915518cc3fd]] |?Has text |link=none}}" }, { "page": "Example/P0427/Q1.4", "contents": "{{#ask: [[Category:P0427]] [[!~ab c*]] |?Has text |link=none}}" }, { "page": "Example/P0427/Q1.5", "contents": "{{#ask: [[Category:P0427]] [[!~AB C*]] |?Has text |link=none}}" } ], "tests": [ { "type": "parser", "about": "#0 match foaf:homepage to Property:Foaf:homepage", "subject": "Example/P0427/Q0.1", "assert-output": { "to-contain": [ "URL representing ... (en)" ] } }, { "type": "parser", "about": "#1", "subject": "Example/P0427/Q0.2", "assert-output": { "to-contain": [ "