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
- How to structure json-ld for export/import
- Error with OWLEntityRenamer in renaming IRIs
- Self-restriction in Protégé reasoner
- Find what creates the inconsistency using OWLAPI
- Use of OWL inferences
- ontology versioning: Link both versionIRI#MyClassIRI and ontologyIRI#MyClass123 to same resource in rdf / owl
- How to perform SWRL rule based reasoning on an ontology owl file in Python to infer individuals into subclasses
- Clarification on DBpedia Class and Namespace Differences - Beginner Inquiry
- Protege reasoner highlighting class with red colour
- Convert a string into an OWLAxiom object
- "insert data" query in jena
- Transfer axioms from two ontologies into a third one
- Save parts of an ontology into different files
- Extract a fraction of an ontology that is expressed by OWL-Full
- Querying individual classes within two versions of an ontology in OwlReady2
Related Questions in OWL
- RDF: when a property is used the thing in the object position is a literal of datatype X
- Error with OWLEntityRenamer in renaming IRIs
- Self-restriction in Protégé reasoner
- owl api non-buffering reasoner still needs a flush
- Problem with setting up config for Fuseki server - Exception in initialization: org/apache/jena/reasoner/BaseInfGraph$InfFindSafeCapabilities
- Use of OWL inferences
- ontology versioning: Link both versionIRI#MyClassIRI and ontologyIRI#MyClass123 to same resource in rdf / owl
- uniqueness of owl n-ary relationships
- Load an ontology in R
- Read an owl file in R as dataframe
- Parse an OWL file using RDFLib generetes errors
- Get explanations with OWL API + Openllet
- Get explanations with OWL API + Pellet
- Protégé export explanation
- Transfer axioms from two ontologies into a third one
Related Questions in PROTEGE
- Self-restriction in Protégé reasoner
- Find what creates the inconsistency using OWLAPI
- Protege reasoner highlighting class with red colour
- Where is the plugin folder for Protege on an Apple Mac?
- Get explanations with OWL API + Openllet
- Get explanations with OWL API + Pellet
- Protégé export explanation
- Save parts of an ontology into different files
- Writing multiple SPARQL queries in Protege
- Geosparql in Ontop protégé
- Can I write complex SQL in Ontop, Protége that includes JOIN, ST_Equals and ST_StartPoint?
- writing an swrl rule that checks if an individual with some condition doesn't exist then infer something
- In OWL, how can I enforce a type correlation between the values of two different properties?
- When defining a class in OWL, how to constrain that an object property must refer to the same individual as another object property?
- Protégé: Sub data properties removed from super data property after reloading
Related Questions in OWL-API
- Error with OWLEntityRenamer in renaming IRIs
- owl api non-buffering reasoner still needs a flush
- Find what creates the inconsistency using OWLAPI
- Convert a string into an OWLAxiom object
- Get explanations with OWL API + Openllet
- Get explanations with OWL API + Pellet
- Transfer axioms from two ontologies into a third one
- Extract a fraction of an ontology that is expressed by OWL-Full
- How to get OWL explanation with Drools engine?
- How to perform existential quantification inferences in ontologies?
- include owl api jar files into an executable jar file
- How to parse Manchester syntax with (rdfs) labels ? (like in Protégé)
- OWLAPI and HermiT reasoner: non-asserted deleted individuals are still inferred
- How-to serialize OWLClassExpression to triples
- How to generate specific inference using owlapi?
Related Questions in MANCHESTER-SYNTAX
- When defining a class in OWL, how to constrain that an object property must refer to the same individual as another object property?
- Using prefixes in Cellfie
- How to parse Manchester syntax with (rdfs) labels ? (like in Protégé)
- How-to serialize OWLClassExpression to triples
- Selecting individuals on right hand side of property in class expression
- ParserException in Manchester Syntax
- Problem to get integer values for Protege DataProperty from Excel using Cellfie
- python: parse owl file in manchester syntax to owlready
- Protégé dataTime restriction
- Protege-OWL: Class must have one of each <value>
- Protégé-OWL: "Multi slot" Object
- Query for intersection of dispositions; Protege
- OWLAPI : "ParserException" while converting String to Class Expression using ManchesterOWLSyntaxParser
- General class Axioms
- How protege shows OWL axioms in readable format
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 # Hahtags
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!