Deployment query examples: Difference between revisions
(mention other pages) |
m (remove outdated link) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Also see queries on [[Deployments]] |
Also see queries on [[Deployments]]. |
||
== Timeline |
== Timeline == |
||
Currently, not many pages have [[Property:Has received laptops on date]], but this could be cool. |
Currently, not many pages have [[Property:Has received laptops on date]], but this could be cool. |
||
Click on each deployment's "dot" to see more info. |
Click on each deployment's "dot" to see more info. |
||
⚫ | |||
{{SMW issue|with format eventline, each page's pop-up has a title that's a garbled links to the date property|SMW bug 15277 filed}}. |
|||
{{#ask: |
{{#ask: |
||
[[Has received laptops on date::+]] |
[[Has received laptops on date::+]] |
||
⚫ | |||
| ?Number of manufactured laptops |
| ?Number of manufactured laptops |
||
| ?Has received laptops on date |
| ?Has received laptops on date |
||
| format=eventline |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
| format=eventline <!-- use this instead of "timeline" if a page has more than one value for the date property --> |
|||
| link=all |
| link=all |
||
<!-- this is key, you have to identify some date property as the timelinestart, and optionally something as timelineend to draw duration bars --> |
|||
| timelinebands=MONTH,YEAR| |
| timelinebands=MONTH,YEAR| |
||
| timelinesize=200px |
| timelinesize=200px |
||
Line 25: | Line 23: | ||
}} |
}} |
||
⚫ | |||
format=timeline can display length bars if pages have start and end dates, check out http://semanticweb.org/wiki/Upcoming_events. |
format=timeline can display length bars if pages have start and end dates, check out http://semanticweb.org/wiki/Upcoming_events. |
||
This could be very useful for community stuff. |
This could be very useful for community stuff. |
||
== Count of laptops and lots more == |
|||
from those pages in [[:Category:Deployments]] with [[Semantic MediaWiki|annotations]] for [[Property:Number of manufactured laptops]]. |
|||
{{#ask: |
|||
[[Category:Deployments]] |
|||
| ?Number of manufactured laptops=# of manufactured laptops |
|||
| ?Has received laptops on date=Got laptops on |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
|sort=Number of manufactured laptops |
|||
|order=desc |
|||
|default=Query found no pages in [[:Category:Deployments]]? |
|||
}} |
Latest revision as of 00:41, 23 August 2008
Also see queries on Deployments.
Timeline
Currently, not many pages have Property:Has received laptops on date, but this could be cool. Click on each deployment's "dot" to see more info.
Normally you use format=timeline, but some deployments like OLPC Mozambique have two of these date properties, so use format=eventline. But then there's a bug:
SMW issue: with format eventline, each page's pop-up has a title that's a garbled links to the date property; Status: SMW bug 15277 filed .
{{#ask: Has received laptops on date::+
| ?Number of manufactured laptops | ?Has received laptops on date | format=eventline | link=all | timelinebands=MONTH,YEAR| | timelinesize=200px | sort=Has received laptops on date | limit=50 | default=No pages with Property:Has received laptops on date found?
}}
format=timeline can display length bars if pages have start and end dates, check out http://semanticweb.org/wiki/Upcoming_events.
This could be very useful for community stuff.
Count of laptops and lots more
from those pages in Category:Deployments with annotations for Property:Number of manufactured laptops.
{{#ask:
| ?Number of manufactured laptops=# of manufactured laptops | ?Has received laptops on date=Got laptops on | ?Language spoken=Language | ?Keyboard | ?Contact person | ?School server status | ?Software release |sort=Number of manufactured laptops |order=desc |default=Query found no pages in Category:Deployments?
}}