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

swrl tbox built in #77

Open
gregmocko opened this issue Mar 15, 2022 · 6 comments
Open

swrl tbox built in #77

gregmocko opened this issue Mar 15, 2022 · 6 comments

Comments

@gregmocko
Copy link

I have developed an ontology in Protege 5.5.0. I have asserted two classes with a hierarchical structure
Thing
-->Model
--> CAD_Model

I am attempted to use the SQWRL and SWRL rules within the SQWRL tab. The query that I written uses SWRL Tbox built ins, I have copied an examples from https://github.com/protegeproject/swrlapi/wiki/SQWRLQueryAPI

tbox:sca(Model, ?c) -> sqwrl:select(?c)

I have run the Fact++ reasoner. Given the description of the tbox:sca built in function I was expecting to return the class "CAD_Model". My basic desire is not only to return Individuals within a class but to return a Subclass from a known class. Is there any insight on this built-in. The git page indicates it is implemented.

@martinjoconnor
Copy link
Member

The parent is in the second argument position:

sca: Subclass axiom. e.g., tbox:sca(?c, Parent)

Also note the statement on the parent page: Note that these built-ins query only asserted axioms.

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

@gregmocko
Copy link
Author

gregmocko commented Mar 15, 2022 via email

@martinjoconnor
Copy link
Member

Can you post a simple ontology that illustrates this issue. (Change the .owl extension to .txt since GitHub will not accept .owl as a file extension.)

Also check that you are using the latest SWRLAPI release (2.0.11).

@gregmocko
Copy link
Author

I really appreciate the help Martin.

I did have an older version of SWRLAPI - I updated the version and it worked.

As you have pointed out above, the tbox:sca will only work with asserted classes. How would I find subclasses for defined classes or inferred classes. Any insight would be great.

I have attached my simple ontology.
simply_ontology_mocko.txt

@martinjoconnor
Copy link
Member

I would post this more general question on the Protege mailing list. There are a lot of people using a variety of technologies that post there.

https://protege.stanford.edu/support.php

@gregmocko
Copy link
Author

gregmocko commented Mar 17, 2022 via email

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