Using RDF-star, say I have:
?couple :isA :Couple .
and ?couple takes values such as this one:
<< :Bill :marriedTo :Mary >> :isA :Couple .
Is there any way to extract :Bill and :Mary from the triples variable ?couple, and bind them to variables ?husband and ?wife?
I know I could do this:
<< ?husband :marriedTo ?wife >> :isA :Couple .
but I also want the variable ?couple and have this linked to ?husband and ?wife.
One option is to create
?couplefrom its constituents:There is no difference between a triple constructed in this way and the
?couplefrom your original example.Another possibility is to introduce a zero-length property path between
?coupleand another node:Since there is most likely no triple using
about:invalidas the predicate, the subject will have to match the object.