Adapting the query with the vocabulary generated by your ontology import :
MATCH (inst:Car) // match all your :Car instances (or :Person, or even any node)
UNWIND labels(inst) as label // for each of their labels
MATCH (class:...
Indeed if your instance data is not loaded from RDF, you'll have to manually link it to the class nodes.
The nodes imported by neosemantics (your ontology classes) will be identified by their uri. If everything was loaded from RDF, the class nodes fr...
Good to know you're all sorted.
To tie the loose ends, a few comments about the warnings/errors in the log :
WARN [o.n.k.a.p.GlobalProcedures] Failed to load ...
Those are expected APOC warnings : some procedures rely on external jars that are not ...
To link your ontology data and your instance data, make sure that you configure handleRDFTypes=NODES (or LABELS_AND_NODES) so RDF types are created as neo4j nodes, and match the nodes from your ontology data. Otherwise, by default RDF types are loade...