Comments (7)
On 14 Oct 2013 10:24, "tholiebig" [email protected] wrote:
I end up with the following exception when reading a (previously
rendered) ontology containing anonymous individuals:
java.lang.IllegalArgumentException: individual cannot be nullFor instance when loading:
<SubClassOf> <Class IRI="http://test.com/test#M"/> <ObjectHasValue> <ObjectProperty IRI="http://test.com/test#r1"/> <AnonymousIndividual nodeID="_:ano1"/> </ObjectHasValue> </SubClassOf>
At a first guess a one of restriction should not support anonymous
individuals, but I don't remember that detail of the specs. If I'm right
the problem is the renderer creating invalid output.
Can you just confirm the output format and the version you used?
Cheers,
I.
—
Reply to this email directly or view it on GitHub.
from owlapi.
I have used OWL API 3.4.5.
Concerning validity: The example is valid OWL 2 XML wrt. the corresponding XML Schema file which allows anonymous individuals within restrictions (it also is allowed within the OWL API when building programmatically).
Best,
Thorsten
from owlapi.
On 14 Oct 2013 15:19, "tholiebig" [email protected] wrote:
I have used OWL API 3.4.5.
Concerning validity: The example is valid OWL 2 XML wrt. the
corresponding XML Schema file which allows anonymous individuals within
restrictions (it also is allowed within the OWL API when building
programmatically).
Cheers.
I'll check against the specs to make sure this is legal in OWL.
I.
Best,
Thorsten—
Reply to this email directly or view it on GitHub.
from owlapi.
It's allowed :)
ObjectHasValue := 'ObjectHasValue' '(' ObjectPropertyExpression Individual ')'
from owlapi.
Righty-oh then, there must be a bug in parsing.
Thinking again that message sounds like the data factory being called with
a null argument, rather than creating a blank node.
I'll try to reproduce it.
On 14 October 2013 18:15, Matthew Horridge [email protected] wrote:
It's allowed :)
ObjectHasValue := 'ObjectHasValue' '(' ObjectPropertyExpression
Individual ')'—
Reply to this email directly or view it on GitHubhttps://github.com//issues/50#issuecomment-26272170
.
from owlapi.
It's allowed by the api and by the renderer but not by the parser - it's using a handler that seems to only be able to parse named individuals. I can replicate the issue with a small test.
from owlapi.
Took longer to type in the comments than to find and fix the bug :-) missing an override in the hasValue handler.
I'll push a fix as soon as the local build completes.
from owlapi.
Related Issues (20)
- ManchesterParser passes quotes to ShortFormProvider HOT 3
- [OBO parser] Axiom annotations using arbitrary properties are not always properly translated HOT 3
- [question] How to import SKOS Core Vocabulary without getting 429 response code HOT 3
- `OWLOntologyDocumentTarget`: documentation
- Triple parsing errors triggered by annotations on XSD datatypes HOT 2
- Vulnerabilities in Guava HOT 1
- Extending OWLOntologyLoaderListener
- Silencing import errors does not seem to work for OBO files HOT 6
- Disable resolving of imports entirely (offline mode)
- Remove org.openrdf.rio.RDFParserFactory
- Uncaught NumberFormatException when comparing (large) integers HOT 1
- "OWL 2 Web Ontology Language Data Range Extension: Linear Equations" supported? HOT 1
- Zx
- [question] Why are classes with square brackets in IRI fragments allowable in OWL/XML syntax
- [Question/Help] Could not find an ontology storer from terminal HOT 3
- Many duplicated dependencies on Android while importing owlapi-distribution HOT 6
- OWLAPI injects rdfs:label assertions for oboInOwl when converting from obo format HOT 3
- Version 4.5.27 missing from Maven central HOT 8
- Example Question HOT 3
- ZipIRIMapper is case sensitive for file extensions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from owlapi.