|
From: Yaron K. <ya...@wi...> - 2012-05-30 18:53:54
|
Hi,
What you set is a property named "Category". It's not actually a category,
and in fact you can't set categories via #subobject (or via SIO's
#set_internal either, for that matter.)
-Yaron
On Wed, May 30, 2012 at 3:49 PM, Jar-Jar <zyl...@gm...>wrote:
> Just figured out the syntax error (one column only after Category). The
> category remains however empty...
>
> On 30.05.2012 21:40, Jar-Jar wrote:
> > Hi,
> >
> > thanks for your help and... another question:
> > I can now create via form a page with a list of subobjects. However I
> > can't display them. The factbox lists only one of them (since they all
> > have the same name?) and doesn't show any properties. Here is what I
> tried:
> >
> > The template:
> > {{#subobject:su
> > | [[Category::SomeCategory]]
> > | ...
> > }}
> >
> > The query:
> >
> > {{#ask: [[Category::SomeCategory]]
> > | ...
> > }}
> >
> > I created the category via CreateCategory, but it is always empty. The
> > query gives me no results plus I get:
> >
> > * Some part "<nowiki>…</nowiki>" of the query was not understood.
> > * Some subquery has no valid condition.
> >
> > Am I doing something wrong and is it at all possible for subobjects to
> > have categories?
> >
> > Thanks a lot!
> >
> > -m
> >
> >
> > On 11.05.2012 23:55, Yaron Koren wrote:
> >> Hi,
> >>
> >> To answer the 1st and 2nd questions, the key is to put the #subobject or
> >> #set_internal call in a template, and then add that template to the form
> >> as a multiple-instance template:
> >>
> >>
> http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#Multiple-instance_templates
> >>
> >> The answer to the 3rd question is yes. :) If you look at the generated
> >> template, it should have a call to #arraymap there.
> >>
> >> -Yaron
> >>
> >> On Fri, May 11, 2012 at 6:33 PM, Jar-Jar<zyl...@gm...
> >> <mailto:zyl...@gm...>> wrote:
> >>
> >> Hi there,
> >>
> >> I'm new to SMW and I hope you can help me out with this design
> issue.
> >> I want the user to be able to manage a list of nameless semantic
> >> entities. Using subobjects the result could be a page like this:
> >>
> >> {{#subobject:su1
> >> | first=bla
> >> | second=bla
> >> | ...
> >> }}
> >>
> >> {{#subobject:su2
> >> | first=something
> >> | second=something else
> >> | ...
> >> }}
> >>
> >> ...
> >>
> >> {{#subobject:suN
> >> | first=asdf
> >> | second=xyz
> >> | ...
> >> }}
> >>
> >> My questions:
> >> 1. How can I produce a form that lets the user create an arbitrary
> >> number of these objects?
> >> 2. How can the user edit and delete those objects (through a form)?
> >> 3. Do Semantic Forms support editing lists at all? I noticed the
> >> checkbox in Special:CreateTemplate for creating list fields, but it
> >> doesn't seem to have any effect.
> >> 4. How stable is the whole subobjects feature so far? Should I use
> >> internal objects instead?
> >>
> >> 5. Here is what I want to do more specifically: There are going to
> be a
> >> bunch of entities and classes and the user should be able to add
> >> statements about them. I want those statements be discrete objects
> >> because they might be associated with a reference and because they
> might
> >> be wrong and get deleted later. Is there a better way to implement
> this?
> >>
> >>
> >> Thanks a lot for answers, links to sample implementations,
> suggested
> >> readings....!
> >>
> >> -m
> >>
> >>
> ------------------------------------------------------------------------------
> >> Live Security Virtual Conference
> >> Exclusive live event will cover all the ways today's security and
> >> threat landscape has changed and how IT managers can respond.
> >> Discussions
> >> will include endpoint security, mobile security and the latest in
> >> malware
> >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> >> _______________________________________________
> >> Semediawiki-user mailing list
> >> Sem...@li...
> >> <mailto:Sem...@li...>
> >> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
> >>
> >>
> >>
> >>
> >> --
> >> WikiWorks · MediaWiki Consulting · http://wikiworks.com
> >
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > Semediawiki-user mailing list
> > Sem...@li...
> > https://lists.sourceforge.net/lists/listinfo/semediawiki-user
> >
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Semediawiki-user mailing list
> Sem...@li...
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>
--
WikiWorks · MediaWiki Consulting · http://wikiworks.com
|