Given a subject with multiple occurrences of the same property, is it possible to retrieve all the objects/values they point to, without specifying in advance their number?
This question resembles this one.
Example data (taken from link above):
@prefix example: <http://example.org/> .
example:subject1 example:property example:object1 .
example:subject1 example:property example:object2 .
example:subject1 example:property example:object3 .
...
It is possible to get a defined number of objects via:
select ?subject ?object1/2/n
where {?subject example:property ?object1, ?object2 .}
filter( ?object1 != ?object2 ).
But how to do if we do not know the number of occurrences of the property in advance? (besides programmatically). Thank you.