This query returns the nanopublication indexes that are declared to be part of a given resource, ordered by index creation time (latest first). The index label is returned as its own column, with the nanopublication link as a separate short-symbol column at the end.
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> select (min(?l) as ?label) (count(?element) as ?size) ?creator ?date ?np ("^" as ?np_label) where { values ?_resource_multi_iri {} graph npa:graph { ?np npx:hasNanopubType npx:NanopubIndex . ?np npa:hasValidSignatureForPublicKeyHash ?pubkey . filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np rdfs:label ?l . ?np npx:signedBy ?creator . } graph ?a { ?np dct:isPartOf ?_resource_multi_iri . ?np npx:includesElement ?element . } } group by ?np ?creator ?date order by desc(?date)