|
|
(One intermediate revision by the same user not shown) |
Line 9: |
Line 9: |
| Using properties and relationships, Semantic Mediawiki takes this one giant step farther. | | Using properties and relationships, Semantic Mediawiki takes this one giant step farther. |
|
| |
|
| Looking at the following text, we see lots of opportunties for markup:
| | {{Next|SMW properties}} |
|
| |
|
| Phyllis Konstam (14 April 1907 – 20 August 1976)
| | [[Category:SemWeb]] |
| was an English film actress.
| |
| She was born in London and died in Somerset
| |
| from a heart attack.
| |
| | |
| In markup, this can look like:
| |
| | |
| <nowiki>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]].</nowiki>
| |
| | |
| 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.
| |
| | |
| {{ #ask: [[born::+]]
| |
| |?born
| |
| |?died
| |
| |?died in
| |
| |?died of
| |
| }}
| |
| | |
| The above inline query is phrased as follows:
| |
|
| |
|
| <nowiki> {{ #ask: [[born::+]] <-- ask for all entities that have a born field
| | {{Blikied|Oct 1, 2009}} |
| |?born
| |
| |?died
| |
| |?died in <-- include these ?fields in the output
| |
| |?died of
| |
| }}</nowiki>
| |
| | |
| 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}}
| |
| | |
| [[Category:SemWeb]]
| |