{"action":"created","issue":{"url":"https://api.github.com/repos/protegeproject/swrlapi/issues/14","repository_url":"https://api.github.com/repos/protegeproject/swrlapi","labels_url":"https://api.github.com/repos/protegeproject/swrlapi/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/protegeproject/swrlapi/issues/14/comments","events_url":"https://api.github.com/repos/protegeproject/swrlapi/issues/14/events","html_url":"https://github.com/protegeproject/swrlapi/issues/14","id":133581284,"number":14,"title":"Invalid SWRL atom predicate","user":{"login":"Buglish","id":3147825,"avatar_url":"https://avatars.githubusercontent.com/u/3147825?v=3","gravatar_id":"","url":"https://api.github.com/users/Buglish","html_url":"https://github.com/Buglish","followers_url":"https://api.github.com/users/Buglish/followers","following_url":"https://api.github.com/users/Buglish/following{/other_user}","gists_url":"https://api.github.com/users/Buglish/gists{/gist_id}","starred_url":"https://api.github.com/users/Buglish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Buglish/subscriptions","organizations_url":"https://api.github.com/users/Buglish/orgs","repos_url":"https://api.github.com/users/Buglish/repos","events_url":"https://api.github.com/users/Buglish/events{/privacy}","received_events_url":"https://api.github.com/users/Buglish/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"martinjoconnor","id":1731323,"avatar_url":"https://avatars.githubusercontent.com/u/1731323?v=3","gravatar_id":"","url":"https://api.github.com/users/martinjoconnor","html_url":"https://github.com/martinjoconnor","followers_url":"https://api.github.com/users/martinjoconnor/followers","following_url":"https://api.github.com/users/martinjoconnor/following{/other_user}","gists_url":"https://api.github.com/users/martinjoconnor/gists{/gist_id}","starred_url":"https://api.github.com/users/martinjoconnor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinjoconnor/subscriptions","organizations_url":"https://api.github.com/users/martinjoconnor/orgs","repos_url":"https://api.github.com/users/martinjoconnor/repos","events_url":"https://api.github.com/users/martinjoconnor/events{/privacy}","received_events_url":"https://api.github.com/users/martinjoconnor/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-02-14T21:21:27Z","updated_at":"2016-02-23T19:19:09Z","closed_at":"2016-02-23T19:19:09Z","body":"Got a simple application with code right from the WIKI and with the error I cannot figure out if my queries, dependencies or library is causing the error.\r\n\r\n```\r\nOWLOntologyManager ontologyManager = OWLManager.createOWLOntologyManager();\r\nOWLOntology ontology = ontologyManager.loadOntologyFromOntologyDocument(new File(SOURCE));\r\nSQWRLQueryEngine queryEngine = SWRLAPIFactory.createSQWRLQueryEngine(ontology);\r\nqueryEngine.runSQWRLQuery(\"q1\", \"Person(?p) → sqwrl:count(?p)\");\r\nqueryEngine.runSQWRLQuery(\"q2\", \"This(?p) ^ Be(?p,?a) -> sqwrl:select(?p, ?a)\");\r\n```\r\n\r\nNo matter what my SQWRL query contains it will have the following error when executed:\r\n\r\n```\r\nQuery: Person(?p) → sqwrl:count(?p) \r\n\r\norg.swrlapi.parser.SWRLParseException: Invalid SWRL atom predicate 'Person'\r\n\tat org.swrlapi.parser.SWRLParser.generateEndOfRuleException(SWRLParser.java:446)\r\n\tat org.swrlapi.parser.SWRLParser.parseSWRLAtom(SWRLParser.java:204)\r\n\tat org.swrlapi.parser.SWRLParser.parseSWRLRule(SWRLParser.java:103)\r\n\tat org.swrlapi.factory.DefaultSWRLAPIOWLOntology.createSQWRLQuery(DefaultSWRLAPIOWLOntology.java:217)\r\n\tat org.swrlapi.factory.DefaultSWRLAPIOWLOntology.createSQWRLQuery(DefaultSWRLAPIOWLOntology.java:211)\r\n\tat org.swrlapi.factory.DefaultSWRLRuleAndQueryEngine.createSQWRLQuery(DefaultSWRLRuleAndQueryEngine.java:145)\r\n\tat org.swrlapi.factory.DefaultSWRLRuleAndQueryEngine.runSQWRLQuery(DefaultSWRLRuleAndQueryEngine.java:154)\r\n\tat org.sjdp.sqwrl.GUI.parseTextToQueryAndRun(GUI.java:301)\r\n\tat org.sjdp.sqwrl.GUI.actionPerformed(GUI.java:206)\r\n\tat javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)\r\n\tat javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)\r\n\tat javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)\r\n\tat javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)\r\n\tat javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)\r\n\tat java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)\r\n\tat java.awt.Component.processMouseEvent(Component.java:6525)\r\n\tat javax.swing.JComponent.processMouseEvent(JComponent.java:3324)\r\n\tat java.awt.Component.processEvent(Component.java:6290)\r\n\tat java.awt.Container.processEvent(Container.java:2234)\r\n\tat java.awt.Component.dispatchEventImpl(Component.java:4881)\r\n\tat java.awt.Container.dispatchEventImpl(Container.java:2292)\r\n\tat java.awt.Component.dispatchEvent(Component.java:4703)\r\n\tat java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)\r\n\tat java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)\r\n\tat java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)\r\n\tat java.awt.Container.dispatchEventImpl(Container.java:2278)\r\n\tat java.awt.Window.dispatchEventImpl(Window.java:2750)\r\n\tat java.awt.Component.dispatchEvent(Component.java:4703)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)\r\n\tat java.awt.EventQueue.access$500(EventQueue.java:97)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:709)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:703)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)\r\n\tat java.awt.EventQueue$4.run(EventQueue.java:731)\r\n\tat java.awt.EventQueue$4.run(EventQueue.java:729)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:728)\r\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)\r\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)\r\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:82)\r\n\t\r\n\r\n#q2\r\nQuery: This(?p) ^ Be(?p,?a) -> sqwrl:select(?p, ?a)\r\n\r\n\r\norg.swrlapi.parser.SWRLParseException: Invalid SWRL atom predicate 'This'\r\n\tat org.swrlapi.parser.SWRLParser.generateEndOfRuleException(SWRLParser.java:446)\r\n\tat org.swrlapi.parser.SWRLParser.parseSWRLAtom(SWRLParser.java:204)\r\n\tat org.swrlapi.parser.SWRLParser.parseSWRLRule(SWRLParser.java:103)\r\n\tat org.swrlapi.factory.DefaultSWRLAPIOWLOntology.createSQWRLQuery(DefaultSWRLAPIOWLOntology.java:217)\r\n\tat org.swrlapi.factory.DefaultSWRLAPIOWLOntology.createSQWRLQuery(DefaultSWRLAPIOWLOntology.java:211)\r\n\tat org.swrlapi.factory.DefaultSWRLRuleAndQueryEngine.createSQWRLQuery(DefaultSWRLRuleAndQueryEngine.java:145)\r\n\tat org.swrlapi.factory.DefaultSWRLRuleAndQueryEngine.runSQWRLQuery(DefaultSWRLRuleAndQueryEngine.java:154)\r\n\tat org.sjdp.sqwrl.GUI.parseTextToQueryAndRun(GUI.java:301)\r\n\tat org.sjdp.sqwrl.GUI.actionPerformed(GUI.java:206)\r\n\tat javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)\r\n\tat javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)\r\n\tat javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)\r\n\tat javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)\r\n\tat javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)\r\n\tat java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)\r\n\tat java.awt.Component.processMouseEvent(Component.java:6525)\r\n\tat javax.swing.JComponent.processMouseEvent(JComponent.java:3324)\r\n\tat java.awt.Component.processEvent(Component.java:6290)\r\n\tat java.awt.Container.processEvent(Container.java:2234)\r\n\tat java.awt.Component.dispatchEventImpl(Component.java:4881)\r\n\tat java.awt.Container.dispatchEventImpl(Container.java:2292)\r\n\tat java.awt.Component.dispatchEvent(Component.java:4703)\r\n\tat java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)\r\n\tat java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)\r\n\tat java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)\r\n\tat java.awt.Container.dispatchEventImpl(Container.java:2278)\r\n\tat java.awt.Window.dispatchEventImpl(Window.java:2750)\r\n\tat java.awt.Component.dispatchEvent(Component.java:4703)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)\r\n\tat java.awt.EventQueue.access$500(EventQueue.java:97)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:709)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:703)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)\r\n\tat java.awt.EventQueue$4.run(EventQueue.java:731)\r\n\tat java.awt.EventQueue$4.run(EventQueue.java:729)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:728)\r\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)\r\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)\r\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:82)\r\n\t\r\n```\r\n\r\nIt is a maven application with POM as below:\r\n\r\n```\r\n<dependencies>\r\n        <dependency>\r\n            <groupId>net.sourceforge.owlapi</groupId>\r\n            <artifactId>owlapi-osgidistribution</artifactId>\r\n            <version>4.1.4</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>edu.stanford.nlp</groupId>\r\n            <artifactId>stanford-corenlp</artifactId>\r\n            <version>3.6.0</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>edu.stanford.nlp</groupId>\r\n            <artifactId>stanford-corenlp</artifactId>\r\n            <version>3.6.0</version>\r\n            <classifier>models</classifier>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>edu.stanford.swrl</groupId>\r\n            <artifactId>swrlapi</artifactId>\r\n            <version>1.0.0-beta-11</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>edu.stanford.swrl</groupId>\r\n            <artifactId>swrlapi-drools-engine</artifactId>\r\n            <version>1.0.0-beta-11</version>\r\n        </dependency>\r\n        <dependency>\r\n            <groupId>log4j</groupId>\r\n            <artifactId>log4j</artifactId>\r\n            <version>1.2.17</version>\r\n        </dependency>\r\n    </dependencies>\r\n```"},"comment":{"url":"https://api.github.com/repos/protegeproject/swrlapi/issues/comments/187850113","html_url":"https://github.com/protegeproject/swrlapi/issues/14#issuecomment-187850113","issue_url":"https://api.github.com/repos/protegeproject/swrlapi/issues/14","id":187850113,"user":{"login":"Buglish","id":3147825,"avatar_url":"https://avatars.githubusercontent.com/u/3147825?v=3","gravatar_id":"","url":"https://api.github.com/users/Buglish","html_url":"https://github.com/Buglish","followers_url":"https://api.github.com/users/Buglish/followers","following_url":"https://api.github.com/users/Buglish/following{/other_user}","gists_url":"https://api.github.com/users/Buglish/gists{/gist_id}","starred_url":"https://api.github.com/users/Buglish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Buglish/subscriptions","organizations_url":"https://api.github.com/users/Buglish/orgs","repos_url":"https://api.github.com/users/Buglish/repos","events_url":"https://api.github.com/users/Buglish/events{/privacy}","received_events_url":"https://api.github.com/users/Buglish/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T19:19:09Z","updated_at":"2016-02-23T19:19:09Z","body":"The issue of this thread has been resolved so I am closing it.\r\nIt seems this is not the correct platform for helpful discussions."}}