Re: [Semediawiki-user] best way to extract properties from smw?

This may be too late depending on the amount of content you already have in
your wiki, but I found thisis usually a design issue for many SMW setups.
SMW usually works best when moving all categorizations to properties.
I usually recommend to use only one category per page, in a way similar to
is-a relationship (or in your example Type).
For example, a page can be about a Link, a Publication, a Biography - which
would make up categories. Each of these pages would then have further
categorizations in the way of properties : course, subject, topic, tags,
etc.
Taking this kind of design makes the content of the wiki a lot easier to
deal with.
I also recommend to add two text properties to any template :
[[Has page title::{{SUBJECTPAGENAME}}| ]]
[[Has page class::<whatever category your page has>| ]]
This allows you to query on pages of a certain category only (and not
subcategories), and use text filters for queries on categories and page
titles.
- Laurent
On Mon, Apr 18, 2011 at 9:57 AM, graham <graham@...> wrote:
> The wiki pages are each descriptions/links etc for an educational
> resource. Each page is in multiple categories: for course/subject, and
> for type (eg library, database, archive). I want to export all this
> nightly to a db which includes joining tables for subject/resource and
> type/resource, so need the two lists of subcategories to populate tables
> first.
>
> Graham
>
>
> On 04/18/11 14:52, Yaron Koren wrote:
> > Hi,
> >
> > You probably could do that, yes. Though - out of curiosity, why do you
> > need to query directly on categories? It's the non-category pages that
> > usually hold all the data.
> >
> > -Yaron
> >
> > On Mon, Apr 18, 2011 at 8:40 AM, graham <graham@...> wrote:
> >> So I guess I could add a property to all the category pages (eg
> >> property:subcategoryOf) and query on that?
> >>
> >> On 04/18/11 14:23, Yaron Koren wrote:
> >>> Hi,
> >>>
> >>> I don't believe such a query is currently possible in SMW.
> >>>
> >>> -Yaron
> >>>
> >>> On Mon, Apr 18, 2011 at 8:16 AM, graham <graham@...> wrote:
> >>>> On 04/18/11 13:09, Dan Bolser wrote:
> >>>>
> >>>>>
> >>>>> It should be possible using the following query to do what you want:
> >>>>>
> >>>>> {{#ask: [[Some super category]] [[Category:+]] }}
> >>>>>
> >>>>>
> >>>>> However, I seem to remember a discussion in the excellent SMW IRC
> >>>>> channel [1] about this type of query failing for some reason. Let us
> >>>>> know how you get on!
> >>>>>
> >>>>
> >>>> Not working for me either. Will try the IRC channel...
> >>>>
> >>>> Graham
> >>>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> >
>
>
>
> ------------------------------------------------------------------------------
> Benefiting from Server Virtualization: Beyond Initial Workload
> Consolidation -- Increasing the use of server virtualization is a top
> priority.Virtualization can reduce costs, simplify management, and improve
> application availability and disaster protection. Learn more about boosting
> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
> _______________________________________________
> Semediawiki-user mailing list
> Semediawiki-user@...
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>
--
- Laurent Alquier
http://www.linfa.net