Nanopublication

< Home

ID

https://w3id.org/np/RARPexiyZKtx0VQqCF4UVcVUAMchO6xFvsMxHYBl5Yv9s

Formats

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

Content

@prefix this: <https://w3id.org/np/RARPexiyZKtx0VQqCF4UVcVUAMchO6xFvsMxHYBl5Yv9s> .
@prefix sub: <https://w3id.org/np/RARPexiyZKtx0VQqCF4UVcVUAMchO6xFvsMxHYBl5Yv9s/> .
@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:list-claims-in-domain a <https://w3id.org/kpxl/grlc/grlc-query>;
    dct:description "Lists the claims in a research domain, for the page of that domain (its IRI passed as the 'domain' parameter). A claim is in the domain when its current definition declares delphi:domain for it in the nanopublication's publication-info graph, which is where Project Delphi records the domain. The tag is read only from the current definition, so a claim whose newest version dropped it is no longer listed, and a nanopublication may carry several domains, so the domains overlap rather than partition the claims. Columns and semantics are those of the space-level claims listing: of all validly signed, non-invalidated nanopublications that introduce a given claim, only the newest by timestamp is read (ties broken by nanopublication URI), so a claim appears once with its current content, and no publisher restriction is applied. The weight of evidence is the claim's own delphi:weightOfEvidence where it declares one, otherwise the score of its overall assessment, on the scale from 0 to 1 rounded to two decimals; the verdict comes from that same overall assessment; the assessments column counts the distinct assessments linked by delphi:hasAssessment, wherever that triple is asserted -- in the claim's nanopublication or in the assessment's -- which is why the query runs on the full repository. The override_target column is action data rather than content: it carries the row's nanopublication for a per-row in-place re-edit action. Ordered by date, most recent first, then alphabetically by label.";
    dct:license <http://www.apache.org/licenses/LICENSE-2.0>;
    rdfs:label "List the claims in a research domain";
    <https://w3id.org/kpxl/grlc/endpoint> <https://w3id.org/np/l/nanopub-query-1.1/repo/full>;
    <https://w3id.org/kpxl/grlc/sparql> """prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix dct: <http://purl.org/dc/terms/>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix np: <http://www.nanopub.org/nschema#>
prefix npa: <http://purl.org/nanopub/admin/>
prefix npx: <http://purl.org/nanopub/x/>

prefix delphi: <https://w3id.org/delphi/ontology/>

