-
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
creating SWRL rule using imported ontologies #25
Comments
The error does not correspond to the query. The parser is complaining about a reference to an OWL entity A that is not present in the associated ontology. |
I would just add to @cedaradmin 's comment that you should tell us in which line is the exception thrown, because it is not obvious. Also it would be very helpful if we could see the ontologies, because the problem may lie there. And finally, if the
|
Thanks! I make it if I assign the prefixes of impogies |
@zzw95 some parts of your message got lost. Should we understand that it works if you set prefixes for your imported ontologies, and use those prefixes in your rule? |
Hello, I am a research student and new to ontology, protege, SWRL and SQWRL. I saw this code in github and test it to see if I could use the ideas from this code to solve my problem but I am having the following runtime errors: I will be grateful for any help to solve this problem. Kind regards Runtime error See code
} |
The example on the wiki for result processing was a little misleading. I have updated it here: https://github.com/protegeproject/swrlapi/wiki/SQWRLQueryAPI#processing-sqwrl-query-results You need to match the names of the columns to the variables used in the select statement. |
Hi,
There is a class People in family.owl and a class PeopleA in familyA.owl, and map.owl imports family.owl and familyA.owl .And I want to map the content in between (family -> familyA) .So I create some swrl rules in map.owl. But there is an exception like "Exception in thread "main" org.swrlapi.parser.SWRLParseException: Invalid SWRL atom predicate 'A'".
Cheers.
Code:
The text was updated successfully, but these errors were encountered: