|
I want to write the following swrl rule in Owlready2:
Flow(?fl) ∧ hasAsset(?fl, ?ast) ∧ hasLink(?fl, ?lk) → hasAttack(?fl, WebAttack1)
There is documentation in Owlready2, but I cannot find any information on how to use the consequent of the rule to get Flows for WebAttack1.
I cannot use SPARQL because the some relationships have to be inferred and SPARQL does not give inferred results.
Is there a way to create rules and then get the results of the consequents and display them to a user?
|