Semantic Mediawiki: Difference between revisions

m Text replacement - "[[Category: " to "[[Category:"
 
(9 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 14: Line 16:
== Querying ==
== Querying ==
http://semantic-mediawiki.org/wiki/Help:Inline_queries
http://semantic-mediawiki.org/wiki/Help:Inline_queries
===working single page example===
* a {{#show:Semantic Mediawiki|?Is In Office}}
* b {{#show:Shirley Kiesman|?HasPhoneNr‎}}
* c {{#show:Health Sciences Center Office|?HasPhoneNr‎}}
===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===
can't figure this one out
eg [[:Category:Biopsy]]
{{#ask: [[Category:Biopsy]]
| format=table
}}


=== Start Dates ===
=== Start Dates ===
Line 65: Line 37:
| ?Collection Location Enddate
| ?Collection Location Enddate
| format=table
| 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]].
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 79: Line 84:
** 59:00 - #smwdoc
** 59:00 - #smwdoc


[[Category: IT Instructions]]
[[Category:IT Instructions]]


** 59:00 - #smwdoc
** 59:00 - #smwdoc


[[Category: IT Instructions]]
[[Category:IT Instructions]]
[[Category:Semantic Mediawiki]]
[[Category:Wiki use]]