From: Laurent A. <la...@al...> - 2013-04-17 00:17:35
|
There is no way to query for the absence of a property. The only way around it is to use templates and ensure that all properties have a default value if the corresponding template parameter is null. - Laurent On Tue, Apr 16, 2013 at 10:49 AM, Tac Tacelosky <ta...@gm...> wrote: > Is it possible to do an ask query for a list of all the pages that are > missing a particular property? Or should I set the property to blank and > query for that? > > I'm also thinking that I could do an {{#if statement and check for the > property, and if it's empty set another Property or Category, then do the > query on that. > > Neither way feels particularly natural. I'm trying to develop a workflow > so that when a new page comes in, there are a sequence of templates / forms > that get applied. Some of those forms are dependent on other properties. > For example, on an image I'd like to have a "clarity" property. If the > clarity is blurry, I'll tag it for delete. If it's clear, I'll have > another form on that page to identify words on the page, etc. > > So my idea was when an image is first uploaded, I look and see if the > clarity property has been set. I need to access these images via the API, > because they integrate with external data. > > Any thoughts to an approach? It's not just images, it's also things like > saying "If this letter indicates a specific violation, then there's another > form that needs to be filled out with more details". > > Thanks, > > Tac > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > -- - Laurent Alquier http://www.linfa.net |