Lists the maintained resources of a given space (from the spaces repo) with their namespace and a link to the source nanopublication. Label and namespace come from each resource's declaration assertion. Ordered alphabetically by label.
prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix gen: <https://w3id.org/kpxl/gen/terms/> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> select ?resource ?resource_label ?namespace ?np ("^" as ?np_label) where { { select ?resource (sample(?label) as ?resource_label) (sample(?ns) as ?namespace) (sample(?viaNp) as ?np) where { values ?_space_multi_iri {} graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?g . } graph ?g { ?_space_multi_iri npa:hasMaintainedResource ?resource . } optional { graph ?ag { ?resource a gen:MaintainedResource ; rdfs:label ?label . optional { ?resource gen:hasNamespace ?ns } } } optional { graph npa:spacesGraph { ?d a npa:MaintainedResourceDeclaration ; npa:resourceIri ?resource ; npa:maintainerSpace ?_space_multi_iri ; npa:viaNanopub ?viaNp } } } group by ?resource } } order by lcase(str(?resource_label))