Semantic Mediawiki: Difference between revisions

m m
m Text replacement - "[[Category: " to "[[Category:"
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
We may start using this. If so, it should have very limited visibility to collectors, so don't worry about reviewing this for now.  
We are using this extensively. It should have very limited visibility to collectors, so don't worry about reviewing this for now.  
 
Cheat sheet: http://postable.net/smwqr/smw-quick-reference.pdf


== set in-text annotation ==
== set in-text annotation ==
Line 6: Line 8:
* http://semantic-mediawiki.org/wiki/Help:In-text_annotation
* http://semantic-mediawiki.org/wiki/Help:In-text_annotation
* http://semantic-mediawiki.org/wiki/Help:Semantic_templates
* http://semantic-mediawiki.org/wiki/Help:Semantic_templates
[[Is In Office::Main Office]]


== create the corresponding property page ==
== create the corresponding property page ==
Property:Is In Office
* http://semantic-mediawiki.org/wiki/Help:Property_declaration
* http://semantic-mediawiki.org/wiki/Help:Special_properties
* http://semantic-mediawiki.org/wiki/Help:List_of_datatypes
 
== Querying ==
http://semantic-mediawiki.org/wiki/Help:Inline_queries
 
=== Start Dates ===
Show just one: STB CICU Start Date: {{#show:STB CICU|?Collection Location Startdate}}
 
Show a list of all that have had property applied:
{{#ask: [[Category:Collection Location]] 
| ?Collection Location Startdate
| format=table
}}
 
Show a sublist of only HSC:
{{#ask: [[Category:Collection Location]] [[Collection Location Hospital::HSC]]
| ?Collection Location Program
| format=table
}}
 
Show only sublist w enddate < Jan 1 2007
{{#ask: [[Category:Collection Location]] [[Collection Location Enddate::< Jan 1 2007]]
| ?Collection Location Program
| ?Collection Location Enddate
| format=table
}}
 
Give only link to expand a query
{{#ask: [[Category:Collection Location]]
| ?Collection Location Program
| ?Collection Location Enddate
| limit=0
}}
 
To see how this is done see various articles in [[:Category:Collection Location accessory]].
 
== still experimenting ==
===all collectors with office===
{{#ask: [[Category:Data Collector]] 
| ?Is In Office
| format=ul
}}
 
===HSC collectors with office===
{{#ask: [[Category:Data Collector]] [[Is In Office::Health Sciences Center Office]]
| ?Is In Office
}}
 
===phone nrs===
can't do this with categories, it delves into subcategories
{{#ask: [[Category:Offices]] [[:Category:+]]
| ?HasPhoneNr
}}
 
===list category contents===
why does only one list? Might have to do with how the wiki updates SMW...
eg [[:Category:Biopsy (old)]]
 
{{#ask: [[Category:Biopsy (old)]]
| format=table
}}


== See also ==
== See also ==
Line 17: Line 80:
** 40:40 concept of SMW
** 40:40 concept of SMW
** 41:35 in templates
** 41:35 in templates
** 45:00ish - property explanation
** 43:50ish - property explanation
** 51:40 - concept of "concepts"
** 51:40 - concept of "concepts"
** 59:00 - #smwdoc
** 59:00 - #smwdoc


[[Category: IT Instructions]]
[[Category:IT Instructions]]
 
** 59:00 - #smwdoc
 
[[Category:IT Instructions]]
[[Category:Semantic Mediawiki]]
[[Category:Wiki use]]