disjoint unions

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

disjoint unions

ihssanpro
How can I create the following
<owl:Class rdf:ID="Party">
    <owl:disjointUnionOf rdf:parseType="Collection">
      <owl:Class rdf:ID="Organisation"/>
      <owl:Class rdf:ID="Person"/>
    </owl:disjointUnionOf>
Reply | Threaded
Open this post in threaded view
|

Re: disjoint unions

Jiba
Administrator
Hi,

You can use:

onto = get_ontology("http://test.org/t.owl")

with onto:
  class Organisation(Thing): pass
  class Person(Thing): pass
  class Party(Thing): pass

  Party.disjoint_unions.append([Organisation, Person])
 
Jiba