From: badon <fas...@gm...> - 2011-09-07 02:58:45
|
It sounds very promising. You mentioned that it's still undergoing changes - could you give an example of what remains to be done with it? Will Ankit Garg be continuing to work on it, or has it been completely handed over? Yaron Koren-2 wrote: > > Hi, > > Thank you, Ankit, for providing this summary - and of course thank you for > all your hard work on this Google Summer of Code project. > > Laurent - first, let me note that the extension is called Page Schemas. > Before it was created, I referred to the concept as "Semantic Schemas" > (and > before that, "Semantic Classes"), but Page Schemas is the official name > now. > > So, let me give my thoughts on this extension. I think that Page Schemas > will eventually become a very important part of the Semantic MediaWiki > "system". At its heart, Page Schemas is meant to do for data structure > what > Semantic Forms does for data: present a form-based interface so that users > don't have to deal with syntax, and don't have to worry about piece of > information goes where - and in general, make the tasks of creating and > modifying the data structure as simple as possible, while still providing > a > lot of functionality. > > Semantic Forms already tries to do this to some extent with its helper > forms: Special:CreateProperty, Special:CreateTemplate, Special:CreateForm, > Special:CreateCategory and Special:CreateClass. And Semantic Drilldown > includes Special:CreateFilter. All of these have been useful, but they > have > two big limitations: they can only be used to create pages, not to edit > them > - and the sheer number of them causes confusion and requires a lot of > work. > > Page Schemas is meant to streamline that process, by letting you create > and > edit a single piece of XML, contained within a category page, that defines > everything about the data schema for that category: the semantic > properties, > the structure of the template, the structure of the form, and the > drilldown > filters. Everything is integrated together - so if you decide to rename a > field, for instance, you can do all the necessary renaming in one place, > instead of having to modify the template page, the form page, the property > page and possibly a filter page as well. And just as importantly, there's > a > form that lets you edit the XML, so users shouldn't ever have to touch the > XML directly. > > Once the XML is edited, you can, as Ankit noted, use the > Special:GeneratePages button to generate the true pages. > > Eventually, the XML could be used to dictate the data structure directly - > so that, for instance, forms will no longer need to be defined via a > separate page. (Templates will probably always need to be defined.) > Actually, that process has already started, because, with Page Schemas > installed, you no longer need to create filter pages - Semantic Drilldown > can already read the XML directly to figure out what filters should exist > for each category. > > To answer another question, though: even if forms are no longer defined > via > their own page, the Semantic Forms extension will still be necessary, to > do > the display of the forms. > > Page Schemas is still undergoing some changes right now - so I wouldn't > recommend that anyone adopt it right away as their data structure > solution. > But it does indeed work already, so I encourage anyone who's curious to > download it and try it out. (You also would need to have the latest SVN > versions of SMW, SF and SD.) To start playing with it, just go to any > category page and click on the "edit schema" tab/dropdown. My guess is > that, > within a few months at most, a fully-operational version will be ready - > and > then the plan is to add it to Semantic Bundle, Referata, etc. > > There's a lot of interesting things that can be done once you have a > standard XML format for defining data structure - a wiki's structure could > be imported to, and exported from, other formats like UML or a database > schema. And you can have inheritance, letting one category's schema > inherit > fields from another, to eliminate redundancy (that's already supported, > though not by Special:EditSchema). The potential is pretty big, and > Ankit's > project has provided the crucial first step. > > -Yaron > > > On Thu, Sep 1, 2011 at 12:47 PM, Laurent Alquier > <la...@al...>wrote: > >> Very interesting ! >> >> Congrats on completing your GSoC. >> >> @Yaron - do you see SF eventually being phased out and replaced by >> Semantic >> Schemas ? or is it way too early to worry about that ? >> >> - Laurent >> >> On Thu, Sep 1, 2011 at 12:38 PM, ankit garg <ank...@gm...> >> wrote: >> >> > Hi Guys, >> > This is Ankit garg here. I participated in gsoc-2011, this year and >> > successfully finished my project. I did this under the mentorship of >> Yaron >> > who was really encouraging and helpful through-out. Here is a list >> of >> > tasks we achieved . >> > >> > 1) Created a new extension, Page Schemas, that parses the defined >> Schemas >> > XML structure and stores it in memory, and provides hooks for other >> > extensions like (SMW <http://SMW.SF.to>, SF ,SD) add their own >> elements >> > to >> > the XML. >> > Sample XML looks like >> > --------------------------------------------------------- >> > >> > <PageSchema> >> > <semanticforms_Form name="City"> >> > </semanticforms_Form > >> > <Template name="City"> >> > <Field name="Population"> >> > <Label>Pop.</Label> >> > <semanticmediawiki_Property name="Has >> population"> >> > <Type>Number</Type> >> > </semanticmediawiki_Property> >> > <semanticforms_FormInput> >> > <InputType>text</InputType> >> > <Parameter name="size">20</Parameter> >> > <Parameter name="mandatory" /> >> > </semanticforms_FormInput> >> > <semanticdrilldown_Filter> >> > <Label>Population</Label> >> > </semanticdrilldown_Filter> >> > </Field> >> > ... >> > </Template> >> > ...</PageSchema> >> > >> > >> > ---------------------------------------- >> > >> > 2) Added code to other extensions (Semantic MediaWiki, Semantic Forms >> and >> > Semantic Drilldown) to add parsing for additional XML elements, using >> those >> > hooks. >> > >> > 3) Added to Page Schemas a simple mechanism for displaying the XML to >> > users >> > in the Category page. So when user visits the category page, he sees >> the >> > page Schema XML defined for that category >> > >> > 4) Added a special page to Semantic Schemas, "Special:GeneratePages", >> that >> > lets users generate a set of wiki pages based on the XML in one page. >> > >> > 5) Added code to other extensions to create specific page types when " >> > Special:GeneratePages" is called: Semantic Forms (creates templates and >> > forms), Semantic MediaWiki (generates property pages) and Semantic >> > Drilldown >> > (generates filter pages). >> > >> > 6) Added another special page to Semantic Schemas, >> "Special:EditSchema", >> > that lets users create and edit the XML using a form. >> > >> > 7) Page Schemas also defines two tabs, that show up on category pages, >> to >> > provide this functionality: "edit schema" and "generate pages. >> > >> > More information can be found here. >> > http://www.mediawiki.org/wiki/Extension:Page_Schemas >> > >> > -- >> > Ankit Garg >> > Student @ SKIT >> > >> > >> ------------------------------------------------------------------------------ >> > Special Offer -- Download ArcSight Logger for FREE! >> > Finally, a world-class log management solution at an even better >> > price-free! And you'll get a free "Love Thy Logs" t-shirt when you >> > download Logger. Secure your free ArcSight Logger TODAY! >> > http://p.sf.net/sfu/arcsisghtdev2dev >> > _______________________________________________ >> > Semediawiki-user mailing list >> > Sem...@li... >> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user >> > >> >> >> >> -- >> - Laurent Alquier >> http://www.linfa.net >> >> ------------------------------------------------------------------------------ >> Special Offer -- Download ArcSight Logger for FREE! >> Finally, a world-class log management solution at an even better >> price-free! And you'll get a free "Love Thy Logs" t-shirt when you >> download Logger. Secure your free ArcSight Logger TODAY! >> http://p.sf.net/sfu/arcsisghtdev2dev >> _______________________________________________ >> Semediawiki-user mailing list >> Sem...@li... >> https://lists.sourceforge.net/lists/listinfo/semediawiki-user >> > > > > -- > WikiWorks · MediaWiki Consulting · http://wikiworks.com > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user > > -- View this message in context: http://old.nabble.com/Gsoc-2011%3A-Project-Page-Schemas-tp32380895p32412990.html Sent from the Semantic Mediawiki - User mailing list archive at Nabble.com. |