select ?claim ?claim_label ?weight_of_evidence ?verdict ?assessments
       ?date
       (?np as ?override_target) ?np (\"^\" as ?np_label) where {
  {
    select ?claim ?np ?date
           (min(?labelRank) as ?labelWin)
           (min(?claimWeightStr) as ?claimWeightWin)
           (max(?scoreRank) as ?scoreWin)
           (max(?verdictRank) as ?verdictWin)
           (count(distinct ?as) as ?assessments)
    where {
      values ?_domain_multi_iri {}
      graph npa:graph {
        ?np npx:hasNanopubType delphi:Claim ;
          npa:hasValidSignatureForPublicKeyHash ?pubkey ;
          dct:created ?date ;
          npx:introduces ?claim ;
          np:hasAssertion ?a ;
          np:hasPublicationInfo ?pi .
        filter not exists { ?inv npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pubkey . }
      }
      # The domain is declared in pubinfo, and only on the claim's current definition:
      # a claim whose newest version dropped the tag is not in the domain any more.
      graph ?pi { ?np delphi:domain ?_domain_multi_iri . }
      filter not exists {
        graph npa:graph {
          ?np2 npx:hasNanopubType delphi:Claim ;
            npa:hasValidSignatureForPublicKeyHash ?pubkey2 ;
            dct:created ?date2 ;
            npx:introduces ?claim .
          filter not exists { ?inv2 npx:invalidates ?np2 ; npa:hasValidSignatureForPublicKeyHash ?pubkey2 . }
        }
        filter(?date2 > ?date || (?date2 = ?date && str(?np2) > str(?np)))
      }
      graph ?a { ?claim a delphi:Claim . optional { ?claim rdfs:label ?label } }
      bind(concat(if(lang(?label) = \"\", \"1\", \"2\"), \"|\", str(?label)) as ?labelRank)
      optional {
        graph ?a { ?claim delphi:weightOfEvidence ?claimWeight }
        bind(xsd:integer(round(?claimWeight * 100)) as ?claimWeightPct)
        bind(if(?claimWeightPct >= 100, \"1.00\",
             concat(\"0.\", if(?claimWeightPct < 10, concat(\"0\", str(?claimWeightPct)), str(?claimWeightPct)))) as ?claimWeightStr)
      }
      optional { graph ?ga { ?claim delphi:hasAssessment ?as } }
      optional {
        graph ?gb { ?claim delphi:hasAssessment ?overall }
        graph npa:graph {
          ?onp npx:introduces ?overall ;
            np:hasAssertion ?oa ;
            np:hasPublicationInfo ?opi ;
            dct:created ?odate ;
            npa:hasValidSignatureForPublicKeyHash ?opubkey .
          filter not exists { ?oinv npx:invalidates ?onp ; npa:hasValidSignatureForPublicKeyHash ?opubkey . }
        }
        { graph ?oa { ?overall delphi:assessmentType ?atype } }
        union
        { graph ?opi { ?onp delphi:assessmentType ?atype } }
        filter(strends(str(?atype), \"/overall\") || regex(str(?atype), \"^[^/]+/[^/]+$\"))
        optional { graph ?oa { ?overall delphi:hasScore ?p0 } }
        optional { graph ?oa { ?overall delphi:hasProbability ?p1 } }
        optional { graph ?oa { ?overall delphi:weightOfEvidence ?p2 } }
        optional { graph ?oa { ?overall delphi:hasVerdict ?overallVerdict } }
        bind(coalesce(?p0, ?p1, ?p2) as ?overallScore)
        bind(xsd:integer(round(?overallScore * 100)) as ?overallPct)
        bind(concat(str(?odate), \"|\",
             if(?overallPct >= 100, \"1.00\",
             concat(\"0.\", if(?overallPct < 10, concat(\"0\", str(?overallPct)), str(?overallPct))))) as ?scoreRank)
        bind(concat(str(?odate), \"|\", str(?overallVerdict)) as ?verdictRank)
      }
    } group by ?claim ?np ?date
  }
  bind(strafter(?labelWin, \"|\") as ?claim_label)
  bind(if(bound(?verdictWin), strafter(?verdictWin, \"|\"), \"\") as ?verdict)
  bind(if(bound(?claimWeightWin), ?claimWeightWin,
       if(bound(?scoreWin), strafter(?scoreWin, \"|\"), \"\")) as ?weight_of_evidence)
}
order by desc(?date) lcase(?claim_label)""" .
}

sub:provenance {
  sub:assertion prov:wasAttributedTo orcid:0000-0002-1267-0234 .
}

sub:pubinfo {
  orcid:0000-0001-8492-0354 foaf:name "Ashley Caselli" .
  
  this: dct:created "2026-11-06T18:47:06.682Z"^^xsd:dateTime;
    dct:creator orcid:0000-0001-8492-0354;
    dct:license <https://creativecommons.org/licenses/by/4.0/>;
    npx:embeds sub:list-claims-in-domain;
    npx:wasCreatedAt <https://nanodash.knowledgepixels.com/>;
    prov:wasDerivedFrom <https://w3id.org/np/RAGRa_GuzqfUqgCUcv3NgQwZXhXnqTB1SocjcWxNiFQgU>;
    nt:wasCreatedFromProvenanceTemplate <https://w3id.org/np/RA7lSq6MuK_TIC6JMSHvLtee3lpLoZDOqLJCLXevnrPoU>;
    nt:wasCreatedFromPubinfoTemplate <https://w3id.org/np/RACJ58Gvyn91LqCKIO9zu1eijDQIeEff28iyDrJgjSJF8>,
      <https://w3id.org/np/RAKc76yHLDbloE6ObluzYQsfX37v6qrZXbYeIKpe8-YUo>, <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 "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCaQXE2B2hJ6QdWxaWerU4F/XOtCQdj2OkdrIYd1kpMY9hIUh8boxaO3uOBeqvvqKLf5HjpRF4DT1eghOSsa2Dhd5HRTM/XIamvwWkHpN4oB3Ml19pAAzjTqczYmFLfgG67mGL5+vSA8VEdHtKQCrvP4SpTibMBP1qaxt3k1tqD6wIDAQAB";
    npx:hasSignature "MKOy+PjO3mzv7p4RHuJa/a+OWgXceLFUN0YgKoYKwnlxK4q2ybG3RynspiQZSdXg3exgAhn7P5gc8CPm4JujFkb++jYmTh1Ho4od2LVxssE1mQBDgzbsjiSdz86CbzSTJQ17WAPer6u0N+WR9OLeaNTIit4ywQnSg2QXp/xWUP0=";
    npx:hasSignatureTarget this:;
    npx:signedBy orcid:0000-0001-8492-0354 .
}