-
Notifications
You must be signed in to change notification settings - Fork 40
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
Result of group by contains unexpected rows #56
Comments
This is very odd. I will take a look. |
Works fine for me. See enclosed file containing your classes and individuals and a SQWRL query. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm using latest Protege 5.5.0 and the installed SWRL Tab plugin version is 2.0.6
Let's assume the following data just consisting of 3 classes and 5 individuals.
The task of the SQWRL query is to compute the number of classes each individual belongs to.
The query I tried is
abox:caa(?cls, ?ind) . sqwrl:makeBag(?bag, ?cls) ^ sqwrl:groupBy(?bag, ?ind) . sqwrl:size(?n, ?bag) -> sqwrl:select(?ind, ?n)
it works mostly as expected except that it also returns some results that shouldn't occur:
So the last 5 rows are indeed what I'd expect, but I can't explain the other rows. Any ideas what I'm doing wrong?
I assume it has something to do with the "meta-axioms" like
:C1 rdf:type owl:Class
, am I right? Is there any chance to omit those entity declaration axioms? And also, the numbern
for those cases is clearly not a number so it looks like thesize
built-in fails somehow?The text was updated successfully, but these errors were encountered: