Owlready
Search
everywhere
only in this topic
Advanced Search
disjoint unions
Classic
List
Threaded
♦
♦
Locked
2 messages
ihssanpro
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
disjoint unions
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>
Jiba
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: disjoint unions
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
Free forum by Nabble
Edit this page