rows { options { physical_type: PHYSICAL_STREAM_TYPE_QUADS max_name_table_size: 128 max_prefix_table_size: 16 max_datatype_table_size: 16 logical_type: LOGICAL_STREAM_TYPE_DATASETS version: 2 } } rows { prefix { value: "https://w3id.org/np/" } } rows { name { value: "RAYm1myemYanJ4R7zk0Sj7ay6rYJhCzDRUSpW5HKOKong" } } rows { namespace { name: "this" value { prefix_id: 1 } } } rows { prefix { value: "https://w3id.org/np/RAYm1myemYanJ4R7zk0Sj7ay6rYJhCzDRUSpW5HKOKong/" } } rows { name { } } rows { namespace { name: "sub" value { prefix_id: 2 } } } rows { prefix { value: "http://www.nanopub.org/nschema#" } } rows { namespace { name: "np" value { prefix_id: 3 name_id: 2 } } } rows { prefix { value: "http://purl.org/dc/terms/" } } rows { namespace { name: "dct" value { prefix_id: 4 name_id: 2 } } } rows { prefix { value: "https://w3id.org/np/o/ntemplate/" } } rows { namespace { name: "nt" value { prefix_id: 5 name_id: 2 } } } rows { prefix { value: "http://purl.org/nanopub/x/" } } rows { namespace { name: "npx" value { prefix_id: 6 name_id: 2 } } } rows { prefix { value: "http://www.w3.org/2001/XMLSchema#" } } rows { namespace { name: "xsd" value { prefix_id: 7 name_id: 2 } } } rows { prefix { value: "http://www.w3.org/2000/01/rdf-schema#" } } rows { namespace { name: "rdfs" value { prefix_id: 8 name_id: 2 } } } rows { prefix { value: "https://orcid.org/" } } rows { namespace { name: "orcid" value { prefix_id: 9 name_id: 2 } } } rows { prefix { value: "http://www.w3.org/ns/prov#" } } rows { namespace { name: "prov" value { prefix_id: 10 name_id: 2 } } } rows { prefix { value: "http://xmlns.com/foaf/0.1/" } } rows { namespace { name: "foaf" value { prefix_id: 11 name_id: 2 } } } rows { name { value: "hasAssertion" } } rows { name { value: "assertion" } } rows { name { value: "Head" } } rows { quad { s_iri { prefix_id: 1 name_id: 1 } p_iri { prefix_id: 3 name_id: 3 } o_iri { prefix_id: 2 } g_iri { } } } rows { name { value: "hasProvenance" } } rows { name { value: "provenance" } } rows { quad { p_iri { prefix_id: 3 } o_iri { prefix_id: 2 } } } rows { name { value: "hasPublicationInfo" } } rows { name { value: "pubinfo" } } rows { quad { p_iri { prefix_id: 3 } o_iri { prefix_id: 2 } } } rows { prefix { value: "http://www.w3.org/1999/02/22-rdf-syntax-ns#" } } rows { name { value: "type" } } rows { name { value: "Nanopublication" } } rows { quad { p_iri { prefix_id: 12 } o_iri { prefix_id: 3 } } } rows { name { value: "get-claim-assessments" } } rows { name { value: "description" } } rows { quad { s_iri { prefix_id: 2 } p_iri { prefix_id: 4 } o_literal { lex: "Lists the assessments of a claim, one row per assessment, for the page of that claim (its IRI passed as the \'claim\' parameter). The assessments are the ones the claim is linked to by delphi:hasAssessment, wherever that triple is asserted -- in the claim\'s nanopublication or in the assessment\'s -- which is why this query runs on the full repository rather than on a type repository. An assessment is read from the nanopublication that introduces it or, for a per-dimension score, from the one that introduces the overall assessment it is part of (dct:isPartOf), since Project Delphi publishes the dimension scores inside the overall assessment\'s nanopublication; of all validly signed, non-invalidated nanopublications introducing that resource, only the newest is read (ties broken by nanopublication URI), so a re-assessed claim appears once, with its current scores. The criterion is the rubric concept the assessment names with dct:subject, a delphi:Concept, shown by its label; an assessment whose delphi:assessmentType (on the assessment in the assertion graph, or on the nanopublication in pubinfo) is a rubric and version alone, such as dataset-resolvability/0.2.0, or ends in \'/overall\' is the overall assessment, named \'Overall\'; a criterion with no published concept falls back to the last segment of its assessment type. The score is the assessment\'s delphi:hasScore, else its delphi:hasProbability or delphi:weightOfEvidence, on the rubric\'s scale from 0 to 1 rounded to two decimals. The model is the one the assessment names with delphi:assessedBy, or the one the software agent it is attributed to (prov:wasAttributedTo) uses (delphi:usesModel), labelled from the assessment\'s nanopublication. A claim assessed by several models has one block of rows per model. Ordered by model, then with the overall assessment first, then alphabetically by criterion." } g_iri { prefix_id: 2 name_id: 4 } } } rows { name { value: "license" } } rows { prefix { value: "http://www.apache.org/licenses/" } } rows { name { value: "LICENSE-2.0" } } rows { quad { p_iri { prefix_id: 4 name_id: 14 } o_iri { prefix_id: 13 } } } rows { prefix { value: "https://w3id.org/kpxl/grlc/" } } rows { name { value: "grlc-query" } } rows { quad { p_iri { prefix_id: 12 name_id: 10 } o_iri { prefix_id: 14 name_id: 16 } } } rows { name { value: "label" } } rows { quad { p_iri { prefix_id: 8 } o_literal { lex: "Get the assessments of a claim" } } } rows { name { value: "endpoint" } } rows { prefix { value: "https://w3id.org/np/l/nanopub-query-1.1/repo/" } } rows { name { value: "full" } } rows { quad { p_iri { prefix_id: 14 } o_iri { prefix_id: 15 } } } rows { name { value: "sparql" } } rows { quad { p_iri { prefix_id: 14 } o_literal { lex: "prefix rdfs: \r\nprefix dct: \r\nprefix xsd: \r\nprefix prov: \r\nprefix np: \r\nprefix npa: \r\nprefix npx: \r\nprefix delphi: \r\n\r\nselect ?criterion ?score ?verdict ?model ?model_label ?np (\"^\" as ?np_label) where {\r\n {\r\n select ?as ?np\r\n (min(?criterionV) as ?criterion)\r\n (min(?ordV) as ?ord)\r\n (min(?scoreV) as ?score)\r\n (min(?verdictV) as ?verdict)\r\n (min(?modelStrV) as ?modelStr)\r\n (min(?modelLabelV) as ?model_label)\r\n where {\r\n values ?_claim_multi_iri {}\r\n graph ?gl { ?_claim_multi_iri delphi:hasAssessment ?as }\r\n # An assessment is defined by the nanopublication that introduces it, or, for a\r\n # per-dimension score, by the one that introduces the overall assessment it is part of.\r\n {\r\n graph npa:graph { ?np npx:introduces ?as }\r\n bind(?as as ?root)\r\n } union {\r\n graph ?gp { ?as dct:isPartOf ?root }\r\n graph npa:graph { ?np npx:introduces ?root }\r\n }\r\n graph npa:graph {\r\n ?np np:hasAssertion ?aa ;\r\n np:hasPublicationInfo ?api ;\r\n dct:created ?date ;\r\n npa:hasValidSignatureForPublicKeyHash ?pubkey .\r\n filter not exists { ?inv npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }\r\n }\r\n graph ?aa { ?as a delphi:LLMClaimAssessment }\r\n filter not exists {\r\n graph npa:graph {\r\n ?np2 npx:introduces ?root ;\r\n np:hasAssertion ?a2 ;\r\n dct:created ?date2 ;\r\n npa:hasValidSignatureForPublicKeyHash ?pubkey2 .\r\n filter not exists { ?inv2 npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?pubkey2 . }\r\n }\r\n graph ?a2 { ?root a delphi:LLMClaimAssessment }\r\n filter(?date2 > ?date || (?date2 = ?date && str(?np2) > str(?np)))\r\n }\r\n { graph ?aa { ?as delphi:assessmentType ?atype } }\r\n union\r\n { graph ?api { ?np delphi:assessmentType ?atype } }\r\n bind(strends(str(?atype), \"/overall\") || regex(str(?atype), \"^[^/]+/[^/]+$\") as ?isOverall)\r\n optional {\r\n graph ?aa { ?as dct:subject ?rubric }\r\n graph ?cg { ?rubric a delphi:Concept ; rdfs:label ?rubricLabel }\r\n }\r\n bind(if(?isOverall, \"Overall\",\r\n coalesce(?rubricLabel, replace(str(?atype), \"^.*/\", \"\"))) as ?criterionV)\r\n bind(if(?isOverall, \"0\", concat(\"1\", ?criterionV)) as ?ordV)\r\n optional { graph ?aa { ?as delphi:hasScore ?p0 } }\r\n optional { graph ?aa { ?as delphi:hasProbability ?p1 } }\r\n optional { graph ?aa { ?as delphi:weightOfEvidence ?p2 } }\r\n bind(coalesce(?p0, ?p1, ?p2) as ?sc)\r\n bind(xsd:integer(round(?sc * 100)) as ?pct)\r\n bind(if(?pct >= 100, \"1.00\",\r\n concat(\"0.\", if(?pct < 10, concat(\"0\", str(?pct)), str(?pct)))) as ?scoreV)\r\n optional { graph ?aa { ?as delphi:hasVerdict ?verdictV } }\r\n optional {\r\n { graph ?aa { ?as delphi:assessedBy ?modelV } }\r\n union\r\n { graph ?aa { ?as prov:wasAttributedTo ?agent . ?agent delphi:usesModel ?modelV } }\r\n bind(str(?modelV) as ?modelStrV)\r\n optional { graph ?aa { ?modelV rdfs:label ?modelLabelV } }\r\n }\r\n } group by ?as ?np\r\n }\r\n bind(iri(?modelStr) as ?model)\r\n}\r\norder by ?model_label ?ord ?criterion" } } } rows { name { value: "wasAttributedTo" } } rows { name { value: "0000-0002-1267-0234" } } rows { quad { s_iri { prefix_id: 2 name_id: 4 } p_iri { prefix_id: 10 name_id: 21 } o_iri { prefix_id: 9 } g_iri { prefix_id: 2 name_id: 7 } } } rows { name { value: "0000-0001-8492-0354" } } rows { name { value: "name" } } rows { quad { s_iri { prefix_id: 9 name_id: 23 } p_iri { prefix_id: 11 } o_literal { lex: "Ashley Caselli" } g_iri { prefix_id: 2 name_id: 9 } } } rows { name { value: "created" } } rows { datatype { value: "http://www.w3.org/2001/XMLSchema#dateTime" } } rows { quad { s_iri { prefix_id: 1 name_id: 1 } p_iri { prefix_id: 4 name_id: 25 } o_literal { lex: "2026-11-06T17:49:06.108Z" datatype: 1 } } } rows { name { value: "creator" } } rows { quad { p_iri { } o_iri { prefix_id: 9 name_id: 23 } } } rows { prefix { value: "https://creativecommons.org/licenses/by/4.0/" } } rows { quad { p_iri { prefix_id: 4 name_id: 14 } o_iri { prefix_id: 16 name_id: 2 } } } rows { name { value: "embeds" } } rows { quad { p_iri { prefix_id: 6 name_id: 27 } o_iri { prefix_id: 2 name_id: 12 } } } rows { name { value: "wasCreatedAt" } } rows { prefix { id: 5 value: "https://nanodash.knowledgepixels.com/" } } rows { quad { p_iri { prefix_id: 6 name_id: 28 } o_iri { prefix_id: 5 name_id: 2 } } } rows { name { value: "wasDerivedFrom" } } rows { name { value: "RAIeuY8SxuEhwwHaXrCBRpdet36U0_7QGqSwChYxly6fs" } } rows { quad { p_iri { prefix_id: 10 name_id: 29 } o_iri { prefix_id: 1 } } } rows { prefix { id: 7 value: "https://w3id.org/np/o/ntemplate/" } } rows { name { value: "wasCreatedFromProvenanceTemplate" } } rows { name { value: "RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU" } } rows { quad { p_iri { prefix_id: 7 } o_iri { prefix_id: 1 } } } rows { name { value: "wasCreatedFromPubinfoTemplate" } } rows { name { value: "RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8" } } rows { quad { p_iri { prefix_id: 7 } o_iri { prefix_id: 1 } } } rows { name { value: "RAKc76yHLDbloE6ObluzYQsfX37v6qrZXbYeIKpe8-YUo" } } rows { quad { o_iri { } } } rows { name { value: "RARW4MsFkHuwjycNElvEVtuMjpf4yWDL10-0C5l2MqqRQ" } } rows { quad { o_iri { } } } rows { name { value: "RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI" } } rows { quad { o_iri { } } } rows { name { value: "wasCreatedFromTemplate" } } rows { name { value: "RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k" } } rows { quad { p_iri { prefix_id: 7 } o_iri { prefix_id: 1 } } } rows { name { value: "sig" } } rows { name { value: "hasAlgorithm" } } rows { quad { s_iri { prefix_id: 2 } p_iri { prefix_id: 6 } o_literal { lex: "RSA" } } } rows { name { value: "hasPublicKey" } } rows { quad { p_iri { } o_literal { lex: "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCaQXE2B2hJ6QdWxaWerU4F/XOtCQdj2OkdrIYd1kpMY9hIUh8boxaO3uOBeqvvqKLf5HjpRF4DT1eghOSsa2Dhd5HRTM/XIamvwWkHpN4oB3Ml19pAAzjTqczYmFLfgG67mGL5+vSA8VEdHtKQCrvP4SpTibMBP1qaxt3k1tqD6wIDAQAB" } } } rows { name { value: "hasSignature" } } rows { quad { p_iri { } o_literal { lex: "R6dyenI1OEG/b/PP34b4Btw4EnPaXyA6RgXoi2NcAPh0TgfiiUxj6Lfox8WJ2MRkq/V3vOUhUoW7xWjG6uzqR2Foh0dVOFwsTz3BRoPnrGKHENyPgqu1zN2ehhzTG2eojH1f/JPL5IdB0vSELytY57RIuoSPINs81WNqm3jcL3I=" } } } rows { name { value: "hasSignatureTarget" } } rows { quad { p_iri { } o_iri { prefix_id: 1 name_id: 1 } } } rows { name { value: "signedBy" } } rows { quad { p_iri { prefix_id: 6 name_id: 45 } o_iri { prefix_id: 9 name_id: 23 } } }