HaloTestEvent

De Semantic MediaWiki - Sandbox

Révision datée du 7 mars 2016 à 09:01 par Halo (discussion | contributions) (simplified syntax)

Inspired with: https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages#Subqueries_and_property_chains

Example

Traditional syntax

  • Venue (Heineken Music Hall expected):
   Heineken Music Hall
   {{#ask: [[Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}
  • City (Amsterdam expected):
   Amsterdam
   {{#ask: [[-Has page::<q>[[Has text::Heineken Music Hall]]</q>]] | ?Has text= | mainlabel=-}}
  • Country (Netherlands expected):
   Netherlands
   {{#ask: [[-Has page::<q>[[-Has page::<q>[[Has text::Heineken Music Hall]]</q>]]</q>]] | ?Has text= | mainlabel=-}}
  • Continent (Europe expected):
   Europe
   {{#ask: [[-Has page::<q>[[-Has page::<q>[[-Has page::<q>[[Has text::Heineken Music Hall]]</q>]]</q>]]</q>]] | ?Has text= | mainlabel=-}}

Simplified syntax

  • Venue (Heineken Music Hall expected):
   Heineken Music Hall
   {{#ask: [[Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}
  • City (Amsterdam expected):
   Amsterdam
   {{#ask: [[-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}
  • Country (Netherlands expected):
   Netherlands
   {{#ask: [[-Has page.-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}
  • Continent (Europe expected):
   Europe
   {{#ask: [[-Has page.-Has page.-Has page.Has text::Heineken Music Hall]] | ?Has text= | mainlabel=-}}

See also

Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.