Computes an SVG summary diagram of a FAIR project: the activities that produced its results on the left and the outputs they yielded on the right, the evidence and arguments those activities generated above them, the higher-level statements that evidence supports above that, and the people and their institutions below. Evidence and activities are grouped by type; outputs, people and institutions by kind and role. Every box links to the resource it stands for, on its part page within the project space.
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix dct: <http://purl.org/dc/terms/> prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix gen: <https://w3id.org/kpxl/gen/terms/> prefix ff: <https://w3id.org/fair/ff/terms/> prefix obo: <http://purl.obolibrary.org/obo/> prefix hycl: <http://purl.org/petapico/o/hycl#> prefix cito: <http://purl.org/spar/cito/> prefix foaf: <http://xmlns.com/foaf/0.1/> prefix prov: <http://www.w3.org/ns/prov#> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix skos: <http://www.w3.org/2004/02/skos/core#> prefix wd: <http://www.wikidata.org/entity/> select (concat( ' ?nout, ?nact, ?nout)) * 20 + 14) + 26) + (floor((?nppl + 3) / 4) * 20 + 14) + 26) + (floor((?ninst + 1) / 2) * 20 + 14) + 12)), '" width="1393" height="', str(round(((((((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) + ((if(?nact > ?nout, ?nact, ?nout)) * 20 + 14) + 26) + (floor((?nppl + 3) / 4) * 20 + 14) + 26) + (floor((?ninst + 1) / 2) * 20 + 14) + 12)) * 8 / 5)), '" font-family="Noto Emoji, Inter, Verdana, Helvetica, sans-serif">', ?theader, ?dheader, '<text x="22" y="', str(?hd - 8), '" font-size="11" font-weight="bold" fill="#444">💡 Knowledge</text>', '<rect x="10" y="', str(?hd), '" width="851" height="', str((floor((?nkno + 0) / 1) * 20 + 14)), '" rx="4" fill="#f4f4f4" stroke="#888"></rect>', '<g transform="translate(22,', str(?hd + 6), ')">', ?boxeskno, '</g>', '<text x="22" y="', str((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) - 8), '" font-size="11" font-weight="bold" fill="#444">⚖ Evidence & Arguments</text>', '<rect x="10" y="', str((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28)), '" width="850" height="', str((floor((?nev + 1) / 2) * 20 + 14)), '" rx="4" fill="#f4f4f4" stroke="#888"></rect>', '<g transform="translate(22,', str((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + 6), ')">', ?boxesev, '</g>', '<text x="22" y="', str(((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) - 8), '" font-size="11" font-weight="bold" fill="#444">🔬 Activities</text>', '<rect x="10" y="', str(((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28)), '" width="409" height="', str(((if(?nact > ?nout, ?nact, ?nout)) * 20 + 14)), '" rx="4" fill="#f4f4f4" stroke="#888"></rect>', '<g transform="translate(22,', str(((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) + 6), ')">', ?boxesact, '</g>', '<text x="463" y="', str(((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) - 8), '" font-size="11" font-weight="bold" fill="#444">📦 Outputs</text>', '<rect x="451" y="', str(((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28)), '" width="409" height="', str(((if(?nact > ?nout, ?nact, ?nout)) * 20 + 14)), '" rx="4" fill="#f4f4f4" stroke="#888"></rect>', '<g transform="translate(463,', str(((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) + 6), ')">', ?boxesout, '</g>', '<text x="23" y="', str((((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) + ((if(?nact > ?nout, ?nact, ?nout)) * 20 + 14) + 26) - 8), '" font-size="11" font-weight="bold" fill="#444">👥 People</text>', '<rect x="11" y="', str((((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) + ((if(?nact > ?nout, ?nact, ?nout)) * 20 + 14) + 26)), '" width="848" height="', str((floor((?nppl + 3) / 4) * 20 + 14)), '" rx="4" fill="#f4f4f4" stroke="#888"></rect>', '<g transform="translate(23,', str((((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) + ((if(?nact > ?nout, ?nact, ?nout)) * 20 + 14) + 26) + 6), ')">', ?boxesppl, '</g>', '<text x="22" y="', str(((((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) + ((if(?nact > ?nout, ?nact, ?nout)) * 20 + 14) + 26) + (floor((?nppl + 3) / 4) * 20 + 14) + 26) - 8), '" font-size="11" font-weight="bold" fill="#444">🏛 Institutions</text>', '<rect x="10" y="', str(((((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) + ((if(?nact > ?nout, ?nact, ?nout)) * 20 + 14) + 26) + (floor((?nppl + 3) / 4) * 20 + 14) + 26)), '" width="850" height="', str((floor((?ninst + 1) / 2) * 20 + 14)), '" rx="4" fill="#f4f4f4" stroke="#888"></rect>', '<g transform="translate(22,', str(((((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) + ((if(?nact > ?nout, ?nact, ?nout)) * 20 + 14) + 26) + (floor((?nppl + 3) / 4) * 20 + 14) + 26) + 6), ')">', ?boxesinst, '</g>', '<text x="435" y="', str((((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) + ((if(?nact > ?nout, ?nact, ?nout)) * 20 + 14) / 2) + 9), '" text-anchor="middle" font-size="30" fill="#888">➤</text>', '<text x="223" y="', str(((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) - 14), '" text-anchor="middle" font-size="30" fill="#888" transform="rotate(-90 223 ', str(((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) - 14), ')">➤</text>', '<text x="664" y="', str(((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) - 14), '" text-anchor="middle" font-size="30" fill="#888" transform="rotate(-90 664 ', str(((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) - 14), ')">➤</text>', '<text x="444" y="', str((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) - 14), '" text-anchor="middle" font-size="30" fill="#888" transform="rotate(-90 444 ', str((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) - 14), ')">➤</text>', '<text x="223" y="', str((((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) + ((if(?nact > ?nout, ?nact, ?nout)) * 20 + 14) + 26) - 13), '" text-anchor="middle" font-size="30" fill="#888" transform="rotate(-90 223 ', str((((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) + ((if(?nact > ?nout, ?nact, ?nout)) * 20 + 14) + 26) - 13), ')">➤</text>', '<text x="664" y="', str((((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) + ((if(?nact > ?nout, ?nact, ?nout)) * 20 + 14) + 26) - 13), '" text-anchor="middle" font-size="30" fill="#888" transform="rotate(-90 664 ', str((((?hd + (floor((?nkno + 0) / 1) * 20 + 14) + 28) + (floor((?nev + 1) / 2) * 20 + 14) + 28) + ((if(?nact > ?nout, ?nact, ?nout)) * 20 + 14) + 26) - 13), ')">➤</text>', ' ') as ?svg) where { { select (group_concat(distinct ?boxkno; separator="") as ?boxeskno) (count(*) as ?nkno) where { { select ?irikno ?lblkno ?icokno ?typkno ?rrankkno (count(distinct ?ltkno) as ?iykno) where { values ?_project_multi_iri {} { select ?irikno (min(?labelkno) as ?lblkno) (min(?iconkno) as ?icokno) (group_concat(distinct ?typekno; separator=", ") as ?typkno) (min(?rrkno) as ?rrankkno) where { values ?_project_multi_iri {} service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { select (group_concat(?mpk; separator=" ") as ?memberPubkeys) where { graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> npa:hasCurrentSpaceState ?stateG . } values ?_project_multi_iri {} graph ?stateG { ?_project_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType . filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } graph npa:graph { ?nprgkno np:hasAssertion ?argkno ; npa:hasValidSignatureForPublicKeyHash ?pkrgkno . filter not exists { ?ixrgkno npx:invalidates ?nprgkno ; npa:hasValidSignatureForPublicKeyHash ?pkrgkno . } filter not exists { ?sxrgkno npx:supersedes ?nprgkno . } } filter(contains(?memberPubkeys, ?pkrgkno)) graph ?argkno { ?irikno (hycl:hasMoreGeneralMeaningThan|^<https://w3id.org/np/RApY2x9ZrKtmpsW-ZINc1M1cvI9LYbmZ1-Gbgl3TEJsCI/proves>|gen:isRelevantFor) ?anchorkno . } graph npa:graph { ?npgnkno np:hasAssertion ?agnkno ; npa:hasValidSignatureForPublicKeyHash ?pkgnkno . filter not exists { ?ixgnkno npx:invalidates ?npgnkno ; npa:hasValidSignatureForPublicKeyHash ?pkgnkno . } filter not exists { ?sxgnkno npx:supersedes ?npgnkno . } } filter(contains(?memberPubkeys, ?pkgnkno)) graph ?agnkno { ?irikno (hycl:hasMoreGeneralMeaningThan|^<https://w3id.org/np/RApY2x9ZrKtmpsW-ZINc1M1cvI9LYbmZ1-Gbgl3TEJsCI/proves>) ?genkno . } optional { graph npa:graph { ?npfgkno np:hasAssertion ?afgkno ; npa:hasValidSignatureForPublicKeyHash ?pkfgkno . filter not exists { ?ixfgkno npx:invalidates ?npfgkno ; npa:hasValidSignatureForPublicKeyHash ?pkfgkno . } filter not exists { ?sxfgkno npx:supersedes ?npfgkno . } } filter(contains(?memberPubkeys, ?pkfgkno)) graph ?afgkno { ?anchorkno a hycl:AIDA-Sentence ; cito:obtainsSupportFrom ?supkno . } graph npa:graph { ?npsgkno np:hasAssertion ?asgkno ; npa:hasValidSignatureForPublicKeyHash ?pksgkno . filter not exists { ?ixsgkno npx:invalidates ?npsgkno ; npa:hasValidSignatureForPublicKeyHash ?pksgkno . } filter not exists { ?sxsgkno npx:supersedes ?npsgkno . } } filter(contains(?memberPubkeys, ?pksgkno)) graph ?asgkno { ?supkno a obo:OBI_0000066 ; dct:isPartOf ?_project_multi_iri . } } optional { graph npa:graph { ?nphgkno np:hasAssertion ?ahgkno ; npa:hasValidSignatureForPublicKeyHash ?pkhgkno . filter not exists { ?ixhgkno npx:invalidates ?nphgkno ; npa:hasValidSignatureForPublicKeyHash ?pkhgkno . } filter not exists { ?sxhgkno npx:supersedes ?nphgkno . } } filter(contains(?memberPubkeys, ?pkhgkno)) graph ?ahgkno { ?anchorkno cito:obtainsSupportFrom ?midkno . } graph npa:graph { ?npegkno np:hasAssertion ?aegkno ; npa:hasValidSignatureForPublicKeyHash ?pkegkno . filter not exists { ?ixegkno npx:invalidates ?npegkno ; npa:hasValidSignatureForPublicKeyHash ?pkegkno . } filter not exists { ?sxegkno npx:supersedes ?npegkno . } } filter(contains(?memberPubkeys, ?pkegkno)) graph ?aegkno { ?midkno prov:wasGeneratedBy ?viakno . } graph npa:graph { ?npvgkno np:hasAssertion ?avgkno ; npa:hasValidSignatureForPublicKeyHash ?pkvgkno . filter not exists { ?ixvgkno npx:invalidates ?npvgkno ; npa:hasValidSignatureForPublicKeyHash ?pkvgkno . } filter not exists { ?sxvgkno npx:supersedes ?npvgkno . } } filter(contains(?memberPubkeys, ?pkvgkno)) graph ?avgkno { ?viakno a obo:OBI_0000066 ; dct:isPartOf ?_project_multi_iri . } } optional { graph npa:graph { ?npqgkno np:hasAssertion ?aqgkno ; npa:hasValidSignatureForPublicKeyHash ?pkqgkno . filter not exists { ?ixqgkno npx:invalidates ?npqgkno ; npa:hasValidSignatureForPublicKeyHash ?pkqgkno . } filter not exists { ?sxqgkno npx:supersedes ?npqgkno . } } filter(contains(?memberPubkeys, ?pkqgkno)) graph ?aqgkno { ?anchorkno prov:wasGeneratedBy ?pstkno . } graph npa:graph { ?nppgkno np:hasAssertion ?apgkno ; npa:hasValidSignatureForPublicKeyHash ?pkpgkno . filter not exists { ?ixpgkno npx:invalidates ?nppgkno ; npa:hasValidSignatureForPublicKeyHash ?pkpgkno . } filter not exists { ?sxpgkno npx:supersedes ?nppgkno . } } filter(contains(?memberPubkeys, ?pkpgkno)) graph ?apgkno { ?pstkno a obo:OBI_0000066 ; dct:isPartOf ?_project_multi_iri . } } optional { graph npa:graph { ?npu1kno np:hasAssertion ?au1kno ; npa:hasValidSignatureForPublicKeyHash ?pku1kno . filter not exists { ?ixu1kno npx:invalidates ?npu1kno ; npa:hasValidSignatureForPublicKeyHash ?pku1kno . } filter not exists { ?sxu1kno npx:supersedes ?npu1kno . } } filter(contains(?memberPubkeys, ?pku1kno)) graph ?au1kno { ?anchorkno (hycl:hasMoreGeneralMeaningThan|^<https://w3id.org/np/RApY2x9ZrKtmpsW-ZINc1M1cvI9LYbmZ1-Gbgl3TEJsCI/proves>) ?upkno . } graph npa:graph { ?npu2kno np:hasAssertion ?au2kno ; npa:hasValidSignatureForPublicKeyHash ?pku2kno . filter not exists { ?ixu2kno npx:invalidates ?npu2kno ; npa:hasValidSignatureForPublicKeyHash ?pku2kno . } filter not exists { ?sxu2kno npx:supersedes ?npu2kno . } } filter(contains(?memberPubkeys, ?pku2kno)) graph ?au2kno { ?upkno cito:obtainsSupportFrom ?upsupkno . } graph npa:graph { ?npugkno np:hasAssertion ?augkno ; npa:hasValidSignatureForPublicKeyHash ?pkugkno . filter not exists { ?ixugkno npx:invalidates ?npugkno ; npa:hasValidSignatureForPublicKeyHash ?pkugkno . } filter not exists { ?sxugkno npx:supersedes ?npugkno . } } filter(contains(?memberPubkeys, ?pkugkno)) graph ?augkno { ?upsupkno a obo:OBI_0000066 ; dct:isPartOf ?_project_multi_iri . } } optional { graph npa:graph { ?npu3kno np:hasAssertion ?au3kno ; npa:hasValidSignatureForPublicKeyHash ?pku3kno . filter not exists { ?ixu3kno npx:invalidates ?npu3kno ; npa:hasValidSignatureForPublicKeyHash ?pku3kno . } filter not exists { ?sxu3kno npx:supersedes ?npu3kno . } } filter(contains(?memberPubkeys, ?pku3kno)) graph ?au3kno { ?anchorkno (hycl:hasMoreGeneralMeaningThan|^<https://w3id.org/np/RApY2x9ZrKtmpsW-ZINc1M1cvI9LYbmZ1-Gbgl3TEJsCI/proves>) ?uprkno . } graph npa:graph { ?npu4kno np:hasAssertion ?au4kno ; npa:hasValidSignatureForPublicKeyHash ?pku4kno . filter not exists { ?ixu4kno npx:invalidates ?npu4kno ; npa:hasValidSignatureForPublicKeyHash ?pku4kno . } filter not exists { ?sxu4kno npx:supersedes ?npu4kno . } } filter(contains(?memberPubkeys, ?pku4kno)) graph ?au4kno { ?uprkno gen:isRelevantFor ?_project_multi_iri . } } filter(strstarts(str(?irikno), "http://purl.org/aida/")) filter(?anchorkno = ?_project_multi_iri || bound(?supkno) || bound(?viakno) || bound(?pstkno) || bound(?upsupkno) || bound(?uprkno)) bind(replace(replace(replace(replace(replace(replace(strafter(str(?irikno), "http://purl.org/aida/"), "[+]", " "), "%2C", ","), "%3A", ":"), "%28", "("), "%29", ")"), "%25", "%") as ?labelkno) optional { graph npa:graph { ?nppvkno np:hasAssertion ?apvkno ; npa:hasValidSignatureForPublicKeyHash ?pkpvkno . filter not exists { ?ixpvkno npx:invalidates ?nppvkno ; npa:hasValidSignatureForPublicKeyHash ?pkpvkno . } filter not exists { ?sxpvkno npx:supersedes ?nppvkno . } } graph ?apvkno { ?anyproofkno <https://w3id.org/np/RApY2x9ZrKtmpsW-ZINc1M1cvI9LYbmZ1-Gbgl3TEJsCI/proves> ?irikno . } } bind(if(bound(?anyproofkno), "proved", "supported") as ?typekno) bind(0 as ?rrkno) bind(if(?typekno = "proved", "📐", "💡") as ?iconkno) } group by ?irikno } { select distinct ?okno ?orrkno where { values ?_project_multi_iri {} service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { select (group_concat(?mpk; separator=" ") as ?memberPubkeys) where { graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> npa:hasCurrentSpaceState ?stateG . } values ?_project_multi_iri {} graph ?stateG { ?_project_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType . filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } graph npa:graph { ?onprgkno np:hasAssertion ?oargkno ; npa:hasValidSignatureForPublicKeyHash ?opkrgkno . filter not exists { ?oixrgkno npx:invalidates ?onprgkno ; npa:hasValidSignatureForPublicKeyHash ?opkrgkno . } filter not exists { ?osxrgkno npx:supersedes ?onprgkno . } } filter(contains(?memberPubkeys, ?opkrgkno)) graph ?oargkno { ?okno (hycl:hasMoreGeneralMeaningThan|^<https://w3id.org/np/RApY2x9ZrKtmpsW-ZINc1M1cvI9LYbmZ1-Gbgl3TEJsCI/proves>|gen:isRelevantFor) ?oanchorkno . } graph npa:graph { ?onpgnkno np:hasAssertion ?oagnkno ; npa:hasValidSignatureForPublicKeyHash ?opkgnkno . filter not exists { ?oixgnkno npx:invalidates ?onpgnkno ; npa:hasValidSignatureForPublicKeyHash ?opkgnkno . } filter not exists { ?osxgnkno npx:supersedes ?onpgnkno . } } filter(contains(?memberPubkeys, ?opkgnkno)) graph ?oagnkno { ?okno (hycl:hasMoreGeneralMeaningThan|^<https://w3id.org/np/RApY2x9ZrKtmpsW-ZINc1M1cvI9LYbmZ1-Gbgl3TEJsCI/proves>) ?ogenkno . } optional { graph npa:graph { ?onpfgkno np:hasAssertion ?oafgkno ; npa:hasValidSignatureForPublicKeyHash ?opkfgkno . filter not exists { ?oixfgkno npx:invalidates ?onpfgkno ; npa:hasValidSignatureForPublicKeyHash ?opkfgkno . } filter not exists { ?osxfgkno npx:supersedes ?onpfgkno . } } filter(contains(?memberPubkeys, ?opkfgkno)) graph ?oafgkno { ?oanchorkno a hycl:AIDA-Sentence ; cito:obtainsSupportFrom ?osupkno . } graph npa:graph { ?onpsgkno np:hasAssertion ?oasgkno ; npa:hasValidSignatureForPublicKeyHash ?opksgkno . filter not exists { ?oixsgkno npx:invalidates ?onpsgkno ; npa:hasValidSignatureForPublicKeyHash ?opksgkno . } filter not exists { ?osxsgkno npx:supersedes ?onpsgkno . } } filter(contains(?memberPubkeys, ?opksgkno)) graph ?oasgkno { ?osupkno a obo:OBI_0000066 ; dct:isPartOf ?_project_multi_iri . } } optional { graph npa:graph { ?onphgkno np:hasAssertion ?oahgkno ; npa:hasValidSignatureForPublicKeyHash ?opkhgkno . filter not exists { ?oixhgkno npx:invalidates ?onphgkno ; npa:hasValidSignatureForPublicKeyHash ?opkhgkno . } filter not exists { ?osxhgkno npx:supersedes ?onphgkno . } } filter(contains(?memberPubkeys, ?opkhgkno)) graph ?oahgkno { ?oanchorkno cito:obtainsSupportFrom ?omidkno . } graph npa:graph { ?onpegkno np:hasAssertion ?oaegkno ; npa:hasValidSignatureForPublicKeyHash ?opkegkno . filter not exists { ?oixegkno npx:invalidates ?onpegkno ; npa:hasValidSignatureForPublicKeyHash ?opkegkno . } filter not exists { ?osxegkno npx:supersedes ?onpegkno . } } filter(contains(?memberPubkeys, ?opkegkno)) graph ?oaegkno { ?omidkno prov:wasGeneratedBy ?oviakno . } graph npa:graph { ?onpvgkno np:hasAssertion ?oavgkno ; npa:hasValidSignatureForPublicKeyHash ?opkvgkno . filter not exists { ?oixvgkno npx:invalidates ?onpvgkno ; npa:hasValidSignatureForPublicKeyHash ?opkvgkno . } filter not exists { ?osxvgkno npx:supersedes ?onpvgkno . } } filter(contains(?memberPubkeys, ?opkvgkno)) graph ?oavgkno { ?oviakno a obo:OBI_0000066 ; dct:isPartOf ?_project_multi_iri . } } optional { graph npa:graph { ?onpqgkno np:hasAssertion ?oaqgkno ; npa:hasValidSignatureForPublicKeyHash ?opkqgkno . filter not exists { ?oixqgkno npx:invalidates ?onpqgkno ; npa:hasValidSignatureForPublicKeyHash ?opkqgkno . } filter not exists { ?osxqgkno npx:supersedes ?onpqgkno . } } filter(contains(?memberPubkeys, ?opkqgkno)) graph ?oaqgkno { ?oanchorkno prov:wasGeneratedBy ?opstkno . } graph npa:graph { ?onppgkno np:hasAssertion ?oapgkno ; npa:hasValidSignatureForPublicKeyHash ?opkpgkno . filter not exists { ?oixpgkno npx:invalidates ?onppgkno ; npa:hasValidSignatureForPublicKeyHash ?opkpgkno . } filter not exists { ?osxpgkno npx:supersedes ?onppgkno . } } filter(contains(?memberPubkeys, ?opkpgkno)) graph ?oapgkno { ?opstkno a obo:OBI_0000066 ; dct:isPartOf ?_project_multi_iri . } } optional { graph npa:graph { ?onpu1kno np:hasAssertion ?oau1kno ; npa:hasValidSignatureForPublicKeyHash ?opku1kno . filter not exists { ?oixu1kno npx:invalidates ?onpu1kno ; npa:hasValidSignatureForPublicKeyHash ?opku1kno . } filter not exists { ?osxu1kno npx:supersedes ?onpu1kno . } } filter(contains(?memberPubkeys, ?opku1kno)) graph ?oau1kno { ?oanchorkno (hycl:hasMoreGeneralMeaningThan|^<https://w3id.org/np/RApY2x9ZrKtmpsW-ZINc1M1cvI9LYbmZ1-Gbgl3TEJsCI/proves>) ?oupkno . } graph npa:graph { ?onpu2kno np:hasAssertion ?oau2kno ; npa:hasValidSignatureForPublicKeyHash ?opku2kno . filter not exists { ?oixu2kno npx:invalidates ?onpu2kno ; npa:hasValidSignatureForPublicKeyHash ?opku2kno . } filter not exists { ?osxu2kno npx:supersedes ?onpu2kno . } } filter(contains(?memberPubkeys, ?opku2kno)) graph ?oau2kno { ?oupkno cito:obtainsSupportFrom ?oupsupkno . } graph npa:graph { ?onpugkno np:hasAssertion ?oaugkno ; npa:hasValidSignatureForPublicKeyHash ?opkugkno . filter not exists { ?oixugkno npx:invalidates ?onpugkno ; npa:hasValidSignatureForPublicKeyHash ?opkugkno . } filter not exists { ?osxugkno npx:supersedes ?onpugkno . } } filter(contains(?memberPubkeys, ?opkugkno)) graph ?oaugkno { ?oupsupkno a obo:OBI_0000066 ; dct:isPartOf ?_project_multi_iri . } } optional { graph npa:graph { ?onpu3kno np:hasAssertion ?oau3kno ; npa:hasValidSignatureForPublicKeyHash ?opku3kno . filter not exists { ?oixu3kno npx:invalidates ?onpu3kno ; npa:hasValidSignatureForPublicKeyHash ?opku3kno . } filter not exists { ?osxu3kno npx:supersedes ?onpu3kno . } } filter(contains(?memberPubkeys, ?opku3kno)) graph ?oau3kno { ?oanchorkno (hycl:hasMoreGeneralMeaningThan|^<https://w3id.org/np/RApY2x9ZrKtmpsW-ZINc1M1cvI9LYbmZ1-Gbgl3TEJsCI/proves>) ?ouprkno . } graph npa:graph { ?onpu4kno np:hasAssertion ?oau4kno ; npa:hasValidSignatureForPublicKeyHash ?opku4kno . filter not exists { ?oixu4kno npx:invalidates ?onpu4kno ; npa:hasValidSignatureForPublicKeyHash ?opku4kno . } filter not exists { ?osxu4kno npx:supersedes ?onpu4kno . } } filter(contains(?memberPubkeys, ?opku4kno)) graph ?oau4kno { ?ouprkno gen:isRelevantFor ?_project_multi_iri . } } filter(strstarts(str(?okno), "http://purl.org/aida/")) filter(?oanchorkno = ?_project_multi_iri || bound(?osupkno) || bound(?oviakno) || bound(?opstkno) || bound(?oupsupkno) || bound(?ouprkno)) bind(0 as ?orrkno) } } bind(if(concat(str(?orrkno), "|", str(?okno)) < concat(str(?rrankkno), "|", str(?irikno)), ?okno, ?nonekno) as ?ltkno) } group by ?irikno ?lblkno ?icokno ?typkno ?rrankkno } bind((?iykno - floor(?iykno / 1) * 1) * 843 as ?bxkno) bind(floor(?iykno / 1) * 20 as ?bykno) bind(xsd:integer(floor((827 - 26 - strlen(?typkno) * 4.6) / 5.15)) as ?cap0kno) bind(if(?cap0kno < 8, 8, ?cap0kno) as ?capkno) bind(if(strlen(?lblkno) > ?capkno, concat(substr(?lblkno, 1, ?capkno - 1), "…"), ?lblkno) as ?tkno) bind(replace(replace(replace(?tkno, "&", "&"), "<", "<"), ">", ">") as ?esckno) bind(replace(replace(replace(?lblkno, "&", "&"), "<", "<"), ">", ">") as ?fullkno) bind(concat('<text x="', str(?bxkno), '" y="', str(?bykno + 12), '" font-size="10" fill="#111">', '', ' ', ?fullkno, ' <tspan>', ?icokno, ' ', ?esckno, '</tspan>', '<tspan dx="9" font-size="9">', ?typkno, '</tspan></text>') as ?boxkno) } } { select (group_concat(distinct ?boxev; separator="") as ?boxesev) (count(*) as ?nev) where { { select ?iriev ?lblev ?icoev ?typev ?rrankev (count(distinct ?ltev) as ?iyev) where { values ?_project_multi_iri {} { select ?iriev (min(?labelev) as ?lblev) (min(?iconev) as ?icoev) (group_concat(distinct ?typeev; separator=", ") as ?typev) (min(?rrev) as ?rrankev) where { values ?_project_multi_iri {} service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { select (group_concat(?mpk; separator=" ") as ?memberPubkeys) where { graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> npa:hasCurrentSpaceState ?stateG . } values ?_project_multi_iri {} graph ?stateG { ?_project_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType . filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } graph npa:graph { ?npsev np:hasAssertion ?asev ; npa:hasValidSignatureForPublicKeyHash ?pksev . filter not exists { ?ixsev npx:invalidates ?npsev ; npa:hasValidSignatureForPublicKeyHash ?pksev . } filter not exists { ?sxsev npx:supersedes ?npsev . } } filter(contains(?memberPubkeys, ?pksev)) graph ?asev { ?studyev a obo:OBI_0000066 ; dct:isPartOf ?_project_multi_iri . } graph npa:graph { ?npev np:hasAssertion ?aev ; np:hasPublicationInfo ?piev ; npa:hasValidSignatureForPublicKeyHash ?pkev . filter not exists { ?ixev npx:invalidates ?npev ; npa:hasValidSignatureForPublicKeyHash ?pkev . } filter not exists { ?sxev npx:supersedes ?npev . } } filter(contains(?memberPubkeys, ?pkev)) graph ?aev { ?iriev a ?baseev ; prov:wasGeneratedBy ?studyev . values ?baseev { obo:ECO_0000000 wd:Q11538 } } optional { graph ?aev { ?iriev rdfs:label ?laev } } optional { graph ?aev { ?iriev a ?subev . filter(?subev != obo:ECO_0000000 && strstarts(str(?subev), "http://purl.obolibrary.org/obo/ECO_")) } graph ?piev { ?subev rdfs:label ?sublev } } bind(coalesce(?laev, replace(str(?iriev), "^.*[/#]", "")) as ?labelev) bind(coalesce(?sublev, if(?baseev = wd:Q11538, "proof", "evidence")) as ?typeev) bind(coalesce(?sublev, if(?baseev = wd:Q11538, "proof", "evidence")) as ?rrev) bind(if(?typeev = "proof", "📐", if(contains(?typeev, "combinatorial"), "🧩", if(contains(?typeev, "similarity"), "🧬", if(contains(?typeev, "computational"), "🖥", if(contains(?typeev, "documented"), "📑", if(contains(?typeev, "high throughput"), "🧫", if(contains(?typeev, "inferential"), "🧠", "🔎"))))))) as ?iconev) } group by ?iriev } { select distinct ?oev ?orrev where { values ?_project_multi_iri {} service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { select (group_concat(?mpk; separator=" ") as ?memberPubkeys) where { graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> npa:hasCurrentSpaceState ?stateG . } values ?_project_multi_iri {} graph ?stateG { ?_project_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType . filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } graph npa:graph { ?onpsev np:hasAssertion ?oasev ; npa:hasValidSignatureForPublicKeyHash ?opksev . filter not exists { ?oixsev npx:invalidates ?onpsev ; npa:hasValidSignatureForPublicKeyHash ?opksev . } filter not exists { ?osxsev npx:supersedes ?onpsev . } } filter(contains(?memberPubkeys, ?opksev)) graph ?oasev { ?ostudyev a obo:OBI_0000066 ; dct:isPartOf ?_project_multi_iri . } graph npa:graph { ?onpev np:hasAssertion ?oaev ; np:hasPublicationInfo ?opiev ; npa:hasValidSignatureForPublicKeyHash ?opkev . filter not exists { ?oixev npx:invalidates ?onpev ; npa:hasValidSignatureForPublicKeyHash ?opkev . } filter not exists { ?osxev npx:supersedes ?onpev . } } filter(contains(?memberPubkeys, ?opkev)) graph ?oaev { ?oev a ?obaseev ; prov:wasGeneratedBy ?ostudyev . values ?obaseev { obo:ECO_0000000 wd:Q11538 } } optional { graph ?oaev { ?oev a ?osubev . filter(?osubev != obo:ECO_0000000 && strstarts(str(?osubev), "http://purl.obolibrary.org/obo/ECO_")) } graph ?opiev { ?osubev rdfs:label ?osublev } } bind(coalesce(?osublev, if(?obaseev = wd:Q11538, "proof", "evidence")) as ?orrev) } } bind(if(concat(str(?orrev), "|", str(?oev)) < concat(str(?rrankev), "|", str(?iriev)), ?oev, ?noneev) as ?ltev) } group by ?iriev ?lblev ?icoev ?typev ?rrankev } bind((?iyev - floor(?iyev / 2) * 2) * 421 as ?bxev) bind(floor(?iyev / 2) * 20 as ?byev) bind(xsd:integer(floor((405 - 26 - strlen(?typev) * 4.6) / 5.15)) as ?cap0ev) bind(if(?cap0ev < 8, 8, ?cap0ev) as ?capev) bind(if(strlen(?lblev) > ?capev, concat(substr(?lblev, 1, ?capev - 1), "…"), ?lblev) as ?tev) bind(replace(replace(replace(?tev, "&", "&"), "<", "<"), ">", ">") as ?escev) bind(replace(replace(replace(?lblev, "&", "&"), "<", "<"), ">", ">") as ?fullev) bind(concat('<text x="', str(?bxev), '" y="', str(?byev + 12), '" font-size="10" fill="#111">', '', ' ', ?fullev, ' <tspan>', ?icoev, ' ', ?escev, '</tspan>', '<tspan dx="9" font-size="9">', ?typev, '</tspan></text>') as ?boxev) } } { select (group_concat(distinct ?boxact; separator="") as ?boxesact) (count(*) as ?nact) where { { select ?iriact ?lblact ?icoact ?typact ?rrankact (count(distinct ?ltact) as ?iyact) where { values ?_project_multi_iri {} { select ?iriact (min(?labelact) as ?lblact) (min(?iconact) as ?icoact) (group_concat(distinct ?typeact; separator=", ") as ?typact) (min(?rract) as ?rrankact) where { values ?_project_multi_iri {} service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { select (group_concat(?mpk; separator=" ") as ?memberPubkeys) where { graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> npa:hasCurrentSpaceState ?stateG . } values ?_project_multi_iri {} graph ?stateG { ?_project_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType . filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } graph npa:graph { ?npact np:hasAssertion ?aact ; np:hasPublicationInfo ?piact ; npa:hasValidSignatureForPublicKeyHash ?pkact . filter not exists { ?ixact npx:invalidates ?npact ; npa:hasValidSignatureForPublicKeyHash ?pkact . } filter not exists { ?sxact npx:supersedes ?npact . } } filter(contains(?memberPubkeys, ?pkact)) graph ?aact { ?iriact a obo:OBI_0000066 ; dct:isPartOf ?_project_multi_iri . } optional { graph ?aact { ?iriact rdfs:label ?laact } } optional { graph ?aact { ?iriact a ?subact . filter(?subact != obo:OBI_0000066 && strstarts(str(?subact), "http://purl.obolibrary.org/obo/OBI_")) } graph ?piact { ?subact rdfs:label ?sublact } } bind(coalesce(?laact, replace(str(?iriact), "^.*[/#]", "")) as ?labelact) bind(coalesce(replace(?sublact, "investigation", "study"), "study") as ?typeact) bind(coalesce(replace(?sublact, "investigation", "study"), "study") as ?rract) bind(if(contains(?typeact, "observational"), "👁", if(contains(?typeact, "surveillance"), "📡", if(contains(?typeact, "trial"), "💉", "🧪"))) as ?iconact) } group by ?iriact } { select distinct ?oact ?orract where { values ?_project_multi_iri {} service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { select (group_concat(?mpk; separator=" ") as ?memberPubkeys) where { graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> npa:hasCurrentSpaceState ?stateG . } values ?_project_multi_iri {} graph ?stateG { ?_project_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType . filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } graph npa:graph { ?onpact np:hasAssertion ?oaact ; np:hasPublicationInfo ?opiact ; npa:hasValidSignatureForPublicKeyHash ?opkact . filter not exists { ?oixact npx:invalidates ?onpact ; npa:hasValidSignatureForPublicKeyHash ?opkact . } filter not exists { ?osxact npx:supersedes ?onpact . } } filter(contains(?memberPubkeys, ?opkact)) graph ?oaact { ?oact a obo:OBI_0000066 ; dct:isPartOf ?_project_multi_iri . } optional { graph ?oaact { ?oact a ?osubact . filter(?osubact != obo:OBI_0000066 && strstarts(str(?osubact), "http://purl.obolibrary.org/obo/OBI_")) } graph ?opiact { ?osubact rdfs:label ?osublact } } bind(coalesce(replace(?osublact, "investigation", "study"), "study") as ?orract) } } bind(if(concat(str(?orract), "|", str(?oact)) < concat(str(?rrankact), "|", str(?iriact)), ?oact, ?noneact) as ?ltact) } group by ?iriact ?lblact ?icoact ?typact ?rrankact } bind((?iyact - floor(?iyact / 1) * 1) * 401 as ?bxact) bind(floor(?iyact / 1) * 20 as ?byact) bind(xsd:integer(floor((385 - 26 - strlen(?typact) * 4.6) / 5.15)) as ?cap0act) bind(if(?cap0act < 8, 8, ?cap0act) as ?capact) bind(if(strlen(?lblact) > ?capact, concat(substr(?lblact, 1, ?capact - 1), "…"), ?lblact) as ?tact) bind(replace(replace(replace(?tact, "&", "&"), "<", "<"), ">", ">") as ?escact) bind(replace(replace(replace(?lblact, "&", "&"), "<", "<"), ">", ">") as ?fullact) bind(concat('<text x="', str(?bxact), '" y="', str(?byact + 12), '" font-size="10" fill="#111">', '', ' ', ?fullact, ' <tspan>', ?icoact, ' ', ?escact, '</tspan>', '<tspan dx="9" font-size="9">', ?typact, '</tspan></text>') as ?boxact) } } { select (group_concat(distinct ?boxout; separator="") as ?boxesout) (count(*) as ?nout) where { { select ?iriout ?lblout ?icoout ?typout ?rrankout (count(distinct ?ltout) as ?iyout) where { values ?_project_multi_iri {} { select ?iriout (min(?labelout) as ?lblout) (min(?iconout) as ?icoout) (group_concat(distinct ?typeout; separator=", ") as ?typout) (min(?rrout) as ?rrankout) where { values ?_project_multi_iri {} service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { select (group_concat(?mpk; separator=" ") as ?memberPubkeys) where { graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> npa:hasCurrentSpaceState ?stateG . } values ?_project_multi_iri {} graph ?stateG { ?_project_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType . filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } graph npa:graph { ?npout np:hasAssertion ?aout ; np:hasPublicationInfo ?piout ; npa:hasValidSignatureForPublicKeyHash ?pkout . filter not exists { ?ixout npx:invalidates ?npout ; npa:hasValidSignatureForPublicKeyHash ?pkout . } filter not exists { ?sxout npx:supersedes ?npout . } } filter(contains(?memberPubkeys, ?pkout)) graph ?aout { ?_project_multi_iri ?relout ?iriout . values ?relout { ff:has-article ff:has-dataset ff:has-software ff:has-method ff:has-dmp ff:has-presentation ff:has-blog-post ff:has-media-coverage ff:has-social-post ff:has-podcast ff:has-discussion } } optional { graph ?aout { ?iriout rdfs:label ?laout } } optional { graph ?piout { ?iriout foaf:name ?lfout } } optional { graph ?piout { ?iriout rdfs:label ?lqout } } bind(coalesce(?laout, ?lfout, ?lqout, replace(str(?iriout), "^.*[/#]", "")) as ?labelout) bind(strafter(str(?relout), "https://w3id.org/fair/ff/terms/has-") as ?rawout) bind(replace(?rawout, "-", " ") as ?typeout) bind(if(?rawout = "article", 0, if(?rawout = "dataset", 1, if(?rawout = "software", 2, if(?rawout = "method", 3, if(?rawout = "dmp", 4, if(?rawout = "presentation", 5, if(?rawout = "blog-post", 6, 7))))))) as ?rrout) bind(if(?rawout = "article", "📄", if(?rawout = "software", "💻", if(?rawout = "dataset", "💾", if(?rawout = "presentation", "🎤", if(?rawout = "blog-post", "📝", if(?rawout = "podcast", "🎧", if(?rawout = "media-coverage", "📰", if(?rawout = "social-post", "💬", if(?rawout = "discussion", "💬", if(?rawout = "method", "🔧", if(?rawout = "dmp", "📋", "🔗"))))))))))) as ?iconout) } group by ?iriout } { select distinct ?oout ?orrout where { values ?_project_multi_iri {} service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { select (group_concat(?mpk; separator=" ") as ?memberPubkeys) where { graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> npa:hasCurrentSpaceState ?stateG . } values ?_project_multi_iri {} graph ?stateG { ?_project_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType . filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } graph npa:graph { ?onpout np:hasAssertion ?oaout ; np:hasPublicationInfo ?opiout ; npa:hasValidSignatureForPublicKeyHash ?opkout . filter not exists { ?oixout npx:invalidates ?onpout ; npa:hasValidSignatureForPublicKeyHash ?opkout . } filter not exists { ?osxout npx:supersedes ?onpout . } } filter(contains(?memberPubkeys, ?opkout)) graph ?oaout { ?_project_multi_iri ?orelout ?oout . values ?orelout { ff:has-article ff:has-dataset ff:has-software ff:has-method ff:has-dmp ff:has-presentation ff:has-blog-post ff:has-media-coverage ff:has-social-post ff:has-podcast ff:has-discussion } } bind(strafter(str(?orelout), "https://w3id.org/fair/ff/terms/has-") as ?orawout) bind(if(?orawout = "article", 0, if(?orawout = "dataset", 1, if(?orawout = "software", 2, if(?orawout = "method", 3, if(?orawout = "dmp", 4, if(?orawout = "presentation", 5, if(?orawout = "blog-post", 6, 7))))))) as ?orrout) } } bind(if(concat(str(?orrout), "|", str(?oout)) < concat(str(?rrankout), "|", str(?iriout)), ?oout, ?noneout) as ?ltout) } group by ?iriout ?lblout ?icoout ?typout ?rrankout } bind((?iyout - floor(?iyout / 1) * 1) * 401 as ?bxout) bind(floor(?iyout / 1) * 20 as ?byout) bind(xsd:integer(floor((385 - 26 - strlen(?typout) * 4.6) / 5.15)) as ?cap0out) bind(if(?cap0out < 8, 8, ?cap0out) as ?capout) bind(if(strlen(?lblout) > ?capout, concat(substr(?lblout, 1, ?capout - 1), "…"), ?lblout) as ?tout) bind(replace(replace(replace(?tout, "&", "&"), "<", "<"), ">", ">") as ?escout) bind(replace(replace(replace(?lblout, "&", "&"), "<", "<"), ">", ">") as ?fullout) bind(concat('<text x="', str(?bxout), '" y="', str(?byout + 12), '" font-size="10" fill="#111">', '', ' ', ?fullout, ' <tspan>', ?icoout, ' ', ?escout, '</tspan>', '<tspan dx="9" font-size="9">', ?typout, '</tspan></text>') as ?boxout) } } { select (group_concat(distinct ?boxppl; separator="") as ?boxesppl) (count(*) as ?nppl) where { { select ?irippl ?lblppl ?icoppl ?typppl ?rrankppl (count(distinct ?ltppl) as ?iyppl) where { values ?_project_multi_iri {} { select ?irippl (min(?labelppl) as ?lblppl) (min(?iconppl) as ?icoppl) (group_concat(distinct ?typeppl; separator=", ") as ?typppl) (min(?rrppl) as ?rrankppl) where { values ?_project_multi_iri {} service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { select (group_concat(?mpk; separator=" ") as ?memberPubkeys) where { graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> npa:hasCurrentSpaceState ?stateG . } values ?_project_multi_iri {} graph ?stateG { ?_project_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType . filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } graph npa:graph { ?npppl np:hasAssertion ?appl ; np:hasPublicationInfo ?pippl ; npa:hasValidSignatureForPublicKeyHash ?pkppl . filter not exists { ?ixppl npx:invalidates ?npppl ; npa:hasValidSignatureForPublicKeyHash ?pkppl . } filter not exists { ?sxppl npx:supersedes ?npppl . } } filter(contains(?memberPubkeys, ?pkppl)) graph ?appl { ?_project_multi_iri ?relppl ?irippl . values ?relppl { ff:has-principal-investigator ff:has-participant ff:has-data-steward gen:hasProjectLead ff:has-project-leader } } optional { graph ?appl { ?irippl rdfs:label ?lappl } } optional { graph ?pippl { ?irippl foaf:name ?lfppl } } optional { graph ?pippl { ?irippl rdfs:label ?lqppl } } bind(coalesce(?lappl, ?lfppl, ?lqppl, replace(str(?irippl), "^.*[/#]", "")) as ?labelppl) bind(if(?relppl = ff:has-principal-investigator, "PI", if(?relppl in (gen:hasProjectLead, ff:has-project-leader), "project lead", if(?relppl = ff:has-data-steward, "data steward", "participant"))) as ?typeppl) bind(if(?relppl = ff:has-principal-investigator, 0, if(?relppl in (gen:hasProjectLead, ff:has-project-leader), 1, if(?relppl = ff:has-data-steward, 2, 3))) as ?rrppl) bind("👤" as ?iconppl) } group by ?irippl } { select distinct ?oppl ?orrppl where { values ?_project_multi_iri {} service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { select (group_concat(?mpk; separator=" ") as ?memberPubkeys) where { graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> npa:hasCurrentSpaceState ?stateG . } values ?_project_multi_iri {} graph ?stateG { ?_project_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType . filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } graph npa:graph { ?onpppl np:hasAssertion ?oappl ; np:hasPublicationInfo ?opippl ; npa:hasValidSignatureForPublicKeyHash ?opkppl . filter not exists { ?oixppl npx:invalidates ?onpppl ; npa:hasValidSignatureForPublicKeyHash ?opkppl . } filter not exists { ?osxppl npx:supersedes ?onpppl . } } filter(contains(?memberPubkeys, ?opkppl)) graph ?oappl { ?_project_multi_iri ?orelppl ?oppl . values ?orelppl { ff:has-principal-investigator ff:has-participant ff:has-data-steward gen:hasProjectLead ff:has-project-leader } } bind(if(?orelppl = ff:has-principal-investigator, 0, if(?orelppl in (gen:hasProjectLead, ff:has-project-leader), 1, if(?orelppl = ff:has-data-steward, 2, 3))) as ?orrppl) } } bind(if(concat(str(?orrppl), "|", str(?oppl)) < concat(str(?rrankppl), "|", str(?irippl)), ?oppl, ?noneppl) as ?ltppl) } group by ?irippl ?lblppl ?icoppl ?typppl ?rrankppl } bind((?iyppl - floor(?iyppl / 4) * 4) * 210 as ?bxppl) bind(floor(?iyppl / 4) * 20 as ?byppl) bind(xsd:integer(floor((194 - 26 - strlen(?typppl) * 4.6) / 5.15)) as ?cap0ppl) bind(if(?cap0ppl < 8, 8, ?cap0ppl) as ?capppl) bind(if(strlen(?lblppl) > ?capppl, concat(substr(?lblppl, 1, ?capppl - 1), "…"), ?lblppl) as ?tppl) bind(replace(replace(replace(?tppl, "&", "&"), "<", "<"), ">", ">") as ?escppl) bind(replace(replace(replace(?lblppl, "&", "&"), "<", "<"), ">", ">") as ?fullppl) bind(concat('<text x="', str(?bxppl), '" y="', str(?byppl + 12), '" font-size="10" fill="#111">', '', ' ', ?fullppl, ' <tspan>', ?icoppl, ' ', ?escppl, '</tspan>', '<tspan dx="9" font-size="9">', ?typppl, '</tspan></text>') as ?boxppl) } } { select (group_concat(distinct ?boxinst; separator="") as ?boxesinst) (count(*) as ?ninst) where { { select ?iriinst ?lblinst ?icoinst ?typinst ?rrankinst (count(distinct ?ltinst) as ?iyinst) where { values ?_project_multi_iri {} { select ?iriinst (min(?labelinst) as ?lblinst) (min(?iconinst) as ?icoinst) (group_concat(distinct ?typeinst; separator=", ") as ?typinst) (min(?rrinst) as ?rrankinst) where { values ?_project_multi_iri {} service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { select (group_concat(?mpk; separator=" ") as ?memberPubkeys) where { graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> npa:hasCurrentSpaceState ?stateG . } values ?_project_multi_iri {} graph ?stateG { ?_project_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType . filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } graph npa:graph { ?npinst np:hasAssertion ?ainst ; np:hasPublicationInfo ?piinst ; npa:hasValidSignatureForPublicKeyHash ?pkinst . filter not exists { ?ixinst npx:invalidates ?npinst ; npa:hasValidSignatureForPublicKeyHash ?pkinst . } filter not exists { ?sxinst npx:supersedes ?npinst . } } filter(contains(?memberPubkeys, ?pkinst)) graph ?ainst { ?_project_multi_iri ?relinst ?iriinst . values ?relinst { ff:has-lead-institution ff:has-partner-institution ff:has-funder } } optional { graph ?ainst { ?iriinst rdfs:label ?lainst } } optional { graph ?piinst { ?iriinst foaf:name ?lfinst } } optional { graph ?piinst { ?iriinst rdfs:label ?lqinst } } bind(coalesce(?lainst, ?lfinst, ?lqinst, replace(str(?iriinst), "^.*[/#]", "")) as ?labelinst) bind(if(?relinst = ff:has-lead-institution, "lead institution", if(?relinst = ff:has-partner-institution, "partner", "funder")) as ?typeinst) bind(if(?relinst = ff:has-lead-institution, 0, if(?relinst = ff:has-partner-institution, 1, 2)) as ?rrinst) bind(if(?relinst = ff:has-funder, "💶", "🏛") as ?iconinst) } group by ?iriinst } { select distinct ?oinst ?orrinst where { values ?_project_multi_iri {} service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { select (group_concat(?mpk; separator=" ") as ?memberPubkeys) where { graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> npa:hasCurrentSpaceState ?stateG . } values ?_project_multi_iri {} graph ?stateG { ?_project_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType . filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } graph npa:graph { ?onpinst np:hasAssertion ?oainst ; np:hasPublicationInfo ?opiinst ; npa:hasValidSignatureForPublicKeyHash ?opkinst . filter not exists { ?oixinst npx:invalidates ?onpinst ; npa:hasValidSignatureForPublicKeyHash ?opkinst . } filter not exists { ?osxinst npx:supersedes ?onpinst . } } filter(contains(?memberPubkeys, ?opkinst)) graph ?oainst { ?_project_multi_iri ?orelinst ?oinst . values ?orelinst { ff:has-lead-institution ff:has-partner-institution ff:has-funder } } bind(if(?orelinst = ff:has-lead-institution, 0, if(?orelinst = ff:has-partner-institution, 1, 2)) as ?orrinst) } } bind(if(concat(str(?orrinst), "|", str(?oinst)) < concat(str(?rrankinst), "|", str(?iriinst)), ?oinst, ?noneinst) as ?ltinst) } group by ?iriinst ?lblinst ?icoinst ?typinst ?rrankinst } bind((?iyinst - floor(?iyinst / 2) * 2) * 421 as ?bxinst) bind(floor(?iyinst / 2) * 20 as ?byinst) bind(xsd:integer(floor((405 - 26 - strlen(?typinst) * 4.6) / 5.15)) as ?cap0inst) bind(if(?cap0inst < 8, 8, ?cap0inst) as ?capinst) bind(if(strlen(?lblinst) > ?capinst, concat(substr(?lblinst, 1, ?capinst - 1), "…"), ?lblinst) as ?tinst) bind(replace(replace(replace(?tinst, "&", "&"), "<", "<"), ">", ">") as ?escinst) bind(replace(replace(replace(?lblinst, "&", "&"), "<", "<"), ">", ">") as ?fullinst) bind(concat('<text x="', str(?bxinst), '" y="', str(?byinst + 12), '" font-size="10" fill="#111">', '', ' ', ?fullinst, ' <tspan>', ?icoinst, ' ', ?escinst, '</tspan>', '<tspan dx="9" font-size="9">', ?typinst, '</tspan></text>') as ?boxinst) } } optional { { select ?slbl ?ssd ?sed where { values ?_project_multi_iri {} service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> { select (group_concat(?mpk; separator=" ") as ?memberPubkeysHd) where { graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> npa:hasCurrentSpaceState ?stateG . } values ?_project_multi_iri {} graph ?stateG { ?_project_multi_iri npa:isMaintainedBy? ?space . ?ri a gen:RoleInstantiation ; npa:forSpace ?space ; npa:forAgent ?agent ; npa:hasRoleType ?roleType . filter(?roleType in (gen:AdminRole, gen:MaintainerRole, gen:MemberRole)) ?acct a npa:AccountState ; npa:agent ?agent ; npa:pubkey ?mpk . } } } graph npa:graph { ?npsp np:hasAssertion ?asp ; np:hasPublicationInfo ?pisp ; npa:hasValidSignatureForPublicKeyHash ?pksp . filter not exists { ?ixsp npx:invalidates ?npsp ; npa:hasValidSignatureForPublicKeyHash ?pksp . } filter not exists { ?sxsp npx:supersedes ?npsp . } } filter(contains(?memberPubkeysHd, ?pksp)) graph ?asp { ?_project_multi_iri a gen:Space ; rdfs:label ?slbl . optional { ?_project_multi_iri <http://schema.org/startDate>|<https://schema.org/startDate> ?ssd } optional { ?_project_multi_iri <http://schema.org/endDate>|<https://schema.org/endDate> ?sed } } graph ?pisp { ?npsp dct:created ?crsp } } order by desc(?crsp) limit 1 } } bind(replace(replace(replace(coalesce(?slbl, ""), "&", "&"), "<", "<"), ">", ">") as ?stitle) bind(coalesce(substr(str(?ssd), 1, 10), "") as ?ssd1) bind(coalesce(substr(str(?sed), 1, 10), "") as ?sed1) bind(if(?ssd1 != "" && ?sed1 != "", concat(?ssd1, " – ", ?sed1), concat(?ssd1, ?sed1)) as ?sdates) bind(if(?stitle = "", 26, if(?sdates = "", 50, 66)) as ?hd) bind(if(?stitle = "", "", concat('<text x="435" y="16" text-anchor="middle" font-size="12" font-weight="bold" fill="#111">', ?stitle, '</text>')) as ?theader) bind(if(?stitle = "" || ?sdates = "", "", concat('<text x="435" y="32" text-anchor="middle" font-size="10" fill="#666">', ?sdates, '</text>')) as ?dheader) }