https://w3id.org/np/RA0ezIGdky-bB8eoD5jLVr14asKZ01FCn84ZWhKvWoRQs
.trig | .trig.txt | .jelly | .jelly.txt | .jsonld | .jsonld.txt | .nq | .nq.txt | .xml | .xml.txt
@prefix this: <https://w3id.org/np/RA0ezIGdky-bB8eoD5jLVr14asKZ01FCn84ZWhKvWoRQs> .
@prefix sub: <https://w3id.org/np/RA0ezIGdky-bB8eoD5jLVr14asKZ01FCn84ZWhKvWoRQs/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix grlc: <https://w3id.org/kpxl/grlc/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix nt: <https://w3id.org/np/o/ntemplate/> .
@prefix npx: <http://purl.org/nanopub/x/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix orcid: <https://orcid.org/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
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 <https://creativecommons.org/licenses/by/4.0/>;
rdfs:label "Get the details of a Consilience disagreement";
grlc:endpoint <https://w3id.org/np/l/nanopub-query-1.1/repo/full>;
grlc:sparql """prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix dct: <http://purl.org/dc/terms/>
prefix foaf: <http://xmlns.com/foaf/0.1/>
prefix prov: <http://www.w3.org/ns/prov#>
prefix np: <http://www.nanopub.org/nschema#>
prefix npa: <http://purl.org/nanopub/admin/>
prefix npx: <http://purl.org/nanopub/x/>
prefix nt: <https://w3id.org/np/o/ntemplate/>
prefix gen: <https://w3id.org/kpxl/gen/terms/>
prefix cv: <https://theconsilience.io/ns/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 <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> {
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, <urn:x-none>) 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 <https://creativecommons.org/licenses/by/4.0/>;
npx:embeds sub:get-consilience-disagreement-info;
rdfs:label "Get the details of a Consilience disagreement";
nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU>;
nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RA-N4_kFxcruvBTlo1yJv29E4SLOXsx5KO_th69PprMrA>,
<https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8>;
nt:wasCreatedFromTemplate <https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k> .
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 .
}