## Re: [Semediawiki-user] Relational attributes?

 Re: [Semediawiki-user] Relational attributes? From: MovGP0 - 2006-06-21 09:40:01 ```> Max V=F6lkel wrote: >=20 > >> Whats an intuitive way of modeling "Joe knows Frank, they are > >> friends since 1992" in OWL? >=20 > > I guess, by giving _:1 a more meaningful name: >=20 > > (Joe, Relation:knows, Frank) > > (Joe, _:is_since_1992_friend_of, Frank) > > (Frank, _:is_since_1992_friend_of, Joe) // you might want to > > use (_1, rdf:type, owl:SymmetricProperty) instead > > > > (_:is_since_1992_friend_of, rdfs:subPropertyOf, > > Relation:is_friend_of) > > (_:is_since_1992_friend_of, Attribute:since, 1992) >=20 > > (Relation:knows, rdf:type, owl:ObjectProperty) > > (Relation:is_friend_of, rdfs:subPropertyOf, Relation:knows) >=20 > > (Attribute:since, rdf:type, Type:DateTime) > > (Type:DateTime, rdf:type, rdfs:Literal) > > > > etc. >=20 > Okay, and *now* we need a nice wiki syntax for this :-) Well, how is this one? [[{since:=3D1992}{rdfs:subPropertyOf::is friend of}::{Frank}{John}]] In that Example the Relation is Anonymous and encodes the same = information than in the above example. The _: is created dynamically from = the Array in the Relation-Part. Also the Relation is applied to an Array of other Peoples and therefore has the same Meaning than: [[{since:=3D1992}{rdfs:subPropertyOf::is friend of}::Frank]] [[{since:=3D1992}{rdfs:subPropertyOf::is friend of}::John]] >=20 > Or: Do we really need this? Whats the 80:20 rule. What benefit do we > get from modelign it this way? Whats is a real-life use case for this? > Extra points: Use case should come from Wikipedia data. Well, I think so. Describing such Relations is very common, so its not = hard to find examples.=20 Example taken from http://en.wikipedia.org/wiki/Albert_Einstein: He was awarded the 1921 Nobel Prize for Physics for his explanation of = the photoelectric effect in 1905 (his "wonderful year") and "for his = services to Theoretical Physics". I would model that as something like the following: [[{rdfs:subPropertyOf:got award} {date:=3D1921} {because:: {explained::photoelectric effect} {explained::Theoretical Physics} {date:=3D1905} } ::Nobel Prize#Physics]] The "wonderful year" Annotation is even more complex and might need to = be done in the Article [[1921 (Year)]] using [[{context of::Einstein}{rdfs:subPropertyOf::Name}:=3Dwonderful year]] If you want to make this Annotation within [[Einstein]] we might want to use: [[1921 (Year)::{context of::Einstein}{rdfs:subPropertyOf::Name}:=3Dwonderful year]] or by something like: [[1921{type::Year}::{context of::Einstein}{rdfs:subPropertyOf::Name}:=3Dwonderful year]] The last solution assumes an Article called 1921 describing the integer _and_ the year 1921, which is also common in Wikipedia. So we create not only a virtual Relation, but also a virtual Article. Anyway, I guess = that the last two examples are more complex than needed.=20 >=20 > ;-) Max >=20 ;-) MovGP0 ```