Deployment query examples: Difference between revisions

From OLPC
Jump to navigation Jump to search
(working timeline!)
Line 1: Line 1:
Also see [[Deployments]] and [[:Category:Deployments]] page.

== Timeline of deployments ==
== Timeline of deployments ==


Line 7: Line 5:
(Check out http://semanticweb.org/wiki/Upcoming_events for a really cool timeline)
(Check out http://semanticweb.org/wiki/Upcoming_events for a really cool timeline)


format=timeline can display length bars. Check out http://semanticweb.org/wiki/Upcoming_events
=== Date query problems ===
Normally you ask for all pages with some value for a field using '+' as the wildcard.

But that doesn't work for properties of Type:Date on this wiki, it gives errors:

{{#ask:
[[Has received laptops on date::+]]
| ?Has received laptops on date
}}

=== Real timeline ===


{{#ask:
{{#ask:
[[Has received laptops on date::+]]
[[Has received laptops on date::+]]
?Contact person|
| ?Contact person
?Keyboard|
| ?Keyboard
?Number of manufactured laptops|
| ?Number of manufactured laptops
?School server status|
| ?School server status
?Software release|
| ?Software release
|format=timeline|link=all|
| format=timeline|link=all
| ?Has received laptops on date = start <!-- this is key, you have to identify some date property as "start", and optionally something as "end" -->
timelinebands=WEEK,MONTH|
| timelinebands=MONTH,YEAR|
timelineposition=start|
| timelineposition=start
timelinesize=400px|
sort=Has received laptops on date|
| sort=Has received laptops on date
limit=50 <!-- limited to 50 entries in order to limit the complexity of client-side JavaScript processing --> |
| limit=50 <!-- limited to 50 entries in order to limit the complexity of client-side JavaScript processing -->
default=No pages with [[Property:Has received laptops on date]] found?
| default=No pages with [[Property:Has received laptops on date]] found?
}}
}}

Revision as of 07:33, 16 August 2008

Timeline of deployments

Not many pages have Property:Has received laptops on date, but this could be cool.

(Check out http://semanticweb.org/wiki/Upcoming_events for a really cool timeline)

format=timeline can display length bars. Check out http://semanticweb.org/wiki/Upcoming_events

{{#ask: Has received laptops on date::+

 | ?Contact person
 | ?Keyboard
 | ?Number of manufactured laptops
 | ?School server status
 | ?Software release
 | format=timeline|link=all
 | ?Has received laptops on date = start 
 | timelinebands=MONTH,YEAR|
 | timelineposition=start
 | sort=Has received laptops on date
 | limit=50  
 | default=No pages with Property:Has received laptops on date found?

}}