waanders
waanders

Reputation: 9083

One-to-many relationship Semantic MediaWiki properties

Is it possible to define a one-to-many relationship between two properties (both lists with allowed values) of a SMW-page?

And if so, how?

Upvotes: 3

Views: 203

Answers (1)

JosefAssad
JosefAssad

Reputation: 4128

A property contains a single value; that's not a limitation as such, it's an RDF triple essentially with subject, object, and predicate.

You define relationships in pages. The way a 1-to-N works in that case is, on one page declare N instances of one property with different values.

This is usually handled in a template definition of that page; as I recall, it's the SemanticForms extension which provides you with an easy to use checkbox to allow this.

enter image description here

Upvotes: 0

Related Questions