[14:17:54] JeroenDeDauw, do you know if it's 'standard' for smw's ask api.php extension to store its result in 'results' rather than 'ask' ? a node api i'm working with expects the latter (hard to know how it would generalize otherwise) [14:18:39] nostriluu: yes it is [14:18:48] nostriluu: a bit to late to change this now :\ [14:19:05] nostriluu: if you have convincing arguments why it should be different, then please mail the devel list [14:19:05] np i have a workaround [14:19:22] If there are enough reasons we can make a new version of the API [14:19:35] Will need to keep the current one as well though, as otherwise we'd break compat badly [14:19:44] ow [14:36:17] nostriluu: it was in apha for over a year and no one complained :p [14:36:24] Even though I asked for feedback on it [14:50:56] i understand. to be honest since it was in flux i continued to use a scraping approach [20:25:41] I'm trying to figure out how to control the column width for an inline query, any examples abound? [20:47:50] Demos74dx: I assume you're displayin results in a table? [20:47:58] You can do that using CSS, if you know how to do that. [20:48:19] yeah, I'm pretty green with CSS but I have a little experience [20:48:41] I'm just trying to figure out the syntax for changing a specific column [20:48:56] I can pastebin what I have and maybe you can tell me if I'm out in the weeds or not? [20:50:21] Well, I don't know if that will really help... I would look at the HTML source, and see what the class is for that column. [20:51:46] well the class is .smwtable by default and I'm just messing with taht classes css, but maybe something is overriding or something because no matter what I do the change's dont take [20:51:55] but then again, I could just be putting the wrong stuff in [20:52:46] http://pastebin.com/QNtpPQar [20:53:09] I can get the .row-even background colors to change just fine [20:53:19] but I can't change column width [20:54:40] Demos74dx: as a workaround you could create your table manually an have the #ask query output to template [20:54:50] have the template simply fill a row [20:55:28] That was the 2nd thing I was going to try, but I'm not sure how to go about that either, I can't find an example [20:55:37] I have several, one moment [20:55:42] Demos74dx: I thought each column had a class as well. [20:55:44] thanks [20:56:12] e.g. http://www.infra-repository.org/oiar/index.php/Pattern_Variant [20:56:51] can I see your CSS for prettytable? [20:58:01] it's not CSS [20:58:05] I can't even spell CSS [20:58:11] lol [20:58:33] http://www.infra-repository.org/oiar/index.php/Template:Prettytable [20:59:01] ohh [20:59:07] this makes more sense now [20:59:12] I'll give this a shot [20:59:55] if you're close to a solution, don't give up on CSS [21:00:04] format=template has its own drawbacks [21:00:21] e.g. I can't make tables disappear if there are zero results [21:00:37] yeah I'm just not sure what the syntax is to call a specific table column in CSS [21:01:36] Demos74dx: it should be "table.something td". [21:02:58] ah okay [21:05:37] got it! [21:05:39] thanks guys [21:06:05] .smwtable tr td:first-child{width: 250px} [21:06:12] the first col is first-child, lol [21:06:58] Oh - I didn't know about that "first-child" thing - but hey, if it works... [21:11:11] :-) [21:18:12] tr td:nth-child(2){width: 20%} would be for the 2nd column and change nth-child(*) for any other columns [21:51:08] Hi all - is the SMW+ extension "Enhanced Retrieval" the only known SMW-related extension implemented "faceted search" ? Any others for me to look at? [21:51:41] Their Enhanced Retrieval extension is based on SOLR interface [21:53:59] hypergrove: have you looked at http://www.mediawiki.org/wiki/Extension:Semantic_Drilldown ? [22:09:54] does anybody know how to do conditional formatting on a cell according to its proximity to a date? [22:10:02] or have an example [22:12:45] Demos74dx: you would probably need to use a template for that. [22:13:27] Yeah this is separate from what I was working on eariler. So the template option is do-able [22:13:49] without interfering with what I just got working :) [22:15:09] saruman, doh, of course SD. Though its facets are categories only, not value facets [22:17:19] hypergrove: what do you mean by "value facets"? [22:30:19] hi yaron - the smw+ extension lists the values of pages properties, and allows selection of a given value which becomes the predicate [22:30:50] Yeah, okay - that's what Semantic Drilldown does. [22:31:16] You just have to manually define a filter for each property you want to be filtered on. [22:33:14] i see - thanks, i'll look at this more in depth. Am wondering how much SOLR interface speeds up the application - any ideas on the impact of using SOLR? I'm assuming that SD's indexing is done on the fly [22:34:10] is this filter ns something of a clone of concept ns? [22:35:56] The Filter namespace came first, for what it's worth. :) [22:36:30] I don't know anything performance vs. SOLR. [22:46:45] hey yaron, do you have any idea why my edit with form tab just seemed to disappear? [22:49:22] http://smw.referata.com/wiki/Special:BrowseData/Sites?Semantic_extensions=Semantic_Drilldown shows 6 properties which can be selected in any combination - do you have a sense of the number of smw queries that must be executed when a specific value for a property has been selected? I'm a little worried about performance impact when a specific value is chosen [23:00:08] Demos74dx: no, sorry. [23:01:10] hypergrove: yeah, it's a lot of queries - one for "(number)" displayed. The performance impact can be substantial if there are a lot of values. [23:01:40] If you switch to the "combo box" input type for filters that have a lot of values, that reduces the impact a good amount. [23:01:54] "one for each (number)", rather. [23:52:37] hey yaron, I'm looking at your internal objects extension, I'm worndering if you have an example of it in action somewhere? [23:53:23] Yeah, there are a bunch... [23:54:02] I'm building a system that people can use a form to input what they did for the day and then it has an automated reporting page, but I want people to be able to add continious comments to the page in an update fashion. so they go and edit with form and click "add another" comment and then that shows up in the reporting page for that object [23:54:26] but the issue is the comments kinda list to the bottom and not to the top, so it looks like the last thing they did on their project is the first. [23:54:55] That's really a Semantic Forms issue, then. [23:55:20] No [23:55:21] ? [23:55:34] yeah I was wondering if I set them up as internal objects I could get the reporting page to order=reverse those objects [23:56:57] I just dont know if thats a possiblity with the internal objects... [23:58:59] Oh, I see - yes, you could do that if you add a time value or something. [23:59:30] Personally, though, I don't think SF should be used for comments.