Questions tagged [swrlapi]

Questions about the SWRL Rule Engine API (SWRLAPI), which is a component for creating and manipulating SWRL rules.

The SWRLAPI is a Java API for working with the OWL-based SWRL rule and SQWRL query languages.

Resources

14 questions
3
votes
2 answers

Dependency issue creating SWRL Rule with SWRL API using gradle

I am trying to add a SWRL rule to my Ontology using SWRLAPI and OWLAPI. I am trying to use OWLAPI's version which is compatible with SWRLAPI. However, I still get errors when creating a rule. It seems to be a problem with the dependency management.…
Bruno Pessanha
  • 2,874
  • 4
  • 24
  • 35
2
votes
2 answers

Exception when adding SWRLAPI to manipulate swrl rules in java

I have a problem when i want to add SWRLAPI or SWRL with Drools API. I added SWRLAPI, SWRLAPI with Drools and OWLAPI dependencies with maven. It seems there is a problem with SWRLAPIFactory.createSWRLRuleEngine(o); Here is my Main class …
1
vote
0 answers

What to use for creating and running SWRL rules with OWL-API 5.1.0

although this question may seem duplicate, I think it is not, In brief: What to use for SWRL rules with OWL API 5.1.0, where can I find a tutorial or some examples. Details: It seems the latest version of SWRL API is 2.0.5 and swrlapi-drools-engine…
user3781976
  • 119
  • 1
  • 11
1
vote
1 answer

Error in creating rule engine drools

I intended to use the Openllet reasoner, as suppose to the other available reasoners. But this reasoner is compatible only with the OWL API 5.X.X distribution. I have a xxx.owl file which contains SWRL rules. Since the existing SWRL API is not…
Sreekar
  • 43
  • 6
1
vote
1 answer

SWRL API Error: no registered SWRL rule engines

I am building a Maven project with OWL and SWRL APIs. I want to retrieve all rules stored in an .owl file using the code below: import org.semanticweb.owlapi.apibinding.OWLManager; import org.semanticweb.owlapi.model.OWLOntology; import…
0
votes
0 answers

how to solve this errorError creating query engine Drools. Exception: java.lang.NoSuchMethodError

I get this error message Error starting application: Error creating query engine Drools. Exception: java.lang.NoSuchMethodError. Message: 'void org.semanticweb.owlapi.util.PriorityCollection.add(java.io.Serializable)' I am using SWRL API for Java to…
FidmeD31
  • 1
  • 2
0
votes
2 answers

How to start a call with swr at the click of a button in NextJs?

I trying to use useSWR at the click of the button. I would that the at the click of the button the API call with useSWR will start, but I get the error. The error is this : Error: Invalid hook call. Hooks can only be called inside of the body of a…
0
votes
0 answers

Error trying to execute abox SWRL API commands

I am using SWLR API in Eclipse so as to be able to execute sqwrl queries about a data base ontology I created. When trying to run commands of the type 'abox', specifically I have tried with 'abox:hasClass(IndividualName, ?c) -> sqwrl:select(?x)', I…
HugoMH
  • 51
  • 1
0
votes
1 answer

How to solve Error starting application: Error creating query engine Drools when using SWRL API?

I get this error message Error starting application: Error creating query engine Drools. Exception: java.lang.NoSuchMethodError. Message: 'void org.semanticweb.owlapi.util.PriorityCollection.add(java.io.Serializable)' I am using SWRL API for Java to…
HugoMH
  • 51
  • 1
0
votes
0 answers

Convert rdf:PlainLiteral to xsd:string in owl-api

I am fairly new to this whole topic and i hope somebody may help me. I currently have a problem while comparing data of an ontology, when using SQWRL. The built-in swrlb:stringEqualIgnoreCase - Function in SQWRL won't let me compare rdf:PlainLiteral…
Kelschi
  • 1
  • 2
0
votes
0 answers

swrlapi: Invalid SWRL atom predicate 'Person'

When running a SWRL rule I get in swrlapi Invalid SWRL atom predicate 'Person'. Most help suggests things like adding "Person" to the ontology. I think I've done that, but I want to be sure. My ontology is the turtle primer with a few…
jaxoncreed
  • 1,069
  • 2
  • 13
  • 24
0
votes
0 answers

Error creating rule engine Drools

Exception in thread "main" org.swrlapi.exceptions.SWRLRuleEngineException: Error creating rule engine Drools. Exception: java.lang.NoSuchMethodError. Message:…
0
votes
1 answer

SWRL rules creation in OWLAPI ontology

I have run (in Neatbeans 8.2) the following simple java code, in order to experiment with SWRL language: String base = "http://www.prova/testont.owl"; IRI ontologyIRI = IRI.create(base); OWLOntologyManager manager =…
Andrea
  • 27
  • 6
-2
votes
1 answer

how to call OWL API from vb.net.I would like to run SWRL rules uppn OWL ontology

I would like to run SWRL rules uppn OWL ontology and use the results in my VB.NET (web base). I downloaded OWL API (a jar file)from http://owlapi.sourceforge.net/ but in the documentation I could not find how to call this jar file from vb.net . can…