Classes with ? at the end can be created, but not queried
Posted by maxrosen on
URL: http://owlready.306.s1.nabble.com/Classes-with-at-the-end-can-be-created-but-not-queried-tp3319.html
This successfully creates a new class for a class_name ending with "?":
or_subclass = or2.types.new_class(class_name, (or_superclass,))
But both of these will return the iri for the new class without the "?" in the end:
or_superclass.subclasses()
SELECT ?s WHERE { ?s rdfs:subClassOf <""" + or_superclass_iri + """> . }