What a relief to see this discussion... I have been worrying about this and would be so grateful for a solution. The use of 'multiple' on forms brings this difficultly into sharp focus.


On Fri, Jan 23, 2009 at 2:55 AM, Patrick Nagel <mail@patrick-nagel.net> wrote:

the following parts of this discussion make it clear once again, that actually
usable many-valued properties are an important feature. The lack of it causes
great trouble for a lot of SMW users.

 >     Dan Bolser wrote:
 >      > If I have several 'semantic' template calls on a page, like:
 >      >
 >      > {{car | id=1 | color=red | speed=fast }}
 >      > {{car | id=2 | color=blue | speed=fast }}
 >      > {{car | id=3 | color=red | speed=slow }}
 >      > {{car | id=4 | color=pink | speed=fast }}
 >      > How do I actually get back the fact that car ID=4 is pink and fast?
 >      > And can I do that in a table for each car without putting the
 >      > information across several pages (one page per car)?

 > On Thu, Jan 22, 2009 at 9:22 AM, Temlakos <temlakos@gmail.com
 > <mailto:temlakos@gmail.com>> wrote:
 >     Now I don't pretend to understand N-ary properties--how to annotate
 >     them, or how to query them. I suspect, but cannot prove, that the answer
 >     to your problem might lie in defining a car as an N-ary property of the
 >     article. In that way, you'd have four cars, each with its own unique
 >     combination of ID, color, and speed attributes. But I have never once
 >     figured out how to define, annotate, and query an N-ary property.
 >     Which also goes to show the number-one failing of the Semantic MediaWiki
 >     project: /Lack of adequate documentation/.

On 2009-01-22 23:12, Yaron Koren wrote:
 > I don't understand the tone - as far as I know, no one on this list has
 > ever just told anyone "read the manual". In any case, the reason you
 > haven't been able to find any documentation on n-ary relations is that
 > they're not supported in Semantic MediaWiki (though I hope they will be
 > some day). What is supported are many-valued properties:
 > http://semantic-mediawiki.org/wiki/Help:Many-valued_properties
 > These are similar to n-ary relations, although with a few key
 > weaknesses: one can't separate out the values for display in a query, so
 > that showing the results in separate columns of a table won't be
 > possible. Also, none of the values in the property can be enumerations,
 > i.e. with a limited set of allowed values. But Dan - it should be
 > possible to at least get all the correct data to show up in a query;

please, SMW developers, make this a priority :)


Key ID: 0x86E346D4            http://patrick-nagel.net/key.asc
Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4

This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
Semediawiki-user mailing list