VisualDataWeb / WebVOWL

Visualizing ontologies on the Web
http://vowl.visualdataweb.org/webvowl.html
MIT License
695 stars 203 forks source link

cardinality of min 0, max 1 is represented in WebVOWL as *..1 instead of 0..1 as documented #177

Closed eric-jahn closed 2 years ago

eric-jahn commented 3 years ago

I have the following stanzas:

###  http://www.hudhdx.info/Resources/Vendors/FY2022/owl#Client
hmisowl:Client rdf:type owl:Class ;
               rdfs:subClassOf [ rdf:type owl:Restriction ;
                                 owl:onProperty hmisowl:hasClientVeteranInfo ;
                                 owl:minCardinality "0"^^xsd:nonNegativeInteger
                               ] ,
                               [ rdf:type owl:Restriction ;
                                 owl:onProperty hmisowl:hasClientVeteranInfo ;
                                 owl:maxCardinality "1"^^xsd:nonNegativeInteger
                               ] .
###  http://www.hudhdx.info/Resources/Vendors/FY2022/owl#hasClientVeteranInfo
hmisowl:hasClientVeteranInfo rdf:type owl:ObjectProperty ;
                             rdfs:domain hmisowl:Client ;
                             rdfs:range hmisowl:ClientVeteranInfo .

but it renders *..1:

cvi

If I change the values to, say "5..15", or "3..12", then it it fine, but the "0" in "0..1" itself is being replaced by "*".

gitongithub commented 2 years ago

I would like to work on this issue. I believe when only maxCardinality is defined (and minCardinality isn't specified), we should set the minimum cardinality as 0 and reflect the same in generateCardinalityText().