[15:19:27] hi! is this the place for smw+ questions? I see that all the free resources for smw+ disappeared when ontoprise went bankrupt last year… [15:27:45] sharris595: you can definitely feel free to ask here - this is as much the place for SMW+ questions as anywhere at the moment, I would say. [15:30:08] ok yaron, thx! right now I've installed the bundled 1.7.0 Windows installer into a Windows 7 VM, installed, seems ok… but I'd like to import a xml file with article content that was exported by someone else from another smw+ instance. I can see that the data import extension supposedly allows this but I've no idea how to invoke it from the user interface… or where the .php file is that defines where extensions go... [15:31:08] any ideas? thx! [15:34:56] sharris595: I personally don't know; my only suggestion would be to not use SMW+. :( [15:36:24] What kind of XML format is it? Is it the kind produced by MediaWiki itself? If so, you could use the page Special:Import for the task. [15:40:28] I'm not sure of the xml format… the start of the xml file looks like this: %5Cl%20%22%22 [15:40:28] how do I access the Special:Import page? Sorry for the rookie questions, I'm a mobile dev but new to smw and smw+... [15:48:25] I see special pages, but I don't see any import page… I see categories like Semantic MediaWiki, SMW+ and Page Tools, with entries like Compare Pages, LOD sources, DataExplorer etc... [15:48:47] is there a specific category that says import? [15:57:58] sharris595: you can just type in the page name in the URL. [15:58:51] There's probably a link to it somewhere on that "special pages" page, but I don't know where. [16:26:21] Change merged: Jeroen De Dauw; [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/44073 [19:57:58] Saruman: hi again! Do you have a sec to give me some advice? i think I have a specific enough question [20:32:52] Hey Kensie, sure [20:34:19] Saruman: ok, so it's the docs for our extension, which has different versions and it's available for different browsers [20:34:35] so one think I wanted to make semantic was browser compatibility, like is it available on Firefox, chrome etc [20:35:05] I'm trying to figure out the best type for that property, if I were making the ideal UI it would be checkboxes, check the browsers it's compatible with [20:35:30] I'm not sure if it would be better to make it boolean for each browser? [20:35:52] sounds like information modeling problem [20:36:09] well I see that you can set up so only certain strings are allowed [20:36:20] can a particular doc be available for more than one browser? [20:36:42] yes, so we have a basic, a standard and a plus version [20:36:53] the plus version is only available for Firefox, but standard is available on both [20:37:21] so for example a user doc for Firefox users might want to list the available versions [20:37:25] well it's easy enough to set a single property multiple times, so you could add [[Compatible with::Firefox]][[Compatible with::Chrome]] on a page [20:37:40] and then the page about our versions I woudl want a table showing the browser compat [20:37:58] if I then ask {{#ask: [[Category:Doc]][[Compatible with::Firefox]]}} then this doc would come out [20:38:16] Saruman: that makes sense so far, and then I could make it return Firefox and Chrome somehow in a table under compatibility? [20:38:49] if you'd ask {{#show: [[]]|?Compatible with}} you'd get "Firefox, Chrome" [20:39:27] ok [20:39:49] now, in terms of using semantic forms, how would I set that up? or a template? [20:39:57] or if you'd ask {{#ask: [[Category:Doc]]|?Compatible with}} you'd get a table with a row that has first field and second field two values Firefox and Chrome [20:40:25] many, many ways to skin this cat [20:41:30] if you know all browsers in advance, you could make a checkbox for each one, and in the template behind that part of the form then use a parserfunction to either declare the variable or not [20:42:00] yes, I like checkboxes, so it doesn't rely on people remembering the right text to enter [20:42:27] though now you're saying complicated things ;) [20:42:37] or you could have a multiple-template section, and have a pulldown from the available browsers - although that doesn't prevent someone selecting the same browser twice [20:42:52] well, you're essentially programming when you're creating templates and forms [20:43:24] so you can do it simple and inflexible, or simple/flexible/errorprone, or complex/flexible/userunfriendly etc [20:43:32] yeah [20:43:46] can't have simple/flexible/userfriendly/futureproof [20:43:46] hehe [20:44:12] so, you're saying if I do checkboxes I can't add a checkbox later? [20:44:14] so really there isn't one "right" answer [20:44:41] you can, but you'd have to adapt the property and the form [20:45:01] and you'd have to take care that pages already created don't suddenly throw errors [20:45:08] right [20:46:01] so keeping things basic, I am familiar with using templates, like here https://wiki.mozilla.org/User:Majken which we used to make this page https://wiki.mozilla.org/User:Majken [20:46:03] but really the best thing is to just start building [20:46:11] rather this page https://wiki.mozilla.org/ReMo/People [20:46:57] and then I have also played with the create a class special page [20:47:10] nice [20:47:31] so if you could advise on the method that doesn't get too much more complicated than that, I think that's a good start for me [20:47:36] you could make a template {{browsercompatibility}} with named fields for each browser [20:47:53] if the field is "yes" then the property [[Compatible with:: ]] gets set [20:48:03] if it is "no" or absent, then it doesn't get set [20:48:04] that sounds like my speed [20:49:16] lotsa calls like {{#ifeq: {{{firefox|no}}}|yes|[[Compatible with::Firefox|]]}} [20:49:45] mind the default |no and the pipe after Firefox to make the property declaration invisible [20:50:23] Could be {{#ifeq: {{{firefox|no}}}|yes|{{#set:Compatible with=Firefox}}}} [20:50:41] them cats again [20:50:56] heh k just a sec I need to catch up again [20:51:25] np [20:53:22] I don't suppose you know of any similar pages I could look at now that i have a concrete example? [20:54:24] well I'm most familiar with http://www.infra-repository.org/oiar/index.php/OIAm_Repository [20:54:29] lemme look [20:55:09] thanks [20:55:18] don't think I use a checkbox in any of the forms [20:55:36] That's ok, I think I want to just try the template bit first [20:57:17] build a template and have a testpage under your user page, and ping me when it's ready [20:57:43] although it's 21:57 where I live, so I'm off in a little while [20:57:45] well that's not the wiki I'm working on [20:57:57] ok [20:58:03] do I need to set up any properties first? [20:58:13] Like browser:firefox ? [20:58:14] not really [20:58:43] if you start using Compatible with:: as a property without defining it, you're actually creating the property, and it's of type "Page" [20:58:48] can you see this? http://docs.getfoxyproxy.org/index.php?title=Template:Browsercompatibility [20:59:01] yes I can [20:59:19] :D [20:59:30] want me to edit? [20:59:35] you can't [20:59:41] https://etherpad.mozilla.org/foxyproxysmwbrowser [21:00:14] ah, better install/enable ParserFunctions and also enable the string functions [21:00:14] if you edit at that link then I can put it in the wiki [21:00:22] can't #if: without it [21:01:03] right, would it be possible to do it another way then? [21:01:29] like just by setting properties? [21:01:50] I can ask for it to be installed/enabled but it might be simpler for me if there's another way [21:03:20] editing works just fine [21:03:43] there's always another way, but it gets way way uglier, and harder to maintain [21:03:56] really, you want a couple of extensions to accompany SMW [21:04:00] ok [21:04:04] I will ask for them [21:04:17] any others besides parserfunctions I should make sure we have? [21:04:43] http://semantic-mediawiki.org/wiki/Help:MediaWiki_extensions [21:05:34] I'd say HeaderTabs, Variables, Arrays [21:05:44] see http://www.infra-repository.org/oiar/index.php/Special:Version [21:06:38] is that for the extensions you recommend? [21:06:56] or was that the example of code for me :) [21:08:45] the Version page shows what I use and contains links to each extension's home page [21:08:58] I've defined the property for you as well: http://docs.getfoxyproxy.org/index.php?title=Property:Compatible_with [21:09:47] mebby add some more browsers :-) [21:11:13] oh you can edit? [21:11:38] pretty sure it's supposed to be accounts only. Thanks though! [21:11:41] I can do lotsa stuff! [21:11:48] :-) [21:13:04] Anonymous editing isn't disabled, only account creation [21:13:08] ah [21:17:07] <- bedtime here, bye