You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recommended way to create an Enum in an owl ontology is to use owl:equivalentClass with a bnode containing an owl:oneOf list like this:
cn:CausalEffectIncrease
a owl:NamedIndividual , cn:CausalEffect ;
rdfs:comment "The link has the effect of Increasing."@en ;
rdfs:label "Increase"@en ;
.
cn:CausalEffectDecrease
a owl:NamedIndividual , cn:CausalEffect ;
rdfs:comment "The link has the effect of Decreasing."@en ;
rdfs:label "Decrease"@en ;
cn:CausalEffects
a rdfs:Class, owl:Class ;
rdfs:subClassOf cn:CausalEffect ;
owl:equivalentClass [
owl:oneOf ( cn:CausalEffectIncrease cn:CausalEffectDecrease ) ;
] ;
rdfs:comment "Enum of possible Casual Effects. Can be \"Increase\" or \"Decrease\"."@en ;
.
When rendering this in pyLode I get this output:
Notice the owl:equivalentClass
I would expect this to render a list of the named individuals like this:
equivalentClass: Enumeration
cn:CausalEffectIncrease
cn:CausalEffectDecrease
The text was updated successfully, but these errors were encountered:
The recommended way to create an Enum in an owl ontology is to use
owl:equivalentClass
with a bnode containing anowl:oneOf
list like this:When rendering this in pyLode I get this output:
Notice the
owl:equivalentClass
I would expect this to render a list of the named individuals like this:
The text was updated successfully, but these errors were encountered: