I loaded many complex jsonld documents into virtuoso and I experiment with it with a lot of success. However, I have problem querying some part of the jsonld. Here I used simple jsonld (I show part of it) to simplify the issue.
Your query does not appear valid as it gives error Virtuoso 37000 Error SP030: SPARQL compiler, line 7: syntax error at '/' before 'study:subject' when attempting to run ?
Anyway, have you tried adding the distinct to the select list ie SELECT distinct ?subject ?result to make the results distinct ?
just another question, I would like to retrieve the "@type" and "@id" as well, however, it seems I can’t just treat them as standard data property, e.g.,:
Yes, I just put . . . for presentation purpose. The above query can retrieve "@id": "exam1", and "@id": "exam2", as they are exist under [exams], the other Ids should be retrieved based on the context/vocab.
I can query the subject id using: