Query Question

Post any bugs, problems or feature requests here.
Mercury
Mercury
Brend
Brend

Query Question

Post Mercury » Fri Jun 29, 2012 8:44 pm
User avatar
Mercury
Storyteller
 
How do I select all races that are not a work in progress and not unvalidated?

I know how to select all races and how to select all wip, but I have no way of linking the two atm. If there is none, we should change our WIP data model, but if there is, I'd like to know since then I will be able to filter them in the builder queries. Same for unvalidated.
Post Brend » Fri Jun 29, 2012 11:15 pm
User avatar
Brend
 
See Query Examples.

The following can be seen in action over there:
Code: Select all
<table ?r>
?r is a: race

minus {
  ?w is a: wip
  ?w Page_ref: ?r
}
</table>


The clue is the Page relation between the wip entry and the race page ^_^ Same goes for unvalidated. If the model for such an annotation does not yet have the Page_ref field, we should add it.
Post Mercury » Sat Jun 30, 2012 10:41 am
User avatar
Mercury
Storyteller
 
There is currently no such reference. I'll add it to the model

Return to Technical

cron