Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why is there no error #73

Open
maple-7 opened this issue Jan 4, 2022 · 1 comment
Open

why is there no error #73

maple-7 opened this issue Jan 4, 2022 · 1 comment

Comments

@maple-7
Copy link

maple-7 commented Jan 4, 2022

A,B and C is class. I want to show if letter is instance of A or B ,than this letter is instance of C.
So I write this sqrl statement, I am confused about whether this statement is correct.

abox:caa(A or B(?letter)->C(?letter)

and I was wondering if 'and' ,'or' could be used in swrl statements.

@martinjoconnor
Copy link
Member

Take a look at the language SWRL FAQ here:

https://github.com/protegeproject/swrlapi/wiki/SWRLLanguageFAQ

SWRL only allows conjunction ('and'), but you can usually work around that limitation by writing multiple rules.

Here, you can do what you want to do directly in the language itself without using built-ins, e.g.,

A(?letter) -> C(?letter)
B(?letter) -> C(?letter)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants