Repository navigation
Conversation
equivalent_class_axiom_no_genus bound ?property to the literal "blank node"
for inverse property expressions, which the report renderer then tried to
turn into an IRI ("iri cannot be null"). The query now renders the inverse
as inverse(<IRI>), and the renderer keeps literal property bindings as plain
strings. Failed queries now raise QUERY FAILED ERROR instead of the
misleading MISSING ENTITY BINDING.
Fixes #1299
| BIND (if(isIRI(?property1), ?property1, "blank node" ) as ?property) | ||
| OPTIONAL { ?property1 owl:inverseOf ?inverse . FILTER (isIRI(?inverse)) } | ||
| BIND (if(isIRI(?property1), ?property1, | ||
| if(bound(?inverse), concat("inverse(", str(?inverse), ")"), "blank node")) as ?property) |
There was a problem hiding this comment.
This is only possible because of the fix to the report operation that handles the case where "property" is a literal rather than an entity.
| // add details to Violation | ||
| String property = getQueryResultOrNull(qs, "property"); | ||
| if (property != null) { | ||
| if (property != null && qs.get("property").isLiteral()) { |
There was a problem hiding this comment.
This is the key change
|
I'm only very loosely familiar with Java, but I downloaded, built, and ran this version against the prior issue I mentioned in #1299 (comment), which bound a string to the For a bit more coverage, I plugged this into the Human Disease Ontology |
|
@allenbaron thanks for your effort! |
equivalent_class_axiom_no_genus bound ?property to the literal "blank node" for inverse property expressions, which the report renderer then tried to turn into an IRI ("iri cannot be null"). The query now renders the inverse as inverse(), and the renderer keeps literal property bindings as plain strings. Failed queries now raise QUERY FAILED ERROR instead of the misleading MISSING ENTITY BINDING.
Fixes #1299
docs/have been added/updatedmvn verifysays all tests passmvn sitesays all JavaDocs correctCHANGELOG.mdhas been updated