swrlapi | Java API for working with the SWRL rule
kandi X-RAY | swrlapi Summary
kandi X-RAY | swrlapi Summary
Java API for working with the SWRL rule and SQWRL query languages
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Records the built - in atom variables
- Gets the names of variables referenced by an atom
- Builds the set of path relative to the given atom
- Evaluate and return the evaluated expression
- Returns the JEP
- Make a bag of arguments
- Returns the group key to use
- Returns the difference of two rules
- Records a collection
- Returns the average number of rows in the grammar
- Ensures that the element is comparable
- Concatenates a list of periods into a single period list
- Returns the median of the given list of arguments
- Creates and returns a JFileChooser which allows to save the file
- The nth slice is NOT slice
- Calculates the maximum value of the grammar
- Calculates the minimum number of rows produced by the aggregator
- Compares two strings
- Get the nth slice
- Invokes a built - in method
- Creates the menus for SWRL rule engines
- Perform sum - in operation
- Perform union operation
- Calculate intersection of two collections
- Append a set of criteria
- Make the set
swrlapi Key Features
swrlapi Examples and Code Snippets
Community Discussions
Trending Discussions on swrlapi
QUESTION
I wanted to try the following rule:
(not Person)(?x) -> NonHuman(?x)
which is provided here - https://github.com/protegeproject/swrlapi/wiki/SWRLLanguageFAQ#does-swrl-support-classical-negation
Is classical negation supported in Protege 5.5.0? If yes, how I can make the following rule to be okay? Thanks in advance!
...ANSWER
Answered 2020-Jan-20 at 19:49From https://github.com/protegeproject/swrlapi/issues/63:
Unfortunately, the SWRLAPI's parser does not support OWL class expressions in rules.
There is no timeline for their inclusion.
Fortunately, one can use the Rules view (Windows > Views > Ontology Views > Rules):
Rule: (not Person)(?x) -> NonHuman(?x)
is parsed correctly and works as intended.
Actually, you do not need SWRL in this particlular case. Just write (not Person) SubClassOf NonHuman
in the General class axioms section, or define NonPerson
first, if you don't like GCI axioms.
Don't forget about the OWA.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install swrlapi
You can use swrlapi like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the swrlapi component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page