[ { "@id": "https://w3id.org/np/RAwlogTkyf_SOsC_w2UgRZbdwN--TLOjkFzPVgF2WRKV8/assertion", "@graph": [ { "@id": "https://w3id.org/np/RAwlogTkyf_SOsC_w2UgRZbdwN--TLOjkFzPVgF2WRKV8/get-questions", "http://purl.org/dc/terms/description": [ { "@value": "This query returns the questions asked about a resource (a space, a maintained resource, or any other entity, including part-level resources), together with who asked them and when, and their answers and other follow-up contributions. Questions are schema:Question nodes anchored to the resource via schema:about, following the Nanoarguments discourse model; answers are discourse contributions (schema:Statement) targeting the question via as:inReplyTo. Each answer is identified by its own nanopublication rather than by its statement node, so that several answers remain distinct even when the template they were created from reuses one statement IRI. Answers are listed one per line, each shown as the name of its author and the date, linking to the answer nanopublication. Retracted nanopublications and example nanopublications are excluded." } ], "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 questions and answers about a resource" } ], "https://w3id.org/kpxl/grlc/endpoint": [ { "@id": "https://w3id.org/np/l/nanopub-query-1.1/repo/type/29e2f808e4864fca4930806dee70c4a32df54a63ee90156244910a47d3443736" } ], "https://w3id.org/kpxl/grlc/sparql": [ { "@value": "prefix rdf: \nprefix dct: \nprefix np: \nprefix npa: \nprefix npx: \nprefix prov: \nprefix foaf: \nprefix schema: \nprefix as: \n\nselect ?question ?question_label ?asked_by (min(?asked_byName) as ?asked_by_label) ?date\n (group_concat(?ansLink; separator=\"\") as ?answers)\n (str(?question) as ?reply_target)\n ?np ?np_label\nwhere {\n graph npa:graph {\n ?np npa:hasValidSignatureForPublicKeyHash ?pubkey .\n filter not exists {\n ?npi npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey .\n }\n ?np np:hasAssertion ?qa ; np:hasProvenance ?qprov ; np:hasPublicationInfo ?qpi ;\n dct:created ?date .\n }\n graph ?qa {\n ?question a schema:Question ; rdf:value ?question_label .\n values ?_resource_multi_iri {}\n ?question schema:about ?_resource_multi_iri .\n }\n filter not exists { graph ?qpi { ?np npx:hasNanopubType npx:ExampleNanopub } }\n optional { graph ?qprov { ?qa prov:wasAttributedTo ?asked_by } }\n optional { graph ?qpi { ?asked_by foaf:name ?asked_byName } }\n optional {\n select ?question ?anp (min(?lnk) as ?ansLink) where {\n graph ?qa2 {\n ?question a schema:Question .\n values ?_resource_multi_iri {}\n ?question schema:about ?_resource_multi_iri .\n }\n graph npa:graph {\n ?anp npa:hasValidSignatureForPublicKeyHash ?apubkey .\n filter not exists {\n ?anpi npx:invalidates ?anp ; npa:hasValidSignatureForPublicKeyHash ?apubkey .\n }\n ?anp np:hasAssertion ?aa ; np:hasProvenance ?aprov ; np:hasPublicationInfo ?api ;\n dct:created ?adate .\n }\n graph ?aa {\n ?ans as:inReplyTo ?question .\n }\n filter not exists { graph ?api { ?anp npx:hasNanopubType npx:ExampleNanopub } }\n optional { graph ?aprov { ?aa prov:wasAttributedTo ?answerer } }\n optional { graph ?api { ?answerer foaf:name ?aname } }\n bind(concat(\n \"\"\n ) as ?lnk)\n }\n group by ?question ?anp\n }\n bind(\"^\" as ?np_label)\n}\ngroup by ?question ?question_label ?asked_by ?date ?np ?np_label\norder by desc(?date)" } ] } ] }, { "@id": "https://w3id.org/np/RAwlogTkyf_SOsC_w2UgRZbdwN--TLOjkFzPVgF2WRKV8/pubinfo", "@graph": [ { "@id": "https://w3id.org/np/RAwlogTkyf_SOsC_w2UgRZbdwN--TLOjkFzPVgF2WRKV8", "http://purl.org/dc/terms/created": [ { "@value": "2026-08-18T12:26:29Z", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" } ], "http://purl.org/dc/terms/creator": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ], "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/RAwlogTkyf_SOsC_w2UgRZbdwN--TLOjkFzPVgF2WRKV8/get-questions" } ], "http://purl.org/nanopub/x/supersedes": [ { "@id": "https://w3id.org/np/RARbv6h7JnxobhuaxiwIpZRmxFvoO5fMzES_6XHBpVsdA" } ], "http://www.w3.org/2000/01/rdf-schema#label": [ { "@value": "Get questions and answers about a resource" } ], "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/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8" }, { "@id": "https://w3id.org/np/RAoTD7udB2KtUuOuAe74tJi1t3VzK0DyWS7rYVAq1GRvw" }, { "@id": "https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI" } ], "https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate": [ { "@id": "https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k" } ] }, { "@id": "https://w3id.org/np/RAwlogTkyf_SOsC_w2UgRZbdwN--TLOjkFzPVgF2WRKV8/sig", "http://purl.org/nanopub/x/hasAlgorithm": [ { "@value": "RSA" } ], "http://purl.org/nanopub/x/hasPublicKey": [ { "@value": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB" } ], "http://purl.org/nanopub/x/hasSignature": [ { "@value": "H2Py5UxhXoxNRTVgdj7A3HG9yJtSYEYkkEwGfSarWz3rU5kIR12iTBvaulgOa4p9/wGxKkZfthk4OVDpuc18Orq5jeCjijBCEoDMSVz/SKQdGWgSWajo8mz0cYjpnRVRRbwInom06yKtnxhPsdGJ50k8yuKL8Nxyq9rQl8LJFZI=" } ], "http://purl.org/nanopub/x/hasSignatureTarget": [ { "@id": "https://w3id.org/np/RAwlogTkyf_SOsC_w2UgRZbdwN--TLOjkFzPVgF2WRKV8" } ], "http://purl.org/nanopub/x/signedBy": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAwlogTkyf_SOsC_w2UgRZbdwN--TLOjkFzPVgF2WRKV8/provenance", "@graph": [ { "@id": "https://w3id.org/np/RAwlogTkyf_SOsC_w2UgRZbdwN--TLOjkFzPVgF2WRKV8/assertion", "http://www.w3.org/ns/prov#wasAttributedTo": [ { "@id": "https://orcid.org/0000-0002-1267-0234" } ] } ] }, { "@id": "https://w3id.org/np/RAwlogTkyf_SOsC_w2UgRZbdwN--TLOjkFzPVgF2WRKV8/Head", "@graph": [ { "@id": "https://w3id.org/np/RAwlogTkyf_SOsC_w2UgRZbdwN--TLOjkFzPVgF2WRKV8", "http://www.nanopub.org/nschema#hasAssertion": [ { "@id": "https://w3id.org/np/RAwlogTkyf_SOsC_w2UgRZbdwN--TLOjkFzPVgF2WRKV8/assertion" } ], "http://www.nanopub.org/nschema#hasProvenance": [ { "@id": "https://w3id.org/np/RAwlogTkyf_SOsC_w2UgRZbdwN--TLOjkFzPVgF2WRKV8/provenance" } ], "http://www.nanopub.org/nschema#hasPublicationInfo": [ { "@id": "https://w3id.org/np/RAwlogTkyf_SOsC_w2UgRZbdwN--TLOjkFzPVgF2WRKV8/pubinfo" } ], "@type": [ "http://www.nanopub.org/nschema#Nanopublication" ] } ] } ]