SMW properties

From zooid Wiki
Jump to navigation Jump to search

Looking at the following text, we see lots of opportunties for markup:

 Phyllis Konstam (14 April 1907 – 20 August 1976) 
 was an English film actress.
 She was born in London and died in Somerset
 from a heart attack.

In markup, this can look like:

  Phyllis Konstam ([[born::14 April 1907]] – [[died::20 August 1976]]) 
  was an [[is from: England | English]] [[is a::film actress]].
  She was born in [[born in::London]] and died in [[died in::Somerset]] 
  from a [[died of::heart attack]].

Oh no! Look at all those strange symbols! Well, actually there are just a few (and there's a forms-based interface as well). Not only do you not have to add your subject to each of those categories, anyone can also re-use this information on other pages, for embedded queries and views, calculations, and so on.

 BornDiedDied inDied of
Arnold Bush3 April 191120 July 1996HertfordshireDancing accident
Bob Herrelsmorm9 April 190720 August 1976London, UKMysterious causes
Bob Newhart1 June 1942
Christina Poulet14 April 190720 August 1976Somerset, UKStage fright
Katherine Cardiff11 April 190120 July 1996London, UKDancing accident
Paul Devonshire10 October 191110 September 1986Scotland, UKPolo accident

The above inline query is phrased as follows:

  {{ #ask: [[born::+]] <-- ask for all entities that have a born field
  |?died in <-- include these ?fields in the output
  |?died of

The query will always show the latest information; you'll see some entries created later in these pages. Fields or parameters can be added easily. You can view the source (edit) of any page to see how queries are composed.

 Next: SMW map


Blikied on Oct 1, 2009