[ { "@id": "https://w3id.org/np/RAe0--dN9JzreAJpQW3xKzfTXvFPHQ1wT6zAFvKyiY9Ts/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAe0--dN9JzreAJpQW3xKzfTXvFPHQ1wT6zAFvKyiY9Ts/get-docs-paragraph-versions", "http://purl.org/dc/terms/description": [ { "@value": "Every version of one documentation paragraph published by a member of the maintaining space, newest first, with the current one marked. Older rows carry the nanopublication as restore target: opening it in override mode republishes that content as the newest version." } ], "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.\nselect ?date ?creator ?creator_label ?title ?current (if(?isCurrent, \"\", str(?np)) as ?restore_target) ?np (\"^\" as ?np_label) where {\n {\n select ?np ?date ?creator ?title (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 { ?_resource_multi_iri rdf:type gen:Paragraph ; schema:title|schemas:title ?title . }\n graph ?pi { ?np dct:creator ?creator . }\n optional { graph ?anyg { ?creator foaf:name ?cname . } }\n } group by ?np ?date ?creator ?title\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 gen:Paragraph . }\n }\n }\n bind(?date = ?maxDate as ?isCurrent)\n bind(if(?isCurrent, \"✓ current\", \"\") as ?current)\n}\norder by desc(?date)" } ] } ] }, { "@id": "https://w3id.org/np/RAe0--dN9JzreAJpQW3xKzfTXvFPHQ1wT6zAFvKyiY9Ts/pubinfo", "@graph": [ { "@id": "https://w3id.org/np/RAe0--dN9JzreAJpQW3xKzfTXvFPHQ1wT6zAFvKyiY9Ts", "http://purl.org/dc/terms/created": [ { "@value": "2026-09-15T05:22:52Z", "@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/RAe0--dN9JzreAJpQW3xKzfTXvFPHQ1wT6zAFvKyiY9Ts/get-docs-paragraph-versions" } ], "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/RAe0--dN9JzreAJpQW3xKzfTXvFPHQ1wT6zAFvKyiY9Ts/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": "YkFssyGG0m0bT7pJsqp5G8zU/eyPuQCMl7Xot1G1bhHvP2hymKnZmFz+Q5o8YsT9eWUyvk7uorAC0T81joiJGOYehlWFEiqabRjnG59ZnIIL0fdWLAkPRTLOdmsxjiIP+hiDZMc+mo37vf1E7IWlFK3hTiTYLGp6qruoQwak8w7tI/SAvhd/CJQzUoHnZEPC7Hg+hNfeTmCC0W/sFSDGuPRKHNYiZqowqu28LE0EpPZ1dcNWmBX9XAAH5cSvYCKTPEHuDBQTbZ5uluH9gpzpDTJEX9ytUnYTHQYpwyaD0JYobt4rB754jzRvwTawjF+Z23EC9zJgHzFu2FvmfSJ60Q==" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAe0--dN9JzreAJpQW3xKzfTXvFPHQ1wT6zAFvKyiY9Ts" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot" } ] } ] }, { "@id": "https://w3id.org/np/RAe0--dN9JzreAJpQW3xKzfTXvFPHQ1wT6zAFvKyiY9Ts/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAe0--dN9JzreAJpQW3xKzfTXvFPHQ1wT6zAFvKyiY9Ts/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot" } ] } ] }, { "@id": "https://w3id.org/np/RAe0--dN9JzreAJpQW3xKzfTXvFPHQ1wT6zAFvKyiY9Ts/Head", "@graph": [ { "@id": "https://w3id.org/np/RAe0--dN9JzreAJpQW3xKzfTXvFPHQ1wT6zAFvKyiY9Ts", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAe0--dN9JzreAJpQW3xKzfTXvFPHQ1wT6zAFvKyiY9Ts/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAe0--dN9JzreAJpQW3xKzfTXvFPHQ1wT6zAFvKyiY9Ts/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAe0--dN9JzreAJpQW3xKzfTXvFPHQ1wT6zAFvKyiY9Ts/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] } ]