[ { "@id": "https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/pubinfo", "@graph": [ { "@id": "https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o", "http://purl.org/dc/terms/created": [ { "@value": "2026-09-16T15:13:48Z", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" } ], "http://purl.org/dc/terms/creator": [ { "@id": "https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot" } ], "http://purl.org/dc/terms/license": [ { "@id": "https://creativecommons.org/licenses/by/4.0/" } ], "http://purl.org/nanopub/x/embeds": [ { "@id": "https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/get-docs-paragraph-versions" } ], "http://purl.org/nanopub/x/supersedes": [ { "@id": "https://w3id.org/np/RAe0--dN9JzreAJpQW3xKzfTXvFPHQ1wT6zAFvKyiY9Ts" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromProvenanceTemplate": [ { "@id": "https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate": [ { "@id": "https://w3id.org/np/RA-N4_kFxcruvBTlo1yJv29E4SLOXsx5KO_th69PprMrA" }, { "@id": "https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate": [ { "@id": "https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k" } ] }, { "@id": "https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/sig", "http://purl.org/nanopub/x/hasAlgorithm": [ { "@value": "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey": [ { "@value": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl8cMusqtNyKA6UIsi3f7BAcZmHQXWxU0qk0PLsboMWQxYrGBfGgHTgRHJrBRxL+Zn9kJHKVmz2smDcjCBptXi/OwWy80gjsx+Pbe6IWz3zFPWF1UoFIKfPnC0slV67CQgdM853zW7Bmk9/uflCtK4EtZKmPdRGtUHVC7DTVvDBMDzLRGdE2KCBVN29EbM5GGVNvijYbaZQ9OFQPBkQshayqSIyGRr6rreJdkrRVLIzu3uuAjKYydaeXZWSN2JLnVBwrClKUxaEdCwhb5nXpMtKOMD+R+LgaXLeJUWM8BdRSYnta9ZqI5pHY4y3v+eW7J+HHeTvRbHvlik+Z4hFUXmQIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature": [ { "@value": "kRZspW7E/VqJ8RARr4j02zHyW8YCZ54adS4GBZ7PCw7T9if8qVcSVfDKFaL28XRI4LagDiNGFma6lGFQmvgLyiqJbdnecyA/G66+2CDPHuFnjC4dUWGw/tBGv6aWbKoIB4I61QOu40Qc5hCE46SYmPcfJIenqe7EsKAGytfGoc2epZNfHw+aTtFCQynNWVleO8HEs1If4xol9DeM0L3aBvzjrbbmj781sYdkaoXS6Fru+VkbsWyE1av0CI007ke1pLXcQZnPRwAjYVVsZYP/1bh7fPat0XYp039r5HnlhocY/CA/yRJRClNMtFJCwH/GoNOrB/V+HVqydqa97DGBHQ==" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot" } ] } ] }, { "@id": "https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/Head", "@graph": [ { "@id": "https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/get-docs-paragraph-versions", "http://purl.org/dc/terms/description": [ { "@value": "Every member-signed version of one documentation paragraph, newest first, with the current one marked. Removals (versions typed gen:DeactivatedParagraph) are listed with their reason; any earlier version can be restored, which also undoes a removal." } ], "http://purl.org/dc/terms/license": [ { "@id": "http://www.apache.org/licenses/LICENSE-2.0" } ], "@type": [ "https://w3id.org/kpxl/grlc/grlc-query" ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Get the versions of a documentation paragraph" } ], "https://w3id.org/kpxl/grlc/endpoint": [ { "@id": "https://w3id.org/np/l/nanopub-query-1.1/repo/full" } ], "https://w3id.org/kpxl/grlc/sparql": [ { "@value": "prefix rdf: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix schema: \nprefix schemas: \nprefix gen: \nprefix foaf: \n\n# Every member-signed version of ONE documentation paragraph, newest first, with the current\n# version marked. A row's nanopublication introduces the paragraph, so opening an older row in\n# override mode republishes its content as the newest version: that is the \"restore\" action.\n# ?restore_target is blank on the current row, which hides the button there. A removal is a\n# version typed gen:DeactivatedParagraph (optionally with a reason in rdfs:comment): it is\n# listed as removed, offers no restore itself, and restoring an earlier version undoes it.\nselect ?date ?creator ?creator_label ?title ?current (if(?isCurrent || ?removed, \"\", str(?np)) as ?restore_target) ?np (\"^\" as ?np_label) where {\n {\n select ?np ?date ?creator ?type (min(?title0) as ?title1) (min(?reason) as ?reason1) (max(?cname) as ?creator_label) where {\n service {\n select (group_concat(?mpk; separator=\" \") as ?memberPubkeys) where {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG . }\n values ?__context_multi_iri {}\n graph ?stateG {\n ?__context_multi_iri npa:isMaintainedBy? ?space .\n ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType .\n ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk .\n }\n filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))\n }\n }\n values ?_resource_multi_iri {}\n graph npa:graph {\n ?np npa:hasValidSignatureForPublicKeyHash ?npPubkey ; dct:created ?date ; np:hasAssertion ?a ; np:hasPublicationInfo ?pi .\n filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?npPubkey . }\n }\n filter(contains(?memberPubkeys, ?npPubkey))\n graph ?a {\n ?_resource_multi_iri rdf:type ?type .\n optional { ?_resource_multi_iri schema:title|schemas:title ?title0 . }\n optional { ?_resource_multi_iri rdfs:comment ?reason . }\n }\n values ?type { gen:Paragraph gen:DeactivatedParagraph }\n graph ?pi { ?np dct:creator ?creator . }\n optional { graph ?anyg { ?creator foaf:name ?cname . } }\n } group by ?np ?date ?creator ?type\n }\n {\n select (max(?d) as ?maxDate) where {\n service {\n select (group_concat(?mpk2; separator=\" \") as ?memberPubkeys2) where {\n graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?stateG2 . }\n values ?__context_multi_iri {}\n graph ?stateG2 {\n ?__context_multi_iri npa:isMaintainedBy? ?space2 .\n ?ri2 a gen:RoleInstantiation ; npa:forSpace ?space2 ; npa:forAgent ?agent2 ; npa:hasRoleType ?roleType2 .\n ?acct2 a npa:AccountState ; npa:agent ?agent2 ; npa:pubkey ?mpk2 .\n }\n filter(?roleType2 in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))\n }\n }\n values ?_resource_multi_iri {}\n graph npa:graph {\n ?n npa:hasValidSignatureForPublicKeyHash ?k ; dct:created ?d ; np:hasAssertion ?aa .\n filter not exists { ?x npx:invalidates ?n ; npa:hasValidSignatureForPublicKeyHash ?k . }\n }\n filter(contains(?memberPubkeys2, ?k))\n graph ?aa { ?_resource_multi_iri rdf:type ?t . }\n values ?t { gen:Paragraph gen:DeactivatedParagraph }\n }\n }\n bind(?type = gen:DeactivatedParagraph as ?removed)\n bind(coalesce(?title1, concat(\"🗑 removed\", coalesce(concat(\": \", ?reason1), \"\"))) as ?title)\n bind(?date = ?maxDate as ?isCurrent)\n bind(if(?isCurrent, \"✓ current\", \"\") as ?current)\n}\norder by desc(?date)" } ] } ] }, { "@id": "https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAofhQTZQsoeVtAH_V8qTjeLYhT-IdbMN7inXKz0jLA1o/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot" } ] } ] } ]