edit_html permission removed at 0.10
false
<-->
Home Recent
Request an Invitation Sign in
Page
WQL
Feature
WQL, pronounced "wuckle", stands for Wagn Query Language -- as far as we know, the only wiki query language around.  Wagn adds structure to wikis; WQL lets us use that structure. 

WQL provides syntax for finding lists of cards, a staple of Wagn sites.  There are two main ways of creating lists on Wagn: by Pointers, in which users create lists manually, and by Searches which use WQL to find cards dynamically.


Page
If you edit a Search card, you will see the WQL behind that search. Currently all searches are created by writing WQL by hand.  Soon, though, you'll be able to create these searches with a graphical editor.  Meanwhile, the good news is that it's simple enough for even non-programmers to do at least simple searches.

See WQL syntax for more information.

(Note for developers: in Search cards, WQL is expressed in JSON, but in the code, it can be expressed in Ruby.)


Page
Here's one short example; there are many more at WQL Syntax.

You may know by now that all cards have a cardtype.  And that everyone with an account has a card of cardtype User.  Suppose you wanted to find all the User cards?

Here's what the WQL would look like in Ruby:
{ :type => 'User' }
and in JSON:
{ "type": "User" }
Both of them roughly translate to:
Find all cards of the type "User."
or
Gimme all the User cards.

To see this WQL in action, you can make a Search card.  We made one called search by type.  If you edit it, you will see the JSON version of the WQL above.

Here's the card:
Page Search
1 to 20 of 209 Next-page +nerdy nickname +bio   Interest in Wagn I am a ROR programmer.  Wagn.org is the best ROR open source project on Rails2.1. What I do What I love How to reach me Birthday: ... Champ feebs bee phonebee feebrarian Born in San Francisco, raised in Portland and well-traveled while always keeping my roots in the Pac NW, I am thrilled to ...   Interest in Wagn What I do What I love How to reach me Birthday: ... +nerdy nickname Dedicated to supporting and educating nonprofits and the progressive social change sector about evolving technologies that cultivate and engage communities.   Interest in Wagn What I do What I love How to reach me Birthday: ... +nerdy nickname +bio   Interest in Wagn play What I do +what I do What I love +what I love How to reach me +how to reach me Birthday: ... +nerdy nickname +bio   Interest in Wagn I work with Brandon williamsCraig of Association Building Community and Aiki Extensions and may be contributing to the processarts wagn. What I do What I love How to reach me Birthday: ... +nerdy nickname +bio   Interest in Wagn I am using Wagn.org to work on a book on conscious evolution What I do like, you KNOW what I do.  Mostly... :) What I love How to reach me Birthday: ... +nerdy nickname +bio   Interest in Wagn A good friend, Jean Russell, suggested I look into Wagn.  I'm an independent contractor (and yes, part of this belongs below) who's been asked to ... What I do What I love How to reach me Birthday: ... +nerdy nickname +bio   Interest in Wagn Looks like a smart way of approaching wikis.   What I do +what I do What I love +what I love How to reach me Birthday: ... +nerdy nickname +bio   Interest in Wagn I have a client - the charitable foundation of a corporate who is running projects in schools across the uk - they don't need contact ... What I do What I love How to reach me Birthday: ... Seamróg +bio   Interest in Wagn Considering for use in wiki-based expert systems. What I do Development and innovation, Icelandic Innovation Center. Running a Fab Lab and coordinating several global projects, some of which use Wikis. What I love How to reach me Birthday: ... +nerdy nickname +bio   Interest in Wagn Hello, found this marvel via communitywiki. From my earlier experience as a Forth programmer I appreciate the card format, because such a format encourages early ... What I do What I love How to reach me Birthday: ... Cat Herder Born. Breathed, drank, ate, excreted a lot. Sat in rows with other young listening to someone at the front of the room talking a lot. ...   Interest in Wagn Wagn scratches some long-running itches of mine about harnessing the power of computers to organize information in ways it can't ve organized in physical form. ... What I do What I love How to reach me Birthday: ... +nerdy nickname +bio   Interest in Wagn +interest in Wagn What I do +what I do What I love +what I love How to reach me Birthday: ... +nerdy nickname +bio   Interest in Wagn +interest in Wagn What I do +what I do What I love +what I love How to reach me Birthday: ... Danger Man   I'm a South African living in Portland, OR, USA and working for Meyer Memorial Trust.   Interest in Wagn What I do What I love How to reach me Birthday: ... +nerdy nickname +bio   Interest in Wagn +interest in Wagn What I do +what I do What I love +what I love How to reach me Birthday: ... +nerdy nickname +bio   Interest in Wagn +interest in Wagn What I do I am a principal in the firm The Canoe Group, Inc. What I love Learning new things! How to reach me Birthday: ... +nerdy nickname +bio   Interest in Wagn +interest in Wagn What I do +what I do What I love +what I love How to reach me Birthday: ... +nerdy nickname +bio   Interest in Wagn +interest in Wagn What I do +what I do What I love +what I love How to reach me Birthday: ... +nerdy nickname +bio   Interest in Wagn +interest in Wagn What I do +what I do What I love +what I love How to reach me Birthday: ...



