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
.