. "This query returns the items a given user has reviewed." . . "Get reviews by reviewer" . . "prefix schema: \r\nprefix rdfs: \r\nprefix dct: \r\nprefix np: \r\nprefix npa: \r\nprefix npx: \r\nprefix xsd: \r\n\r\nselect distinct ?item ?item_label ?date ?comment ?np (\"^\" as ?np_label) where {\r\n {\r\n graph npa:graph {\r\n ?np npa:hasValidSignatureForPublicKeyHash ?pubkey .\r\n filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }\r\n ?np np:hasAssertion ?a .\r\n ?np dct:created ?created .\r\n }\r\n graph ?a {\r\n ?ra a schema:ReviewAction ;\r\n schema:agent ?_reviewer_iri ;\r\n schema:object ?item .\r\n optional { ?item rdfs:label ?item_label }\r\n optional { ?ra schema:endTime ?d }\r\n optional { ?ra rdfs:comment ?comment }\r\n }\r\n bind(coalesce(?d, substr(str(?created), 1, 10)) as ?date)\r\n }\r\n} order by desc(?date)" .