Re: ObjectProprerty Restrictions not generating in RDFXML
Posted by
MartyStache on
URL: http://owlready.306.s1.nabble.com/ObjectProprerty-Restrictions-not-generating-in-RDFXML-tp2124p2131.html
What do I enter rather than 25 for max if is unlimited? Forgot to ask.
Is typically * or n but not sure which OWLReady2 accepts.
From: cknoll [via Owlready] <[hidden email]>
Sent: Monday, November 30, 2020 6:32:49 PM
To: Tim Duval <[hidden email]>
Subject: Re: ObjectProprerty Restrictions not generating in RDFXML
I am not sure but this adaption of your example might help:
https://nbviewer.jupyter.org/github/cknoll/demo-material/blob/main/expertise_system/cardinality_restriction_demo.ipynb
Main difference: Instead of just creating the restriction object by `has_Equipments.max(25, Equipment) ` it is now added to the list `EquipmentContainer.is_a` via `EquipmentContainer.is_a.append(has_Equipments.max(25, Equipment))`.
Actually, I set the max-value to 1 to simplify the test whether the reasoner detects an violation to this restriction. This works as expected.
The restriction also shows up in the XML-Code.
Note that I simplified the example by considering only one of the original four restrictions...
Best regards,
Carsten
To unsubscribe from ObjectProprerty Restrictions not generating in RDFXML,
click here.
NAML