https://w3id.org/np/RAtBBwRJ28S1UNtLPiiC5zzDCyNiZNnJM8yqEYKxidOVg
.trig | .trig.txt | .jelly | .jelly.txt | .jsonld | .jsonld.txt | .nq | .nq.txt | .xml | .xml.txt
@prefix this: <https://w3id.org/np/RAtBBwRJ28S1UNtLPiiC5zzDCyNiZNnJM8yqEYKxidOVg> .
@prefix sub: <https://w3id.org/np/RAtBBwRJ28S1UNtLPiiC5zzDCyNiZNnJM8yqEYKxidOVg/> .
@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-claim-info a grlc:grlc-query;
dct:description "Shows a theory claim (cv:TheoryClaim) as property/value rows: theory, dimension, position, polarity, the claim statement, its sources with page locators, and the receipt in the provenance (drafted by, reviewed by, derived from, exported with). 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 theory claim";
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 ?Value_label where {
{
select ?ord ?Property_noheader ?Value_noheader (min(?lbl) as ?lblMin) (group_concat(distinct ?pageL; separator=\", \") as ?pages) where {
{
select ?_claim_multi_iri ?np ?a ?prov ?date ?statement ?theory ?theoryL ?dimL ?posL ?polL ?formL ?identifier
?draftedBy ?reviewer ?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 ?_claim_multi_iri {}
graph npa:graph {
?np npx:introduces ?_claim_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 { ?_claim_multi_iri a cv:TheoryClaim . }
optional {
graph npa:graph {
?newer npx:introduces ?_claim_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 { ?_claim_multi_iri cv:theory ?theory ; cv:dimension ?dim ; cv:position ?pos . }
optional { graph ?a { ?_claim_multi_iri cv:claimStatement ?statement } }
optional { graph ?a { ?_claim_multi_iri cv:polarity ?pol } }
optional { graph ?a { ?_claim_multi_iri cv:statementForm ?form } }
optional { graph ?a { ?_claim_multi_iri dct:identifier ?identifier } }
optional { graph ?pi { ?np rdfs:label ?npl0 } }
bind(coalesce(?npl0, \"\") as ?npl)
optional { graph ?pi { ?theory rdfs:label|nt:hasLabelFromApi ?theoryPi } }
optional { graph ?pi { ?dim rdfs:label|nt:hasLabelFromApi ?dimPi } }
optional { graph ?pi { ?pos rdfs:label|nt:hasLabelFromApi ?posPi } }
bind(coalesce(?theoryPi, if(if(regex(?npl, \"^Theory claim [^ ]+ [(]([^)]+)[)]: ([^=]+) = (.+)$\"), replace(?npl, \"^Theory claim [^ ]+ [(]([^)]+)[)]: ([^=]+) = (.+)$\", \"$1\"), \"\") != \"\", if(regex(?npl, \"^Theory claim [^ ]+ [(]([^)]+)[)]: ([^=]+) = (.+)$\"), replace(?npl, \"^Theory claim [^ ]+ [(]([^)]+)[)]: ([^=]+) = (.+)$\", \"$1\"), \"\"), lcase(replace(replace(str(?theory), \"^.*[/#]\", \"\"), \"([a-z0-9])([A-Z])\", \"$1 $2\")))) as ?theoryL)
bind(coalesce(?dimPi, if(if(regex(?npl, \"^Theory claim [^ ]+ [(]([^)]+)[)]: ([^=]+) = (.+)$\"), replace(?npl, \"^Theory claim [^ ]+ [(]([^)]+)[)]: ([^=]+) = (.+)$\", \"$2\"), \"\") != \"\", if(regex(?npl, \"^Theory claim [^ ]+ [(]([^)]+)[)]: ([^=]+) = (.+)$\"), replace(?npl, \"^Theory claim [^ ]+ [(]([^)]+)[)]: ([^=]+) = (.+)$\", \"$2\"), \"\"), lcase(replace(replace(str(?dim), \"^.*[/#]\", \"\"), \"([a-z0-9])([A-Z])\", \"$1 $2\")))) as ?dimL)
bind(coalesce(?posPi, if(if(regex(?npl, \"^Theory claim [^ ]+ [(]([^)]+)[)]: ([^=]+) = (.+)$\"), replace(?npl, \"^Theory claim [^ ]+ [(]([^)]+)[)]: ([^=]+) = (.+)$\", \"$3\"), \"\") != \"\", if(regex(?npl, \"^Theory claim [^ ]+ [(]([^)]+)[)]: ([^=]+) = (.+)$\"), replace(?npl, \"^Theory claim [^ ]+ [(]([^)]+)[)]: ([^=]+) = (.+)$\", \"$3\"), \"\"), lcase(replace(replace(str(?pos), \"^.*[/#]\", \"\"), \"([a-z0-9])([A-Z])\", \"$1 $2\")))) as ?posL)
bind(if(bound(?pol), lcase(replace(replace(str(?pol), \"^.*[/#]\", \"\"), \"([a-z0-9])([A-Z])\", \"$1 $2\")), \"\") as ?polL)
bind(if(bound(?form), lcase(replace(replace(str(?form), \"^.*[/#]\", \"\"), \"([a-z0-9])([A-Z])\", \"$1 $2\")), \"\") as ?formL)
optional { graph ?prov { ?a cv:draftedBy ?draftedBy } }
optional { graph ?prov { ?a cv:reviewedBy ?reviewer } }
optional { graph ?prov { ?a prov:wasDerivedFrom ?receipt } }
optional { graph ?prov { ?a cv:exportedWith ?exportedWith } }
}
}
values (?k ?Property_noheader ?ord) {
(\"theory\" \"Theory:\" 1)
(\"dimension\" \"Dimension:\" 2)
(\"position\" \"Position:\" 3)
(\"polarity\" \"Polarity:\" 4)
(\"statement\" \"Claim:\" 5)
(\"form\" \"Statement form:\" 6)
(\"source\" \"Source:\" 7)
(\"drafted\" \"Drafted by:\" 8)
(\"reviewer\" \"Reviewed by:\" 9)
(\"receipt\" \"Receipt:\" 10)
(\"exported\" \"Exported with:\" 11)
(\"identifier\" \"Identifier:\" 12)
(\"np\" \"Published:\" 13)
}
optional {
filter(?k = \"source\")
graph ?a { ?_claim_multi_iri cv:restsOn ?loc . ?loc dct:source ?doc . }
optional { graph ?a { ?loc cv:pageLocator ?page } }
}
optional {
filter(?k = \"reviewer\")
graph ?rg { ?reviewer foaf:name ?reviewerName }
}
bind(if(?k = \"theory\", str(?theory),
if(?k = \"dimension\", ?dimL,
if(?k = \"position\", ?posL,
if(?k = \"polarity\", ?polL,
if(?k = \"statement\", if(bound(?statement), str(?statement), \"\"),
if(?k = \"form\", ?formL,
if(?k = \"source\", if(bound(?doc), str(?doc), \"\"),
if(?k = \"drafted\", if(bound(?draftedBy), str(?draftedBy), \"\"),
if(?k = \"reviewer\", if(bound(?reviewer), str(?reviewer), \"\"),
if(?k = \"receipt\", if(bound(?receipt), str(?receipt), \"\"),
if(?k = \"exported\", if(bound(?exportedWith), str(?exportedWith), \"\"),
if(?k = \"identifier\", if(bound(?identifier), str(?identifier), \"\"), str(?np))))))))))))) as ?Value_noheader)
bind(if(?k = \"theory\", ?theoryL,
if(?k = \"source\", replace(if(bound(?doc), str(?doc), \"\"), \"^https?://(dx[.])?doi[.]org/\", \"\"),
if(?k = \"reviewer\", coalesce(?reviewerName, \"\"),
if(?k = \"receipt\", replace(str(?receipt), \"^.*/\", \"\"),
if(?k = \"np\", substr(str(?date), 1, 10), \"\"))))) as ?lbl)
bind(if(?k = \"source\" && bound(?page), str(?page), \"\") as ?pageL0)
bind(if(?pageL0 != \"\", ?pageL0, ?noPage) as ?pageL)
filter(?Value_noheader != \"\")
} group by ?ord ?Property_noheader ?Value_noheader
}
bind(if(?pages != \"\", concat(?lblMin, \" (\", ?pages, \")\"), ?lblMin) as ?Value_label)
}
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.848+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-claim-info;
rdfs:label "Get the details of a Consilience theory claim";
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 "eIm6sKE86FcWCUThYvCnVNeaoycL+WB718fsfjb2LtMaN4RLh5KJNxndA0WQnJaaAXWlp7oeBEEgx2Z+UHQ+XJb3VUgmfVck3Wc5lpCgNvxNNWzVyQSJEjTmGURHH8ICSLymIR/03dDSymEc2xA04X/jhYq3CgJZAwSZY/O3X+8=";
npx:hasSignatureTarget this:;
npx:signedBy orcid:0000-0002-1267-0234 .
}