owl-api | Interacting with OWL Ontologies | Editor library
kandi X-RAY | owl-api Summary
kandi X-RAY | owl-api Summary
Interacting with OWL Ontologies
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Writes dataOne of values
- Visit a maxinality
- Writes the sub - object property of the class
- Writes the sub - property of an axiom
- Writes the sub - annotation property of the class
- Analyzes the OWLObjectSomeValuesFromNode
- This method is called when a OWLObjectRangeRangeAxiom is visited
- This method consumes the given axioms of a OWLObjectPropertyDomain
- Visit a OWLObjectHasSelf
- Visit a OWLObjectExactCard
- Visits a Lambda FunctionPropertyAxiom
- This is called when a HasKeyAxiom is added
- This method will write SOME values from the node
- This method is called to write a list of values for the given axiom
- This method is called when a DataPropertyDomainAxiom is defined
- Visit a min cardinality
- Visits an OWLASValue node
- Visit a DataAllAllValuesFromNode
- Visit a single function data property
- Emit the data type restrictions
- Visits the OWLObjectAllValuesFromNode
- Emit an annotation assertion
- This method consumes dataIntersectionOf
- Emit the given axi property values
- Visit a OWLObjectOne
- Writes the sub - property chain of the given axiom
- Visits all classes in the given axiom
- Write a disjoint class expression
- Writes the labels of the given axiom
- Writes a subclass of the given axiom
- Emit a max cardinality
owl-api Key Features
owl-api Examples and Code Snippets
Community Discussions
Trending Discussions on owl-api
QUESTION
I'm developing a Java application using owl-api. For testing I want to use a TestDataProvider to provide test data for unit-testing.
I'm using version 5.0.0 because the tutorial I read is using this version too. I plan to update later.
...ANSWER
Answered 2022-Feb-19 at 15:13By default, an ontology is saved in the same place it was loaded from - in this case it was loaded from a remote IRI, and there's currently no support for saving an ontology directly to a remote URL.
You can work around this by specifying a target for your saveOntology()
call, e.g.,
QUESTION
I am trying to call an OWL API java program through terminal and it crashes, while the exact same code is running ok when I run it in IntelliJ.
The exception that rises in my main code is this:
...ANSWER
Answered 2022-Jan-31 at 10:43As can be seen in the comments of the post, my problem is fixed, so I thought I'd collect a closing answer here to not leave the post pending.
The actual solution: As explained here nicely by @UninformedUser, the issue was that I had conflicting maven package versions in my dependencies. Bringing everything in sync with each other solved the issue.
Incidental solution: As I wrote in the comments above, specifically defining 3.3.0
for the maven-assembly-plugin
happened to solve the issue. But this was only chance, as explained here by @Ignazio, just because the order of "assembling" things changed, overwriting the conflicting package.
Huge thanks to both for the help.
QUESTION
I trying to get reasoning explanations using getInstanceExplanations method:
...ANSWER
Answered 2021-Oct-16 at 13:36Pellet 2.3.2 relies on OWLAPI 3.x.x and is not compatible with OWLAPI 4.x.x
There is a build compatible with OWLAPI 4 available on Maven Central https://search.maven.org/search?q=v:2.4.0-ignazio1977
There is also a much more recent build for OWLAPI 5, under the Openllet fork: https://search.maven.org/artifact/com.github.galigator.openllet/openllet-parent/2.6.4/pom
(2.6.4 is compatible with Java 8, same as the versions you're currently using.)
QUESTION
I'm trying to produce entailment for the rule in OWL 2 RL 'The Semantics of Equality' using owl-api. I already tried to follow: Why the inferences visualised in Protege differ from the exported inferred axioms
...ANSWER
Answered 2021-May-16 at 14:02There is no inferred axiom generator that materialises the sameAs
relations. You could write one yourself, based e.g., on InferredPropertyAssertionGenerator
, or you can open an issue on the OWLAPI GitHub repo for the functionality to be added to the library.
QUESTION
I am using the OWL-API to load and owl ontology with SWRL rules.
I loaded an ontology with the following code:
...ANSWER
Answered 2021-Apr-27 at 15:15Running inferences over the model was the missing step. Therefore, I needed to use the InferredOntologyGenerator
class.
One line of code speaks more than a thousand words:
QUESTION
After renaming a class using OWL-API I'm not getting the list of subclasses I expect. I have created a small example to demonstrate.
The ontology contains 2 classes: Dog and Frisbee. I then rename Dog to Cat. After the rename, the list of owl:Thing subclasses contains both Dog and Cat.
Here is the rename-test.owl file:
...ANSWER
Answered 2020-Sep-06 at 08:21Do not use the Structural reasoner. It is not meant for real world use and is likely keeping caches it shouldn't. Just write out the axioms in the ontology, there are few enough in this ontology for that to work.
QUESTION
Could you tell me what are the main differences between JENA and OWL-API?
...ANSWER
Answered 2020-Aug-06 at 08:26From the Apache Jena Website:
Apache Jena (or Jena in short) is a free and open source Java framework for building semantic web and Linked Data applications. The framework is composed of different APIs interacting together to process RDF data.
From OWL API Github:
The OWL API is a Java API for creating, manipulating and serialising OWL Ontologies.
Hence, Jena deals with RDF, while the OWL API deals with OWL.
What does this mean?
The short answer: Roughly you can see this as Jena dealing with data and the OWL API as dealing with structure. The parallel with relational databases is that the OWL API defines the schema and RDF the records.
The longer answer: For good explanations of the differences between OWL and RDF have a look at the answers of this SO question.
QUESTION
Would you recommend books on Semantic web, Protege ontologies, OWL-API? I like the Semantic Web for the working ontologist 2nd edition, and I want to know more in this topic.
Thank you for your attention!
...ANSWER
Answered 2020-Aug-06 at 04:12Semantic Web for the working ontologist which is, I think, the best intro textbook, has just had a new edition released: https://dl.acm.org/doi/book/10.1145/3382097. I recommend it.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install owl-api
You can use owl-api 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 owl-api 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