I'm using OWL API for reasoning over ontology created in Protege. I'm dealing with OWL API Example DL query: http://sourceforge.net/p/owlapi/code/ci/aef6981535f07a2d0d44c394b9f4d5415f36025a/tree/contract/src/test/java/org/coode/owlapi/examples/DLQueryExample.java. I guess that this example provides functionality equivalent to DL Query Tab in Protege. But in fact there are some significant differences: I need to get the information (subclass, superclass, etc.) of an anonymous class, which is defined by a set of individuals (ex {Member1, Member2...}) or in another way. In Protege this query returns correct result, but such query in OWL API Dl Query Example returns [NOTHING]. Is there a way to manipulate anonymous classes in OWL API? Thanks in advance for answering.
Querying anonymous classes in OWL API with Manchester Syntax
1.6k Views Asked by user1823541 At
1
There are 1 best solutions below
Related Questions in ONTOLOGY
- Query multiple models within same Dataset in TDB Jena
- Loading owl file with Jena
- Sparql Query on GeoNames Ontology using Nearby
- Loading an ontology from string using OWL API
- Resources on OWL and Building Ontologies
- Ontologies, OWL, Sparql: Modelling that "something is not there" and performance considerations
- How to properly merge 2 ontologies with OWL API 4 or 3.5
- Check ontology consistency & satisifiability with OWL API 4
- OutOfMemory in Protege when classifying ontology with Pellet
- Neo4j Avoiding circular results in cypher query
- Understanding Extential and Universal restriction use case (Pizza ontology use case)
- What's the name for this evidence grouping method on an ontology
- What is the difference between XML and RDF
- OWL 2 ontology consistency check
- Explanations for Inconsistency in OWL 2 ontology in Java
Related Questions in OWL
- Reasoning and datatypes of Literals
- property chaine for a data property
- Loading owl file with Jena
- Loading an ontology from string using OWL API
- Resources on OWL and Building Ontologies
- UnloadableImportException when loading ontology file with OWLAPI
- sparql how to search on label's value without the language indicator
- How to load a owl file to neo4j using eclipse
- OWL. How to express that siblings has common parent?
- Check ontology consistency & satisifiability with OWL API 4
- How to get a single name for multiple name properties in DBPedia with SPARQL?
- OWL reasoning: Necessary and sufficient conditions for inferring a property
- How to reason or make inferences using hermit reasoner in command line
- What does partial mean in owl
- Understanding Extential and Universal restriction use case (Pizza ontology use case)
Related Questions in PROTEGE
- Sparql Query on GeoNames Ontology using Nearby
- malformed sparql delete query
- OutOfMemory in Protege when classifying ontology with Pellet
- OWL reasoning: Necessary and sufficient conditions for inferring a property
- Graph representation - display individuals by data property and group by type
- [Protege]OWL- What is a slot?
- save an .owl file where opened from url in protégé
- Rename individual in Protege
- Inferencing based on property relation with an instance
- Does Protege API support user rules?
- Maximum number of Individuals in Protege OWL file
- Ontology OWL API java
- Could not parse Turtle ontology Protege
- how to combine two columns in sparql?
- Jess rule definition
Related Questions in OWL-API
- Loading an ontology from string using OWL API
- UnloadableImportException when loading ontology file with OWLAPI
- How to properly merge 2 ontologies with OWL API 4 or 3.5
- Check ontology consistency & satisifiability with OWL API 4
- How to reason or make inferences using hermit reasoner in command line
- Why OWLReasoner.getSubclasses(...) returns http://www.w3.org/2002/07/owl#Nothing?
- Reasoning an ontology using OWL API
- Ontology OWL API java
- How to disinguish between inferred and explicit axiom?
- Add my defined anntation to an individual in owl
- map owl to neo4j (java example)
- Loading YAGO Ontology with OWL API
- OWL API Storing a local copy of an ontology opened through url
- OWL API changing IRIs of entities in axioms
- Retrieve OWL class restrictions using OWL API
Related Questions in MANCHESTER-SYNTAX
- How do I express "Every" in manchester owl syntax?
- ParserException in Manchester Syntax
- protege set data range expression for a data properties
- Protégé-OWL: "Multi slot" Object
- Protege-OWL: Class must have one of each <value>
- Protégé dataTime restriction
- how to create association between classes in Protege?
- Querying anonymous classes in OWL API with Manchester Syntax
- Selecting individuals on right hand side of property in class expression
- How-to serialize OWLClassExpression to triples
- Protege: how to express 'not hasNext'?
- in owl "Dl query" how to use advanced valu query in protege
- Strange query behaviour in OWL!
- Problem to get integer values for Protege DataProperty from Excel using Cellfie
- OWLAPI : "ParserException" while converting String to Class Expression using ManchesterOWLSyntaxParser
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Assuming you are using the class
DLQueryExampleas such without modifications.You need to use a different reasoner than the default one. Look at line 151, the implementation uses the structural reasoner built in the OWL-API. This reasoner is limited and not capable of processing complex class expressions as yours.
How to fix it:
Use a more advanced reasoner like Hermit. Download and put the jar on your classpath, then replace the code at line 151 by that:
OWLReasonerFactory reasonerFactory = new Reasoner.ReasonerFactory();You will need to import the package
org.semanticweb.HermiT.Reasoner. You will now use Hermit to process your queries. TryPizza and (hasTopping some CheeseTopping), it should work!