Skip to content

Create cardinalities for individual properties

Cardinalities for each property must be added as owl:Restriction in the Class where the property can be used.

e.g.: AdverseEvent can have at most one hasConsequences property value provided.

sphn:AdverseEvent rdf:type owl:Class ;
                  rdfs:subClassOf sphn:SPHNConcept ,
                                  [ owl:intersectionOf ( [ rdf:type owl:Restriction ;
                                                           owl:onProperty sphn:hasConsequences ;
                                                           owl:minCardinality "0"^^xsd:nonNegativeInteger
                                                         ]
                                                         [ rdf:type owl:Restriction ;
                                                           owl:onProperty sphn:hasConsequences ;
                                                           owl:maxCardinality "1"^^xsd:nonNegativeInteger
                                                         ]
                                                       ) ;
                                    rdf:type owl:Class