[ { "@id": "https://w3id.org/np/RAGbWrOWNAn3DBiyVWswIMrq2G5ZN2U-fRYcVHI8k7GwY/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAGbWrOWNAn3DBiyVWswIMrq2G5ZN2U-fRYcVHI8k7GwY/get-docs-paragraph-related", "http://purl.org/dc/terms/description": [ { "@value": "Paragraphs linked to one documentation paragraph with rdfs:seeAlso, in either direction, by a member of the maintaining space. Returns the related paragraph (as the paragraph column, so a paragraph view links its heading to that paragraph's page), its current title, and its chapter; the linking nanopublication is the row's source and edit target." } ], "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 paragraphs related to 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 rdfs: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix schema: \nprefix schemas: \nprefix gen: \n\n# Paragraphs related to ONE documentation paragraph, in either direction of rdfs:seeAlso,\n# where the link was published by a member of the maintaining space. ?paragraph is the\n# related paragraph (so the heading links to its page), ?title its current title, ?content\n# names its chapter, ?np is the linking nanopublication (also the edit target).\nselect ?paragraph ?title ?content ?date (str(?np) as ?override_target) ?np (\"^\" as ?np_label) where {\n {\n select ?paragraph ?np ?date (min(?t) as ?title) (min(?topicLabel) as ?chapterLabel) (min(str(?topic)) as ?chapter) 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 ?k ; dct:created ?date ; np:hasAssertion ?la .\n filter not exists { ?x npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?k . }\n }\n filter(contains(?memberPubkeys, ?k))\n graph ?la {\n { ?_resource_multi_iri rdfs:seeAlso ?paragraph . } union { ?paragraph rdfs:seeAlso ?_resource_multi_iri . }\n }\n filter(?paragraph != ?_resource_multi_iri)\n # the related paragraph's current (newest member-signed) title and chapter\n graph npa:graph {\n ?pnp npa:hasValidSignatureForPublicKeyHash ?pk ; dct:created ?pdate ; np:hasAssertion ?pa .\n filter not exists { ?y npx:invalidates ?pnp ; npa:hasValidSignatureForPublicKeyHash ?pk . }\n }\n filter(contains(?memberPubkeys, ?pk))\n graph ?pa { ?paragraph rdf:type gen:Paragraph ; schema:title|schemas:title ?t ; schema:about|schemas:about|schema:isPartOf|schemas:isPartOf ?topic . }\n filter not exists {\n graph npa:graph { ?pnp2 npa:hasValidSignatureForPublicKeyHash ?pk2 ; dct:created ?pdate2 ; np:hasAssertion ?pa2 .\n filter not exists { ?z npx:invalidates ?pnp2 ; npa:hasValidSignatureForPublicKeyHash ?pk2 . } }\n graph ?pa2 { ?paragraph rdf:type gen:Paragraph . }\n filter(?pdate2 > ?pdate) filter(contains(?memberPubkeys, ?pk2))\n }\n optional { graph ?tg { ?topic rdfs:label ?topicLabel . } }\n } group by ?paragraph ?np ?date\n }\n bind(concat(\"

In chapter \", coalesce(?chapterLabel, ?chapter), \"

\") as ?content)\n}\norder by ?title" } ] } ] }, { "@id": "https://w3id.org/np/RAGbWrOWNAn3DBiyVWswIMrq2G5ZN2U-fRYcVHI8k7GwY/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAGbWrOWNAn3DBiyVWswIMrq2G5ZN2U-fRYcVHI8k7GwY/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot" } ] } ] }, { "@id": "https://w3id.org/np/RAGbWrOWNAn3DBiyVWswIMrq2G5ZN2U-fRYcVHI8k7GwY/Head", "@graph": [ { "@id": "https://w3id.org/np/RAGbWrOWNAn3DBiyVWswIMrq2G5ZN2U-fRYcVHI8k7GwY", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAGbWrOWNAn3DBiyVWswIMrq2G5ZN2U-fRYcVHI8k7GwY/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAGbWrOWNAn3DBiyVWswIMrq2G5ZN2U-fRYcVHI8k7GwY/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAGbWrOWNAn3DBiyVWswIMrq2G5ZN2U-fRYcVHI8k7GwY/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] }, { "@id": "https://w3id.org/np/RAGbWrOWNAn3DBiyVWswIMrq2G5ZN2U-fRYcVHI8k7GwY/pubinfo", "@graph": [ { "@id": "https://w3id.org/np/RAGbWrOWNAn3DBiyVWswIMrq2G5ZN2U-fRYcVHI8k7GwY", "http://purl.org/dc/terms/created": [ { "@value": "2026-09-15T07:22:07Z", "@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/RAGbWrOWNAn3DBiyVWswIMrq2G5ZN2U-fRYcVHI8k7GwY/get-docs-paragraph-related" } ], "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/RAGbWrOWNAn3DBiyVWswIMrq2G5ZN2U-fRYcVHI8k7GwY/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": "Oob4yBFYf8MWViWkQilfeZHIgG2IwYQAGSaodrHqRs7v9QgnuseKldq7wHVk6MUyTHnacJPusHBu/wHT9Rxfxlf2/LvPZZnT7ihE9DfTuQTXujrRKB26pdaE/04e2U4y0tB2RuI9klom3pRumqvuN6KQ8MxaKqrEfwl15u6bNyi5MNDs9IpdtSga89aCjdMSrQgvwUFJTLwEO6WBOYmk0cwXz/qD1i4c3wGrcDsVxSMGLyMBvM/izE7/403bVl/PIorNL6AkL8BxrWMGwJYiPumFgbfCLGDWpSBqbFvhUw879QWt79zbS1haCqzgQHW237R+GtV3g7U17C9G3shXNw==" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAGbWrOWNAn3DBiyVWswIMrq2G5ZN2U-fRYcVHI8k7GwY" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://w3id.org/np/RAFJKwxgChOLOQ2UduMAT1bYf1VNaWIZYIPmTT3YvJ8y0/docs-bot" } ] } ] } ]