Page
You can include comments, e.g.:

{
/* Only User cards */
"type":"User"
}


Tickets relevant to WQL:
open , medium , +assigned to Issue or Question This would allow, e.g.:   sidebar with _main+taglist for tagging cards. Solution Something like _main in inclusions (and WQL?) to refer to the main card of the page. Tags: Example of the bug, or an example the question relates to Discussion User stories open , medium , +assigned to Issue or Question +issue Solution +solution Tags: WQL Example of the bug, or an example the question relates to Found Justine Witt when searching for "template", turned out it was in the content of her card, even though it is of course ... Discussion User stories documenting , medium , John Abbe Issue or Question +issue Solution +solution Tags: Documentation WQL Example of the bug, or an example the question relates to Discussion User stories open , medium , +assigned to Issue or Question Makes a big difference to be able to sort by more than one (e.g. +last name, +first name). Before doing this, it might be worth considering ... Solution Tags: Example of the bug, or an example the question relates to Discussion User stories open , medium , +assigned to Issue or Question Rename "alpha" to "name". Also allow sorting by "contents", which would sort alphabetically for text cards, numerically for number and currency, and in time order for ... Solution Tags: Example of the bug, or an example the question relates to Discussion User stories open , low , Ethan McCutchen Issue or Question the tag cloud on join card is now implemented in wql as { :group_tagging =>  <type> } this hasn't been thought through carefully; could use some ... Solution Tags: Example of the bug, or an example the question relates to Discussion User stories open , low , +assigned to Issue or Question For all ticket tags, what i'd really like to show is a list of each tag plussed to tickets for item. ... Solution Tags: Example of the bug, or an example the question relates to Discussion User stories open , medium , Lewis Hoffman Issue or Question +issue Solution +solution Tags: WQL Example of the bug, or an example the question relates to Discussion User stories open , high , Lewis Hoffman Issue or Question +issue Solution +solution Tags: WQL Wagn 1.0 Connectipedia design Example of the bug, or an example the question relates to Discussion User stories open , medium , +assigned to Issue or Question Match searching within name is broken. See: ...   --John Abbe.....Tue Jan 15 18:01:03 PST 2008 in wql+example under search within name-- in search results, opening "search ... Solution Tags: Example of the bug, or an example the question relates to Discussion User stories open , high , Ethan McCutchen Issue or Question See http://wagn.org/wagn/wql%2Bsamples#Users%20and%20roles     Solution Tags: Example of the bug, or an example the question relates to Discussion User stories open , medium , +assigned to Issue or Question On related tabs, a card's plus parts and plus cards should always be the same number, but I'm seeing a place where they aren't (see ... Solution Tags: Example of the bug, or an example the question relates to Discussion User stories open , medium , +assigned to Issue or Question Right now wql queries are case and plurality sensitive, probably want to do fuzzy matching like most things in Wagn. Solution +solution Tags: Example of the bug, or an example the question relates to Discussion User stories open , medium , +assigned to Issue or Question WQL - Ticket+*plus cards is finding "priority 1 tickets", etc. (may have to do with my originally creating them as Ticket+<priority 1>, etc.). ... Solution Tags: Example of the bug, or an example the question relates to Discussion User stories open , medium , +assigned to Issue or Question +issue Solution +solution Tags: WQL Wagn 1.0 Example of the bug, or an example the question relates to Discussion User stories open , medium , +assigned to Issue or Question +issue Solution +solution Tags: WQL Wagn 1.0 Example of the bug, or an example the question relates to Discussion User stories

--