Nanopublication

< Home

ID

https://w3id.org/np/RAvlxWqDNtsqXPDqPmXG0-IOysqKAvUVpftJbQ7hoJcWg

Formats

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

Content

@prefix this: <https://w3id.org/np/RAvlxWqDNtsqXPDqPmXG0-IOysqKAvUVpftJbQ7hoJcWg> .
@prefix sub: <https://w3id.org/np/RAvlxWqDNtsqXPDqPmXG0-IOysqKAvUVpftJbQ7hoJcWg/> .
@prefix np: <http://www.nanopub.org/nschema#> .
@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-latest-users-with-type a <https://w3id.org/kpxl/grlc/grlc-query>;
    dct:description "Returns the latest 100 users who have introduced themselves, newest first, with their display name and a type column: software agent (declared npx:SoftwareAgent), human (an ORCID), or unknown (anything else).";
    dct:license <http://www.apache.org/licenses/LICENSE-2.0>;
    rdfs:label "Get latest users with name and type";
    <https://w3id.org/kpxl/grlc/endpoint> <https://w3id.org/np/l/nanopub-query-1.1/repo/type/77757cabf6184c51c20b8b0fe5dc5e1365b7f628448335184ad54319a0affdfc>;
    <https://w3id.org/kpxl/grlc/sparql> """prefix np: <http://www.nanopub.org/nschema#>
prefix npx: <http://purl.org/nanopub/x/>
prefix npa: <http://purl.org/nanopub/admin/>
prefix dct: <http://purl.org/dc/terms/>
prefix foaf: <http://xmlns.com/foaf/0.1/>

select ?user_iri (sample(?name) as ?user_iri_label) (if(?isBot, \"�� software agent\", if(strstarts(str(?user_iri), \"https://orcid.org/\") || strstarts(str(?user_iri), \"http://orcid.org/\"), \"�� human\", \"❔ unknown\")) as ?type) where {
  {
    select ?user_iri (min(?date) as ?mindate) where {
      graph npa:graph {
        ?intronp npa:hasValidSignatureForPublicKey ?introPubkey .
        filter not exists { ?intronpx npx:retracts ?intronp ; npa:hasValidSignatureForPublicKey ?pubkey . }
        filter not exists { ?intronp npx:supersedes ?intronpx . }
        ?intronp dct:created ?date .
        ?intronp np:hasAssertion ?a .
      }
      graph ?a {
        ?keydeclaration npx:declaredBy ?user_iri .
        ?keydeclaration npx:hasPublicKey ?pubkey .
      }
    }
    group by ?user_iri
    order by desc(?mindate)
    limit 100
  }
  bind(exists { graph ?a2 { ?user_iri a npx:SoftwareAgent } } as ?isBot)
  optional { graph ?a3 { ?kd3 npx:declaredBy ?user_iri . ?user_iri foaf:name ?name } }
}
group by ?user_iri ?mindate ?isBot
order by desc(?mindate)""" .
}

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-25T08:22:41Z"^^xsd:dateTime;
    dct:creator orcid:0000-0002-1267-0234;
    dct:license <https://creativecommons.org/licenses/by/4.0/>;
    npx:embeds sub:get-latest-users-with-type;
    npx:supersedes <https://w3id.org/np/RAtsYQxGyxlXsZSMab67T5gm_-Eg8QiFg9mjR3NMXQtug>;
    rdfs:label "Get latest users with name and type";
    nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU>;
    nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RA-N4_kFxcruvBTlo1yJv29E4SLOXsx5KO_th69PprMrA>,
      <https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8>, <https://w3id.org/np/RARJj78P72NR5edKOnu_f4ePE9NYYuW2m2pM-fEoobMBk>,
      <https://w3id.org/np/RAoTD7udB2KtUuOuAe74tJi1t3VzK0DyWS7rYVAq1GRvw>;
    nt:wasCreatedFromTemplate <https://w3id.org/np/RAEFAt-QcFK0ZhqfvlsmS10BnzGJA0xwOICZXkO-ai87k> .
  
  sub:sig npx:hasAlgorithm "RSA";
    npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB";
    npx:hasSignature "LutFG2ewopUiDZD/LU5O8rReb43vt7VSCoDk/aFf4ybQ1GVmVlxhSz2iWXysF9N+NHrwCwFf73A3OFVeuh7vwO0rxwf9D2BJInQ2Ymvg63Uvq5LBnUB9Ee59v0yPwMQOmurcs9xxUx1p8VuyNkP8Je67UchY2Ka8AUIunZOSciE=";
    npx:hasSignatureTarget this:;
    npx:signedBy orcid:0000-0002-1267-0234 .
}