Nanopublication

< Home

ID

https://w3id.org/np/RALxy6SqFjcaEUc-3mTG7oinhDRF_RxlXF7RyaN6ZJ87w

Formats

.trig | .trig.txt | .jelly | .jelly.txt | .jsonld | .jsonld.txt | .nq | .nq.txt | .xml | .xml.txt

Content

@prefix this: <https://w3id.org/np/RALxy6SqFjcaEUc-3mTG7oinhDRF_RxlXF7RyaN6ZJ87w> .
@prefix sub: <https://w3id.org/np/RALxy6SqFjcaEUc-3mTG7oinhDRF_RxlXF7RyaN6ZJ87w/> .
@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-evidence-overview-of-space a grlc:grlc-query;
    dct:description "Returns, for a given space, an overview of the kinds of evidence and arguments reported by the projects in that space: one row per evidence kind, with the number of evidence items of that kind and the number of distinct projects that reported it. It aggregates exactly the material that the 'Evidence & Arguments' section of the FAIR project summary diagram shows for a single project, so that a programme or funder space can see the same information across all of its projects at once. An evidence item is a resource typed as evidence (ECO_0000000) or as a proof/argument (Q11538) that was generated by an investigation (OBI_0000066) which declares itself to be part of a project. The kind is the more specific ECO subclass of the item, labelled from the publication info of the nanopublication that states it; items with no more specific subclass fall back to 'evidence (kind unspecified)' and proofs to 'argument / proof'. Projects are the given space itself and every space whose IRI extends it with a slash, which is the same sub-space convention used by the sibling 'all projects' views of a space. As in those views, only nanopublications signed by a current admin, maintainer or member of one of those spaces are counted, and invalidated, superseded and example nanopublications are skipped. The member public keys are collected in a single federated sub-select that shares no variables with the rest of the query, so the federation runs once rather than once per result row. The number of distinct projects reporting a kind is given as a count only. The individual evidence items behind that count, and the project each belongs to, are listed by the companion part-level view that appears on the evidence kind's own page, reached by following the kind in the first column.";
    dct:license <http://www.apache.org/licenses/LICENSE-2.0>;
    rdfs:label "Get an overview of the evidence kinds reported by the projects of a space";
    grlc:endpoint <https://w3id.org/np/l/nanopub-query-1.1/repo/full>;
    grlc:sparql """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 prov: <http://www.w3.org/ns/prov#>
prefix dct: <http://purl.org/dc/terms/>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix obo: <http://purl.obolibrary.org/obo/>
prefix wd: <http://www.wikidata.org/entity/>

select ?evidence_type
       (min(?typeLabel) as ?evidence_type_label)
       (sum(?n) as ?items)
       (count(distinct ?project) as ?projects)
where {
  {
    select ?evidence_type ?project (min(?typeLabel0) as ?typeLabel) (count(distinct ?ev) as ?n) where {
      values ?_space_multi_iri {}
      {
        select (group_concat(?mpk; separator=\" \") as ?memberPubkeys) where {
          service <https://w3id.org/np/l/nanopub-query-1.1/repo/spaces> {
            select ?mpk where {
              values ?_space_multi_iri {}
              graph npa:graph { <http://purl.org/nanopub/admin/thisRepo> npa:hasCurrentSpaceState ?stateG . }
              graph ?stateG {
                ?ri a gen:RoleInstantiation ; npa:forSpace ?sp ; 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 .
              }
              filter(strstarts(str(?sp), str(?_space_multi_iri)))
            }
          }
        }
      }
      graph npa:graph {
        ?studyNp np:hasAssertion ?studyA ; npa:hasValidSignatureForPublicKeyHash ?studyPk .
        filter not exists { ?studyInv npx:invalidates ?studyNp ; npa:hasValidSignatureForPublicKeyHash ?studyPk }
        filter not exists { ?studySup npx:supersedes ?studyNp }
        filter not exists { ?studyNp npx:hasNanopubType npx:ExampleNanopub }
      }
      filter(contains(?memberPubkeys, ?studyPk))
      graph ?studyA { ?study a obo:OBI_0000066 ; dct:isPartOf ?project . }
      filter(?project = ?_space_multi_iri || strstarts(str(?project), concat(str(?_space_multi_iri), \"/\")))
      graph npa:graph {
        ?evNp np:hasAssertion ?evA ; np:hasPublicationInfo ?evPi ; npa:hasValidSignatureForPublicKeyHash ?evPk .
        filter not exists { ?evInv npx:invalidates ?evNp ; npa:hasValidSignatureForPublicKeyHash ?evPk }
        filter not exists { ?evSup npx:supersedes ?evNp }
        filter not exists { ?evNp npx:hasNanopubType npx:ExampleNanopub }
      }
      filter(contains(?memberPubkeys, ?evPk))
      graph ?evA {
        ?ev a ?base ; prov:wasGeneratedBy ?study .
        values ?base { obo:ECO_0000000 wd:Q11538 }
      }
      optional {
        graph ?evA {
          ?ev a ?sub .
          filter(?sub != obo:ECO_0000000 && strstarts(str(?sub), \"http://purl.obolibrary.org/obo/ECO_\"))
        }
        graph ?evPi { ?sub rdfs:label ?subLabel }
      }
      bind(coalesce(?sub, ?base) as ?evidence_type)
      bind(coalesce(?subLabel, if(?base = wd:Q11538, \"argument / proof\", \"evidence (kind unspecified)\")) as ?typeLabel0)
    } group by ?evidence_type ?project
  }
}
group by ?evidence_type
order by desc(?items) ?evidence_type_label
""" .
}

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-09-08T09:55:36Z"^^xsd:dateTime;
    dct:creator orcid:0000-0002-1267-0234;
    dct:license <https://creativecommons.org/licenses/by/4.0/>;
    npx:embeds sub:get-evidence-overview-of-space;
    npx:supersedes <https://w3id.org/np/RA3Bibj-SEbTRHYyqv60HmhPJspHO8AI9hUWtXBKIBtSY>;
    rdfs:label "Get an overview of the evidence kinds reported by the projects of a space";
    prov:wasDerivedFrom <https://w3id.org/np/RA4JGNfWmbGyxhTexlmPFPkHF-q8rfllq-GSIZovQICcY>;
    nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU>;
    nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8>,
      <https://w3id.org/np/RARW4MsFkHuwjycNElvEVtuMjpf4yWDL10-0C5l2MqqRQ>, <https://w3id.org/np/RAukAcWHRDlkqxk7H2XNSegc1WnHI569INvNr-xdptDGI>;
    nt:wasCreatedFromTemplate <https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k> .
  
  sub:sig npx:hasAlgorithm "RSA";
    npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB";
    npx:hasSignature "Tg0VM3oziAYLLPqJKKh2hSptX/sdvuagLnQvxqYH19rFRnctnlPBVC2fFlTJ4gtT8mZBNH/wkFXL0+s2RPGKhT6kQnB1CR7PjLjamQw1liSAb6gqV2YgY8ozdUMIKabHtb7LTzMV3QFq9N28eG04FqIXTPsPkmZC2FDm4VlVQjk=";
    npx:hasSignatureTarget this:;
    npx:signedBy orcid:0000-0002-1267-0234 .
}