I do not see how this could be one in OWL, but you can do it in SHACL.
ex:SingletonClas a owl:Class;
a sh:NodeShape;
sh:path [
sh:inversePath rdf:type ;
] ;
sh:maxCount 1.
This would not prevent it having additional instances from subclasses as the
constraint only deals with the direct instances. You could do something more
complex with paths to address possible indirect instances if this is even a
consideration.
> On Apr 30, 2019, at 6:52 AM, 'Bohms, H.M. (Michel)' via TopBraid Suite Users
> <[email protected]> wrote:
>
> Hmmm, the one instance is not static, but changing...
> (so I was looking for a certain restriction on class level like “can contain
> max 1 instance”).
>
> Guess not inline with open world assumption anyway...?
>
>
>
>
>
> Dr. ir. H.M. (Michel) Böhms
> Senior Data Scientist
>
> T +31888663107
> M +31630381220
> E [email protected] <mailto:[email protected]>
> Location
> <https://www.google.com/maps/place/TNO+-+Locatie+Delft+-+Stieltjesweg/@52.000788,4.3745183,17z/data=!3m1!4b1!4m5!3m4!1s0x47c5b58c52869997:0x56681566be3b8c88!8m2!3d52.000788!4d4.376707>
>
>
> <image001.gif> <http://www.tno.nl/>
> This message may contain information that is not intended for you. If you are
> not the addressee or if this message was sent to you by mistake, you are
> requested to inform the sender and delete the message. TNO accepts no
> liability for the content of this e-mail, for the manner in which you use it
> and for damage of any kind resulting from the risks inherent to the
> electronic transmission of messages.
>
>
>
>
> From: [email protected]
> <mailto:[email protected]> <[email protected]
> <mailto:[email protected]>> On Behalf Of dprice
> Sent: dinsdag 30 april 2019 12:36
> To: [email protected] <mailto:[email protected]>
> Subject: Re: [topbraid-users] singleton
>
>
>
>
> On 30 Apr 2019, at 09:44, 'Bohms, H.M. (Michel)' via TopBraid Suite Users
> <[email protected] <mailto:[email protected]>>
> wrote:
>
> I there anyway to restrict a class to one instance in OWL?
>
> Make an enumerated class with only one individual that is of type the class.
> See https://www.w3.org/TR/owl2-syntax/#Enumeration_of_Individuals
> <https://www.w3.org/TR/owl2-syntax/#Enumeration_of_Individuals>
>
> Note that you can create the class in one graph, and enumerate the
> individuals in a second if you need to partition instances from classes
> and/or allow for different individuals in different contexts.
>
> Cheers,
> David
>
>
> (ie singleton)
>
> Thx Michel
>
>
>
>
> Dr. ir. H.M. (Michel) Böhms
> Senior Data Scientist
>
>
> T +31888663107
> M +31630381220
> E [email protected] <mailto:[email protected]>
> Location
> <https://www.google.com/maps/place/TNO+-+Locatie+Delft+-+Stieltjesweg/@52.000788,4.3745183,17z/data=!3m1!4b1!4m5!3m4!1s0x47c5b58c52869997:0x56681566be3b8c88!8m2!3d52.000788!4d4.376707>
>
>
> <image001.gif> <http://www.tno.nl/>
> This message may contain information that is not intended for you. If you are
> not the addressee or if this message was sent to you by mistake, you are
> requested to inform the sender and delete the message. TNO accepts no
> liability for the content of this e-mail, for the manner in which you use it
> and for damage of any kind resulting from the risks inherent to the
> electronic transmission of messages.
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "TopBraid Suite Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> UK +44 (0) 7788 561308
> US +1 (336) 283-0808
>
> --
> You received this message because you are subscribed to the Google Groups
> "TopBraid Suite Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google Groups
> "TopBraid Suite Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.