[
{
"@id": "https://w3id.org/np/RA-cBLgdXqlLMCBAB-YWDIco2WyioIHuOA_GQX5ipOW6s/provenance",
"@graph": [
{
"@id": "https://w3id.org/np/RA-cBLgdXqlLMCBAB-YWDIco2WyioIHuOA_GQX5ipOW6s/assertion",
"http://www.w3.org/ns/prov#wasAttributedTo": [
{
"@id": "https://orcid.org/0000-0002-1267-0234"
}
]
}
]
},
{
"@id": "https://w3id.org/np/RA-cBLgdXqlLMCBAB-YWDIco2WyioIHuOA_GQX5ipOW6s/assertion",
"@graph": [
{
"@id": "https://w3id.org/np/RA-cBLgdXqlLMCBAB-YWDIco2WyioIHuOA_GQX5ipOW6s/get-trust-network-overview-svg",
"http://purl.org/dc/terms/description": [
{
"@value": "Returns a single result row with one 'svg' column holding a complete SVG diagram of the whole trust network of the nanopublication ecosystem, computed entirely from the current trust state. This is the query behind the 'Trust network overview' SVG view (gen:SvgView). Every agent in the trust state is drawn as one equally sized tilted square, using the same tilt as the profile-picture mask (a square rotated by about 14 degrees, not a 45-degree diamond), linking root-relatively (/user?id=...) to that agent's user page and carrying an SVG title element, so hovering a node shows the agent's canonical name from the trust state (falling back to the agent IRI for the few agents that have no foaf:name). Agents are grouped into horizontal bands by their minimum depth from the trust seed, spaced one empty row apart; within a band they are ordered by the number of agents they endorsed, descending, and laid out left-aligned at a fixed spacing, wrapping onto as many rows as the band needs. The highest-endorsing agents therefore sit at the left of each band. A line is drawn for every endorsement between two distinct agents, so the fan below an agent shows the agents it brought into the network. Node color encodes depth, with bot and software agents in purple, contested agents in red and skipped (rejected) agents in gray; where these overlap, the contested and skipped colors win over the bot color. The bot set is read authoritatively from the npx:Bot / npx:SoftwareAgent types via a single federated sub-select against the full repository that shares no variables with the rest of the query, so it is evaluated once rather than per node. The diagram carries no title, caption or labels: it is a pure node-and-link rendering meant to sit under the view's own heading, and its height adapts to the number of rows needed. The query reads npa:EndorsementLink nodes (npa:fromAgent / npa:toAgent) together with the npa:AccountState rows of the current trust state, so it needs no federated SERVICE call and no scan of the full repository. Per-pubkey duplicate rows are collapsed to one node per agent, self-endorsements across an agent's own keys are not drawn as edges, and positions come from rank subqueries, so the output is deterministic. The 'resource' parameter is the page the view is shown on; it is not used by the diagram, which always shows the whole network."
}
],
"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 trust network overview diagram as SVG"
}
],
"https://w3id.org/kpxl/grlc/endpoint": [
{
"@id": "https://w3id.org/np/l/nanopub-query-1.1/repo/trust"
}
],
"https://w3id.org/kpxl/grlc/sparql": [
{
"@value": "prefix npa: \nprefix xsd: \nprefix foaf: \nprefix npx: \nselect (concat(\n \"\") as ?svg) where {\n bind(?_resource_iri as ?pageResource)\n\n { select (((30 + (?nd - 1) * 16) + ?totalRows * 16 + 20) as ?h) where {\n { select (sum(?rr) as ?totalRows) (count(*) as ?nd) where {\n { select ?dh (count(*) as ?ch) where {\n { select ?aH (min(?dH) as ?depH) where {\n npa:thisRepo npa:hasCurrentTrustState ?tsH .\n graph ?tsH { ?stH a npa:AccountState ; npa:agent ?aH ; npa:depth ?dH }\n } group by ?aH }\n bind(?depH as ?dh)\n } group by ?dh }\n bind(xsd:integer(ceil(?ch / 83)) as ?rr)\n } }\n } }\n\n { select (group_concat(?eline; separator=\"\") as ?edgesvg) where {\n { select ?aF ?depF ?outF\n ((14 + (?rankF - 1 - ?rowF * 83) * 14 + 7) as ?xF)\n ((30 + (?depF - 1) * 16 + (?rowsBeforeF + ?rowF) * 16) as ?yF) where {\n { select ?aF ?depF ?outF (count(distinct ?a2F) as ?rankF) where {\n { select ?aFa (min(?dFa) as ?depFa) (count(distinct ?tFa) as ?outFa) where {\n npa:thisRepo npa:hasCurrentTrustState ?tsFa .\n graph ?tsFa { ?stFa a npa:AccountState ; npa:agent ?aFa ; npa:depth ?dFa }\n optional { graph ?tsFa { ?lFa a npa:EndorsementLink ; npa:fromAgent ?aFa ; npa:toAgent ?tFa } }\n } group by ?aFa }\n bind(str(1000 - ?outFa) as ?pnFa)\n bind(concat(substr(concat(\"0000\", ?pnFa), strlen(?pnFa) + 1), str(?aFa)) as ?kFa)\n bind(?aFa as ?aF) bind(?depFa as ?depF) bind(?outFa as ?outF)\n { select ?aFb (min(?dFb) as ?depFb) (count(distinct ?tFb) as ?outFb) where {\n npa:thisRepo npa:hasCurrentTrustState ?tsFb .\n graph ?tsFb { ?stFb a npa:AccountState ; npa:agent ?aFb ; npa:depth ?dFb }\n optional { graph ?tsFb { ?lFb a npa:EndorsementLink ; npa:fromAgent ?aFb ; npa:toAgent ?tFb } }\n } group by ?aFb }\n bind(str(1000 - ?outFb) as ?pnFb)\n bind(concat(substr(concat(\"0000\", ?pnFb), strlen(?pnFb) + 1), str(?aFb)) as ?kFb)\n bind(?aFb as ?a2F)\n filter(?depFb = ?depF && ?kFb <= ?kFa)\n } group by ?aF ?depF ?outF }\n bind(xsd:integer(floor((?rankF - 1) / 83)) as ?rowF)\n { select ?depRF (sum(?r2F) as ?rowsBeforeF) where {\n { select ?dAF (count(*) as ?cAF) where {\n { select ?aFp (min(?dFp) as ?depFp) where {\n npa:thisRepo npa:hasCurrentTrustState ?tsFp .\n graph ?tsFp { ?stFp a npa:AccountState ; npa:agent ?aFp ; npa:depth ?dFp }\n } group by ?aFp }\n bind(?depFp as ?dAF)\n } group by ?dAF }\n bind(?dAF as ?depRF)\n { select ?dBF (count(*) as ?cBF) where {\n { select ?aFq (min(?dFq) as ?depFq) where {\n npa:thisRepo npa:hasCurrentTrustState ?tsFq .\n graph ?tsFq { ?stFq a npa:AccountState ; npa:agent ?aFq ; npa:depth ?dFq }\n } group by ?aFq }\n bind(?depFq as ?dBF)\n } group by ?dBF }\n filter(?dBF <= ?depRF)\n bind(if(?dBF = ?depRF, 0, xsd:integer(ceil(?cBF / 83))) as ?r2F)\n } group by ?depRF }\n filter(?depRF = ?depF)\n } }\n { select ?aT ?depT ?outT\n ((14 + (?rankT - 1 - ?rowT * 83) * 14 + 7) as ?xT)\n ((30 + (?depT - 1) * 16 + (?rowsBeforeT + ?rowT) * 16) as ?yT) where {\n { select ?aT ?depT ?outT (count(distinct ?a2T) as ?rankT) where {\n { select ?aTa (min(?dTa) as ?depTa) (count(distinct ?tTa) as ?outTa) where {\n npa:thisRepo npa:hasCurrentTrustState ?tsTa .\n graph ?tsTa { ?stTa a npa:AccountState ; npa:agent ?aTa ; npa:depth ?dTa }\n optional { graph ?tsTa { ?lTa a npa:EndorsementLink ; npa:fromAgent ?aTa ; npa:toAgent ?tTa } }\n } group by ?aTa }\n bind(str(1000 - ?outTa) as ?pnTa)\n bind(concat(substr(concat(\"0000\", ?pnTa), strlen(?pnTa) + 1), str(?aTa)) as ?kTa)\n bind(?aTa as ?aT) bind(?depTa as ?depT) bind(?outTa as ?outT)\n { select ?aTb (min(?dTb) as ?depTb) (count(distinct ?tTb) as ?outTb) where {\n npa:thisRepo npa:hasCurrentTrustState ?tsTb .\n graph ?tsTb { ?stTb a npa:AccountState ; npa:agent ?aTb ; npa:depth ?dTb }\n optional { graph ?tsTb { ?lTb a npa:EndorsementLink ; npa:fromAgent ?aTb ; npa:toAgent ?tTb } }\n } group by ?aTb }\n bind(str(1000 - ?outTb) as ?pnTb)\n bind(concat(substr(concat(\"0000\", ?pnTb), strlen(?pnTb) + 1), str(?aTb)) as ?kTb)\n bind(?aTb as ?a2T)\n filter(?depTb = ?depT && ?kTb <= ?kTa)\n } group by ?aT ?depT ?outT }\n bind(xsd:integer(floor((?rankT - 1) / 83)) as ?rowT)\n { select ?depRT (sum(?r2T) as ?rowsBeforeT) where {\n { select ?dAT (count(*) as ?cAT) where {\n { select ?aTp (min(?dTp) as ?depTp) where {\n npa:thisRepo npa:hasCurrentTrustState ?tsTp .\n graph ?tsTp { ?stTp a npa:AccountState ; npa:agent ?aTp ; npa:depth ?dTp }\n } group by ?aTp }\n bind(?depTp as ?dAT)\n } group by ?dAT }\n bind(?dAT as ?depRT)\n { select ?dBT (count(*) as ?cBT) where {\n { select ?aTq (min(?dTq) as ?depTq) where {\n npa:thisRepo npa:hasCurrentTrustState ?tsTq .\n graph ?tsTq { ?stTq a npa:AccountState ; npa:agent ?aTq ; npa:depth ?dTq }\n } group by ?aTq }\n bind(?depTq as ?dBT)\n } group by ?dBT }\n filter(?dBT <= ?depRT)\n bind(if(?dBT = ?depRT, 0, xsd:integer(ceil(?cBT / 83))) as ?r2T)\n } group by ?depRT }\n filter(?depRT = ?depT)\n } }\n { select distinct ?aF ?aT where {\n npa:thisRepo npa:hasCurrentTrustState ?tsE .\n graph ?tsE { ?lE a npa:EndorsementLink ; npa:fromAgent ?aF ; npa:toAgent ?aT }\n filter(?aF != ?aT)\n } }\n bind(concat(\"\") as ?eline)\n } }\n\n { select (group_concat(?nline; separator=\"\") as ?nodesvg) where {\n { select ?aN ?depN ?outN\n ((14 + (?rankN - 1 - ?rowN * 83) * 14 + 7) as ?xN)\n ((30 + (?depN - 1) * 16 + (?rowsBeforeN + ?rowN) * 16) as ?yN) where {\n { select ?aN ?depN ?outN (count(distinct ?a2N) as ?rankN) where {\n { select ?aNa (min(?dNa) as ?depNa) (count(distinct ?tNa) as ?outNa) where {\n npa:thisRepo npa:hasCurrentTrustState ?tsNa .\n graph ?tsNa { ?stNa a npa:AccountState ; npa:agent ?aNa ; npa:depth ?dNa }\n optional { graph ?tsNa { ?lNa a npa:EndorsementLink ; npa:fromAgent ?aNa ; npa:toAgent ?tNa } }\n } group by ?aNa }\n bind(str(1000 - ?outNa) as ?pnNa)\n bind(concat(substr(concat(\"0000\", ?pnNa), strlen(?pnNa) + 1), str(?aNa)) as ?kNa)\n bind(?aNa as ?aN) bind(?depNa as ?depN) bind(?outNa as ?outN)\n { select ?aNb (min(?dNb) as ?depNb) (count(distinct ?tNb) as ?outNb) where {\n npa:thisRepo npa:hasCurrentTrustState ?tsNb .\n graph ?tsNb { ?stNb a npa:AccountState ; npa:agent ?aNb ; npa:depth ?dNb }\n optional { graph ?tsNb { ?lNb a npa:EndorsementLink ; npa:fromAgent ?aNb ; npa:toAgent ?tNb } }\n } group by ?aNb }\n bind(str(1000 - ?outNb) as ?pnNb)\n bind(concat(substr(concat(\"0000\", ?pnNb), strlen(?pnNb) + 1), str(?aNb)) as ?kNb)\n bind(?aNb as ?a2N)\n filter(?depNb = ?depN && ?kNb <= ?kNa)\n } group by ?aN ?depN ?outN }\n bind(xsd:integer(floor((?rankN - 1) / 83)) as ?rowN)\n { select ?depRN (sum(?r2N) as ?rowsBeforeN) where {\n { select ?dAN (count(*) as ?cAN) where {\n { select ?aNp (min(?dNp) as ?depNp) where {\n npa:thisRepo npa:hasCurrentTrustState ?tsNp .\n graph ?tsNp { ?stNp a npa:AccountState ; npa:agent ?aNp ; npa:depth ?dNp }\n } group by ?aNp }\n bind(?depNp as ?dAN)\n } group by ?dAN }\n bind(?dAN as ?depRN)\n { select ?dBN (count(*) as ?cBN) where {\n { select ?aNq (min(?dNq) as ?depNq) where {\n npa:thisRepo npa:hasCurrentTrustState ?tsNq .\n graph ?tsNq { ?stNq a npa:AccountState ; npa:agent ?aNq ; npa:depth ?dNq }\n } group by ?aNq }\n bind(?depNq as ?dBN)\n } group by ?dBN }\n filter(?dBN <= ?depRN)\n bind(if(?dBN = ?depRN, 0, xsd:integer(ceil(?cBN / 83))) as ?r2N)\n } group by ?depRN }\n filter(?depRN = ?depN)\n } }\n { select (concat(\" \", group_concat(distinct str(?bot); separator=\" \"), \" \") as ?bots) where {\n service {\n graph ?bg { ?bot a ?bt }\n filter(?bt in (npx:Bot, npx:SoftwareAgent))\n }\n } }\n { select ?aN (min(?statN0) as ?statN) (min(?nmN0) as ?nmN) where {\n npa:thisRepo npa:hasCurrentTrustState ?tsN .\n graph ?tsN { ?stN0 a npa:AccountState ; npa:agent ?aN ; npa:trustStatus ?statN0 }\n optional { graph ?tsN { ?aN foaf:name ?nmN0 } }\n } group by ?aN }\n bind(contains(?bots, concat(\" \", str(?aN), \" \")) as ?isBot)\n bind(if(?statN = npa:contested, \"#c8553d\",\n if(?statN = npa:skipped, \"#8a8a8a\",\n if(?isBot, \"#8a4fbd\",\n if(?depN = 1, \"#0d4f8b\",\n if(?depN = 2, \"#2f7fc4\",\n if(?depN = 3, \"#5fa3da\",\n if(?depN = 4, \"#8fc0e8\", \"#bcd9f0\"))))))) as ?fill)\n bind(coalesce(?nmN, str(?aN)) as ?lbl0)\n bind(replace(replace(replace(?lbl0, \"&\", \"&\"), \"<\", \"<\"), \">\", \">\") as ?lbl)\n bind(concat(\n \"\",\n \"\", ?lbl, \"\",\n \"\") as ?nline)\n } }\n}"
}
]
}
]
},
{
"@id": "https://w3id.org/np/RA-cBLgdXqlLMCBAB-YWDIco2WyioIHuOA_GQX5ipOW6s/pubinfo",
"@graph": [
{
"@id": "https://orcid.org/0000-0002-1267-0234",
"http://xmlns.com/foaf/0.1/name": [
{
"@value": "Tobias Kuhn"
}
]
},
{
"@id": "https://w3id.org/np/RA-cBLgdXqlLMCBAB-YWDIco2WyioIHuOA_GQX5ipOW6s",
"http://purl.org/dc/terms/created": [
{
"@value": "2026-08-25T17:31:25Z",
"@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/RA-cBLgdXqlLMCBAB-YWDIco2WyioIHuOA_GQX5ipOW6s/get-trust-network-overview-svg"
}
],
"http://purl.org/nanopub/x/supersedes": [
{
"@id": "https://w3id.org/np/RAcG9gFPABh6LdhhKr6Ynkqu_knANCghMjjzrl6ZTQ7p0"
}
],
"http://www.w3.org/2000/01/rdf-schema#label": [
{
"@value": "Get trust network overview diagram as SVG"
}
],
"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/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI"
}
],
"https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate": [
{
"@id": "https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k"
}
]
},
{
"@id": "https://w3id.org/np/RA-cBLgdXqlLMCBAB-YWDIco2WyioIHuOA_GQX5ipOW6s/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": "Fj2KumvziIhM+DFpPmAidv8PzT4ItomwN2GPxm+9Z8a9TnRfkZyCMtP8m6qcNpLKL8ez3tPhvgbAPyV5aopb6Q0u1JsCy2w7oxOMxB5ge/bGQjgGdjTp5QqH3jh5k/nEKLkYF9gKFnhjOgDkDG+GjgAxC98csHh3PPuM5lxFycc="
}
],
"http://purl.org/nanopub/x/hasSignatureTarget": [
{
"@id": "https://w3id.org/np/RA-cBLgdXqlLMCBAB-YWDIco2WyioIHuOA_GQX5ipOW6s"
}
],
"http://purl.org/nanopub/x/signedBy": [
{
"@id": "https://orcid.org/0000-0002-1267-0234"
}
]
}
]
},
{
"@id": "https://w3id.org/np/RA-cBLgdXqlLMCBAB-YWDIco2WyioIHuOA_GQX5ipOW6s/Head",
"@graph": [
{
"@id": "https://w3id.org/np/RA-cBLgdXqlLMCBAB-YWDIco2WyioIHuOA_GQX5ipOW6s",
"http://www.nanopub.org/nschema#hasAssertion": [
{
"@id": "https://w3id.org/np/RA-cBLgdXqlLMCBAB-YWDIco2WyioIHuOA_GQX5ipOW6s/assertion"
}
],
"http://www.nanopub.org/nschema#hasProvenance": [
{
"@id": "https://w3id.org/np/RA-cBLgdXqlLMCBAB-YWDIco2WyioIHuOA_GQX5ipOW6s/provenance"
}
],
"http://www.nanopub.org/nschema#hasPublicationInfo": [
{
"@id": "https://w3id.org/np/RA-cBLgdXqlLMCBAB-YWDIco2WyioIHuOA_GQX5ipOW6s/pubinfo"
}
],
"@type": [
"http://www.nanopub.org/nschema#Nanopublication"
]
}
]
}
]