Re: Data property and object property reification
Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/Data-property-and-object-property-reification-tp2447p2452.html
Hi,
If I understand your problem well, you want to create a property called isUnique that has for range an RDF triple (for example <Node2.2 hasDownStream Node2.1>). This is possible in OWL, but only using an AnnotationProperty (and not a Data or ObjectProperty).
You can define your property as follows:
with onto:
class isUnique(AnnotationProperty):
range = [bool]
Then you can use it as follows:
isUnique[Node2.2, hasDownStream, Node2.1].append(True)
Notice that AnnotationProperty cannot be functional, thus I used append above since the value is a list.
Jiba