[ { "@id": "https://w3id.org/np/RAUm6gSQ7nTb6STnIfIHZa6WcMG0AEdyKv7BfhzaZZFlM/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAUm6gSQ7nTb6STnIfIHZa6WcMG0AEdyKv7BfhzaZZFlM/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot" } ] } ] }, { "@id": "https://w3id.org/np/RAUm6gSQ7nTb6STnIfIHZa6WcMG0AEdyKv7BfhzaZZFlM/Head", "@graph": [ { "@id": "https://w3id.org/np/RAUm6gSQ7nTb6STnIfIHZa6WcMG0AEdyKv7BfhzaZZFlM", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAUm6gSQ7nTb6STnIfIHZa6WcMG0AEdyKv7BfhzaZZFlM/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAUm6gSQ7nTb6STnIfIHZa6WcMG0AEdyKv7BfhzaZZFlM/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAUm6gSQ7nTb6STnIfIHZa6WcMG0AEdyKv7BfhzaZZFlM/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RAUm6gSQ7nTb6STnIfIHZa6WcMG0AEdyKv7BfhzaZZFlM/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAUm6gSQ7nTb6STnIfIHZa6WcMG0AEdyKv7BfhzaZZFlM/get-docs-paragraphs", "http://purl.org/dc/terms/description": [ { "@value": "The paragraphs about one documentation topic, published by members of the space maintaining the documentation resource (the page's context), newest version of each paragraph only. A paragraph whose newest version marks it as removed (gen:DeactivatedParagraph) is not shown. Shaped for a plain paragraph view with per-paragraph edit and remove actions." } ], "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 documentation paragraphs of a topic" } ], "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 rdfs: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix schema: \nprefix schemas: \nprefix gen: \n\n# The paragraphs of one documentation topic, gated to the members of the space that\n# maintains the documentation resource, with only the newest version of each paragraph.\n#\n# ?_resource_multi_iri is the topic (the part page's own IRI), filled by the view's\n# gen:hasViewQueryTargetField. ?__context_multi_iri is the maintained resource the part\n# page belongs to; Nanodash fills a placeholder named 'context' automatically with the\n# page's context resource, so the space to gate against never has to be hardcoded.\n#\n# ?paragraph is the paragraph's own IRI: the paragraph view links each heading to its\n# part page under the documentation resource (nanodash issue #701).\nselect ?paragraph ?title ?content ?date (str(?np) as ?override_target) ?np (\"^\" as ?np_label) where {\n # One row holding every member pubkey hash of the maintaining space, space-separated.\n # A sub-select sharing no variables with the outer query, so it is evaluated once\n # rather than per result row.\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 ;\n npa:hasRoleType ?roleType .\n ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk .\n }\n # Observers are excluded: that tier can be self-attested and so is no gate at all.\n filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole))\n }\n }\n graph npa:graph {\n ?np npa:hasValidSignatureForPublicKeyHash ?npPubkey ;\n dct:created ?date ;\n np:hasAssertion ?a .\n filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?npPubkey . }\n }\n # Must sit outside the graph block: ?memberPubkeys is bound by the service above.\n filter(contains(?memberPubkeys, ?npPubkey))\n values ?_resource_multi_iri {}\n graph ?a {\n ?paragraph rdf:type gen:Paragraph ;\n schema:title|schemas:title ?title ;\n gen:hasContent ?content ;\n schema:isPartOf|schemas:isPartOf|schema:about|schemas:about ?_resource_multi_iri .\n optional { ?paragraph gen:hasPositionString ?position }\n }\n # Latest-wins per paragraph: an edit republished by another member keeps the paragraph\n # IRI (override fill mode) and only its newest member-signed version is shown. A removal\n # is a newer version typed gen:DeactivatedParagraph (no title or content), so a removed\n # paragraph has no winning row and disappears; restoring it is just another newer version.\n filter not exists {\n graph npa:graph {\n ?np2 npa:hasValidSignatureForPublicKeyHash ?np2Pubkey ;\n dct:created ?date2 ;\n np:hasAssertion ?a2 .\n filter not exists { ?npx2 npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?np2Pubkey . }\n }\n graph ?a2 { ?paragraph rdf:type ?type2 . }\n values ?type2 { gen:Paragraph gen:DeactivatedParagraph }\n filter(?date2 > ?date)\n filter(contains(?memberPubkeys, ?np2Pubkey))\n }\n}\norder by ?position ?title" } ] } ] }, { "@id": "https://w3id.org/np/RAUm6gSQ7nTb6STnIfIHZa6WcMG0AEdyKv7BfhzaZZFlM/pubinfo", "@graph": [ { "@id": "https://w3id.org/np/RAUm6gSQ7nTb6STnIfIHZa6WcMG0AEdyKv7BfhzaZZFlM", "http://purl.org/dc/terms/created": [ { "@value": "2026-09-16T15:13:47Z", "@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/RAUm6gSQ7nTb6STnIfIHZa6WcMG0AEdyKv7BfhzaZZFlM/get-docs-paragraphs" } ], "http://purl.org/nanopub/x/supersedes": [ { "@id": "https://w3id.org/np/RAbOBFWFpJ0K7ShUeAW7gfhAJiIC1CHBGdSPkL5T-3mko" } ], "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/RAUm6gSQ7nTb6STnIfIHZa6WcMG0AEdyKv7BfhzaZZFlM/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": "YjQblEMQ1nREFqYcZ2rzwB+Ttz9hvWWkfHlcpS1mZlPuwuAVZumsMlGdcTr7eVyLXTcU/Hwn/yl+9ed6b2bH6xsc40IoDTjoGLn8XHfKLMhDFZ7dNyu0M6Q6NEoFf69NKu0awqQzoF53fI90f9S6zcA6a8S2kxgdTiU9IiN51E8zeOFR17NHoiRGOcpqN+nKrgT/+eh9ewZt+gbJaOSAjGOevppkrI4IKNS/9Oi+/EdNKciusBIcQqUWZ3t7MyBdN+j+h6i/r2giZdd/QpFzJq84Iio+ynCq8WEvzlZdr8DKQi/ZIqzPh8EaDC+NOTiVgLqtMVrPIYyBSboXJ3m5CA==" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAUm6gSQ7nTb6STnIfIHZa6WcMG0AEdyKv7BfhzaZZFlM" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot" } ] } ] } ]