Use of imported properties on instances

Posted by molenz on
URL: http://owlready.306.s1.nabble.com/Use-of-imported-properties-on-instances-tp1621.html

I have imported an ontology using

  c = get_ontology('cso.owl').load()

and want to use the loaded classes and properties now to instantiate it.

  a1 = c.Array()
  r1 = c.Rank()

Now I know that c.Array is a subclass of `hasRank.some(Rank)`.
But I don't know how to assign r1 to a1 because this `hasRank` property needs to be called using `c.hasRank`

Of course something like `a1.c.hasRank = r1` cannot work (AttributeError: 'c' property is not defined.).
And simply `a1.hasRank = r1` would not use the imported property, right?

Please help.