@prefix this: <http://purl.org/np/RA_wPjlqWv3zBwQMDMGBq2q2WLZmj6O8o5hGVCtxb3o8M> .
@prefix sub: <http://purl.org/np/RA_wPjlqWv3zBwQMDMGBq2q2WLZmj6O8o5hGVCtxb3o8M#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix pav: <http://purl.org/pav/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix orcid: <https://orcid.org/> .
@prefix nt: <https://w3id.org/np/o/ntemplate/> .
@prefix pc: <http://purl.org/petapico/o/paperclub#> .
@prefix npx: <http://purl.org/nanopub/x/> .

sub:Head {
  this: np:hasAssertion sub:assertion;
    np:hasProvenance sub:provenance;
    np:hasPublicationInfo sub:pubinfo;
    a np:Nanopublication .
}

sub:assertion {
  sub:assertion a nt:AssertionTemplate;
    rdfs:label "Announcing a paper that I have read";
    nt:hasStatement sub:st1, sub:st2 .

  sub:comment a nt:LiteralPlaceholder;
    rdfs:label "comment text" .

  sub:paper a nt:UriPlaceholder;
    rdfs:label "DOI for the paper starting with '10.'";
    nt:hasPrefix "https://doi.org/";
    nt:hasPrefixLabel "the paper with DOI";
    nt:hasRegex "10.(\\d)+/(\\S)+" .

  sub:st1 rdf:object sub:paper;
    rdf:predicate pc:hasRead;
    rdf:subject nt:CREATOR;
    a rdf:Statement;
    nt:statementOrder 1 .

  sub:st2 rdf:object sub:comment;
    rdf:predicate rdfs:comment;
    rdf:subject sub:paper;
    a nt:OptionalStatement;
    nt:statementOrder 2 .

  pc:hasRead rdfs:label "have read the paper" .

  rdfs:comment rdfs:label "has my comment" .
}

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

sub:pubinfo {
  sub:sig npx:hasAlgorithm "RSA";
    npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwUtewGCpT5vIfXYE1bmf/Uqu1ojqnWdYxv+ySO80ul8Gu7m8KoyPAwuvaPj0lvPtHrg000qMmkxzKhYknEjq8v7EerxZNYp5B3/3+5ZpuWOYAs78UnQVjbHSmDdmryr4D4VvvNIiUmd0yxci47dTFUj4DvfHnGd6hVe5+goqdcwIDAQAB";
    npx:hasSignature "GJs6X2F9V9bRnL+DGujqWDUwlNVFM2KAGJQGjw2bUjaIn/irTQRGwGmaBJ8YEzIOQxlZqTbwCSxnWx5J8tqgg2QuPRvyLw+IKR20IdjWeupNkLeSrJqHOhcj6Fn7iPlxgHkduzHSt2mzBJ/BFt9qSZsZWFjrkJIBqwoRMsSrVQ8=";
    npx:hasSignatureTarget this: .

  this: dct:created "2020-04-27T14:57:06.343+02:00"^^xsd:dateTime;
    npx:supersedes <http://purl.org/np/RAeyFN1C7zRfcPoEmGdwWHHgrE8vJHBONVgpq4JHDGyX0>,
      <http://purl.org/np/RAz2LI_DNLC8GAJBKmaEzvgY5-pKlRC7Ph3mJ44LMzkEI>;
    pav:createdBy orcid:0000-0002-1267-0234 .
}
