@prefix this: . @prefix sub: . @prefix np: . @prefix grlc: . @prefix dct: . @prefix nt: . @prefix npx: . @prefix xsd: . @prefix rdfs: . @prefix orcid: . @prefix prov: . @prefix foaf: . sub:Head { this: a np:Nanopublication; np:hasAssertion sub:assertion; np:hasProvenance sub:provenance; np:hasPublicationInfo sub:pubinfo . } sub:assertion { sub:get-consilience-disagreement-info a grlc:grlc-query; dct:description "Shows a disagreement (cv:Disagreement) as property/value rows: dimension, observables, instruments, testability and its reason, assumption, margin, floor and unit where given, and the receipt. The record must be signed by a current admin, maintainer or member of the context space; its newest valid version is shown."; dct:license ; rdfs:label "Get the details of a Consilience disagreement"; grlc:endpoint ; grlc:sparql """prefix rdf: prefix rdfs: prefix dct: prefix foaf: prefix prov: prefix np: prefix npa: prefix npx: prefix nt: prefix gen: prefix cv: select ?Property_noheader ?Value_noheader (min(?lbl) as ?Value_label) where { { select ?_disagreement_multi_iri ?np ?a ?prov ?pi ?date ?dimL ?testL ?reason ?assumption ?margin ?floor ?unit ?identifier ?receipt ?exportedWith where { service { select (group_concat(distinct ?mpk; separator=\" \") as ?memberKeys) where { values ?__context_multi_iri {} graph npa:graph { npa:thisRepo npa:hasCurrentSpaceState ?sg . } graph ?sg { ?__context_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:hasRoleType ?tier ; npa:forAgent ?agent . filter(?tier in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } values ?_disagreement_multi_iri {} graph npa:graph { ?np npx:introduces ?_disagreement_multi_iri ; np:hasAssertion ?a ; np:hasProvenance ?prov ; np:hasPublicationInfo ?pi ; dct:created ?date ; npa:hasValidSignatureForPublicKeyHash ?pk . filter not exists { ?inv npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pk . } filter not exists { ?np npx:hasNanopubType npx:ExampleNanopub . } } filter(contains(?memberKeys, ?pk)) graph ?a { ?_disagreement_multi_iri a cv:Disagreement . } optional { graph npa:graph { ?newer npx:introduces ?_disagreement_multi_iri ; dct:created ?newerDate ; npa:hasValidSignatureForPublicKeyHash ?newerPk . filter not exists { ?newerInv npx:invalidates ?newer ; npa:hasValidSignatureForPublicKeyHash ?newerPk . } } filter(contains(?memberKeys, ?newerPk) && concat(str(?newerDate), \">\", str(?newer)) > concat(str(?date), \">\", str(?np))) } filter(!bound(?newer)) graph ?a { ?_disagreement_multi_iri cv:dimension ?dim ; cv:testability ?test . } optional { graph ?pi { ?np rdfs:label ?npl0 } } bind(coalesce(?npl0, \"\") as ?npl) optional { graph ?pi { ?dim rdfs:label|nt:hasLabelFromApi ?dimPi } } optional { graph ?pi { ?test rdfs:label|nt:hasLabelFromApi ?testPi } } bind(if(regex(?npl, \"^Disagreement .+ on ([^:]+): .*$\"), replace(?npl, \"^Disagreement .+ on ([^:]+): .*$\", \"$1\"), \"\") as ?dimParsed) bind(coalesce(?dimPi, if(?dimParsed != \"\", ?dimParsed, lcase(replace(replace(str(?dim), \"^.*[/#]\", \"\"), \"([a-z0-9])([A-Z])\", \"$1 $2\")))) as ?dimL) bind(coalesce(?testPi, lcase(replace(replace(str(?test), \"^.*[/#]\", \"\"), \"([a-z0-9])([A-Z])\", \"$1 $2\"))) as ?testL) optional { graph ?a { ?_disagreement_multi_iri cv:testabilityReason ?reason } } optional { graph ?a { ?_disagreement_multi_iri cv:assumption ?assumption } } optional { graph ?a { ?_disagreement_multi_iri cv:margin ?margin } } optional { graph ?a { ?_disagreement_multi_iri cv:floor ?floor } } optional { graph ?a { ?_disagreement_multi_iri cv:unit ?unit } } optional { graph ?a { ?_disagreement_multi_iri dct:identifier ?identifier } } optional { graph ?prov { ?a prov:wasDerivedFrom ?receipt } } optional { graph ?prov { ?a cv:exportedWith ?exportedWith } } } } values (?k ?Property_noheader ?ord) { (\"dimension\" \"Dimension:\" 1) (\"observable\" \"Observable:\" 2) (\"instrument\" \"Instrument:\" 3) (\"testability\" \"Testability:\" 4) (\"reason\" \"Why:\" 5) (\"assumption\" \"Assumption:\" 6) (\"margin\" \"Margin:\" 7) (\"floor\" \"Floor:\" 8) (\"unit\" \"Unit:\" 9) (\"identifier\" \"Identifier:\" 10) (\"receipt\" \"Receipt:\" 11) (\"exported\" \"Exported with:\" 12) (\"np\" \"Published:\" 13) } optional { filter(?k = \"observable\") graph ?a { ?_disagreement_multi_iri cv:observable ?term } } optional { filter(?k = \"instrument\") graph ?a { ?_disagreement_multi_iri cv:instrument ?term } } bind(coalesce(?term, ) as ?termKey) optional { graph ?pi { ?termKey rdfs:label|nt:hasLabelFromApi ?termPi } } bind(if(?k = \"dimension\", ?dimL, if(?k in (\"observable\", \"instrument\"), if(bound(?term), str(?term), \"\"), if(?k = \"testability\", ?testL, if(?k = \"reason\", if(bound(?reason), str(?reason), \"\"), if(?k = \"assumption\", if(bound(?assumption), str(?assumption), \"\"), if(?k = \"margin\", if(bound(?margin), str(?margin), \"\"), if(?k = \"floor\", if(bound(?floor), str(?floor), \"\"), if(?k = \"unit\", if(bound(?unit), str(?unit), \"\"), if(?k = \"identifier\", if(bound(?identifier), str(?identifier), \"\"), if(?k = \"receipt\", if(bound(?receipt), str(?receipt), \"\"), if(?k = \"exported\", if(bound(?exportedWith), str(?exportedWith), \"\"), str(?np)))))))))))) as ?Value_noheader) bind(if(?k in (\"observable\", \"instrument\") && bound(?term), coalesce(?termPi, lcase(replace(replace(str(?term), \"^.*[/#]\", \"\"), \"([a-z0-9])([A-Z])\", \"$1 $2\"))), if(?k = \"receipt\", replace(str(?receipt), \"^.*/\", \"\"), if(?k = \"unit\" && bound(?unit), lcase(replace(replace(str(?unit), \"^.*[/#]\", \"\"), \"([a-z0-9])([A-Z])\", \"$1 $2\")), if(?k = \"np\", substr(str(?date), 1, 10), \"\")))) as ?lbl) filter(?Value_noheader != \"\") } group by ?ord ?Property_noheader ?Value_noheader order by ?ord ?Value_noheader""" . } sub:provenance { sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 . } sub:pubinfo { orcid:0000-0002-1267-0234 foaf:name "Tobias Kuhn" . this: dct:created "2026-11-20T12:16:55.875+01:00"^^xsd:dateTime; dct:creator orcid:0000-0002-1267-0234; dct:license ; npx:embeds sub:get-consilience-disagreement-info; rdfs:label "Get the details of a Consilience disagreement"; nt:wasCreatedFromProvenanceTemplate ; nt:wasCreatedFromPubinfoTemplate , ; nt:wasCreatedFromTemplate . sub:sig npx:hasAlgorithm "RSA"; npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB"; npx:hasSignature "laMtfmQvy62doaZWDFqAtKcc2deC8fR8gOFYwEbS8mCXXh/Tn1fk3DP7D0f9/pvrfvsZzA/mqYyau9AAHKCNt51CpAAXoNpXX8gwMv0QNt0ZgGM9F0NcZNTMMcsl7DcGdskpwqcQkHscosoQxW+0ticfI41vOpP6A4LdlxBo/mg="; npx:hasSignatureTarget this:; npx:signedBy orcid:0000-0002-1267-0234 . }