This is exactly what I needed! Thanks a TON!
From: cknoll [via Owlready] <[hidden email]>
Sent: Monday, November 30, 2020 6:33 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
If you reply to this email, your message will be added to the discussion below:
To unsubscribe from ObjectProprerty Restrictions not generating in RDFXML,
click here.
NAML
Free forum by Nabble | Edit this page |