buda-base / public-digital-library

http://library.bdrc.io
4 stars 6 forks source link

display only one property for incarnation #536

Closed eroux closed 3 years ago

eroux commented 3 years ago

In some cases when we have hasIncarnationGeneral + a subproperty (such as hasIncarnationBody) with the same object, we should only display the most specific property, a bit like what we do with the kinWith. Example : https://library.bdrc.io/show/bdr:P314

(moved from https://github.com/buda-base/library-issues/issues/352)

berger-n commented 3 years ago

not sure to get this right, but ontology does not seem to have that kind of hierarchy hasIncarnation is parent to all subproperties like hasIncarnationGeneral etc.:

bdo:hasIncarnationActivities
   a             owl:ObjectProperty ;
   rdfs:label    "'phrin las kyi sprul gzhi/"@bo-x-ewts , "has activities incarnation"@en , "事业化身(转世)"@zh-hans ;
   rdfs:subPropertyOf  bdo:hasIncarnation ;
   owl:inverseOf  bdo:incarnationActivities ;
   adm:userTooltip  "Indicates an Activities incarnation of this Person."@en .

bdo:hasIncarnationBody
   a             owl:ObjectProperty ;
   rdfs:label    "sku'i sprul gzhi/"@bo-x-ewts , "has body incarnation"@en , "身化身(转世)"@zh-hans ;
   rdfs:subPropertyOf  bdo:hasIncarnation ;
   owl:inverseOf  bdo:incarnationBody ;
   adm:userTooltip  "Indicates a Body incarnation of this Person."@en .

bdo:hasIncarnationGeneral
   a             owl:ObjectProperty ;
   rdfs:label    "sprul gzhi/"@bo-x-ewts , "has general incarnation"@en , "化身(转世)"@zh-hans ;
   rdfs:subPropertyOf  bdo:hasIncarnation ;
   owl:inverseOf  bdo:incarnationGeneral ;
   adm:userTooltip  "Indicates an incarnation of this Person."@en .

bdo:hasIncarnationMind
   a             owl:ObjectProperty ;
   rdfs:label    "thugs kyi sprul gzhi/"@bo-x-ewts , "has mind incarnation"@en , "意化身(转世)"@zh-hans ;
   rdfs:subPropertyOf  bdo:hasIncarnation ;
   owl:inverseOf  bdo:incarnationMind ;
   adm:userTooltip  "Indicates a Minds incarnation of this Person."@en .

bdo:hasIncarnationQualities
   a             owl:ObjectProperty ;
   rdfs:label    "yon tan gyi sprul gzhi/"@bo-x-ewts , "has qualities incarnation"@en , "功德化身(转世)"@zh-hans ;
   rdfs:subPropertyOf  bdo:hasIncarnation ;
   owl:inverseOf  bdo:incarnationQualities ;
   adm:userTooltip  "Indicates a Qualities incarnation of this Person."@en .

bdo:hasIncarnationSpeech
   a             owl:ObjectProperty ;
   rdfs:label    "gsung gi sprul gzhi/"@bo-x-ewts , "has speech incarnation"@en , "语化身(转世)"@zh-hans ;
   rdfs:subPropertyOf  bdo:hasIncarnation ;
   owl:inverseOf  bdo:incarnationSpeech ;
   adm:userTooltip  "Indicates a Speech incarnation of this Person."@en .

bdo:hasIncarnationYangtse
   a             owl:ObjectProperty ;
   rdfs:label    "yang srid/"@bo-x-ewts , "has yangtse"@en , "其年轻化身(转世)"@zh-hans ;
   rdfs:subPropertyOf  bdo:hasIncarnation ;
   owl:inverseOf  bdo:incarnationYangtse ;
   adm:userTooltip  "Indicates a young incarnation of this Person."@en .
eroux commented 3 years ago

hmmm.. you're right! moved to https://github.com/buda-base/xmltoldmigration/issues/186