Syntax Exception invoking APOC method

Using 3.5 and the neosemantics library, I am mystified why

match (c:Resource {`http://www.w3.org/2000/01/rdf-schema#label`: "MyClass"}) call semantics.inference.nodesInCategory(c, {inCatRel:'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', subCatRel:'http://www.w3.org/2000/01/rdf-schema#subClassOf'}) yield node return node

results in a syntax exception while the following does not:

match (c:Resource {`http://www.w3.org/2000/01/rdf-schema#label`: "MyClass"}) call semantics.inference.nodesInCategory(c, {inCatRel:'type', subCatRel:'subClassOf'}) yield node return node

results in a syntax exception while the following does not:

do you have details of that syntax exception and what it states?

The exception is

Failed to invoke procedure `semantics.inference.nodesInCategory`: Caused by: org.neo4j.cypher.internal.v3_5.util.SyntaxException: Invalid input ':': expected an identifier character, whitespace, '|', a length specification, a property map or ']' (line 1, column 29 (offset: 28))

curiously enough, if I substitute for "MyClass" a value that does not exist, I don't get an error; if I substitute for "MyClass" a value that does exist, I get the error.

Looks like a bug in the nodesInCategory procedure.
If I remember well the procedure does some cypher rewriting so the error will probably be meaningful for the internally run cypher but not your original one :(
Could you please raise it in GitHub? [Issues · neo4j-labs/neosemantics · GitHub]

Thanks!

JB.

Done. posting the link here for reference:https://github.com/neo4j-labs/neosemantics/issues/142