🔗 References (max. 100)

show query show view
part subject predicate object published by date
Assertion
Assertion
Get spaces (v2)
Assertion
Assertion
Returns the latest non-invalidated SpaceDefinition per space from the server-materialised spaces repo, joined to the declaring nanopublication for its label and type. View-friendly columns (space_iri / type_label / np).
Assertion
Assertion
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/> prefix gen: <https://w3id.org/kpxl/gen/terms/> select ?space_iri ?space_iri_label ?type ?type_label ?date ?np ("^" as ?np_label) where { graph npa:spacesGraph { ?spaceRef a npa:SpaceRef ; npa:spaceIri ?space_iri . ?def a npa:SpaceDefinition ; npa:forSpaceRef ?spaceRef ; npa:viaNanopub ?np ; dct:created ?date . } graph npa:graph { ?np rdfs:label ?space_iri_label . ?np npx:hasNanopubType ?type . filter(strstarts(str(?type), "https://w3id.org/kpxl/gen/terms/")) filter(?type != gen:Space) } filter not exists { graph npa:graph { ?invNp npx:invalidates ?np . } } bind(strafter(str(?type), "https://w3id.org/kpxl/gen/terms/") as ?type_label) } order by desc(?date)
PublicationInfo