@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix this: <http://purl.org/np/RALoHzRMkDy7A8pfaGEPq98gQqYmy_rFzdEghhx59xj24> .
@prefix sub: <http://purl.org/np/RALoHzRMkDy7A8pfaGEPq98gQqYmy_rFzdEghhx59xj24#> .
@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 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 npx: <http://purl.org/nanopub/x/> .
@prefix dao: <https://w3id.org/dao/dao#> .

<http://purl.org/np/RALoHzRMkDy7A8pfaGEPq98gQqYmy_rFzdEghhx59xj24> a np:Nanopublication;
  np:hasAssertion sub:assertion;
  np:hasProvenance sub:provenance;
  np:hasPublicationInfo sub:pubinfo;
  dcterms:created "2020-04-24T00:45:44.817+01:00"^^xsd:dateTime;
  dcterms:creator orcid:0000-0003-4727-9435;
  npx:supersedes <http://purl.org/np/RA-SBj4zCddXsyfy_nQJsYUN9plEQlI-yUS9jMVNpJ7es> .

dcterms:title rdfs:label "has name" .

sub:assertion a nt:AssertionTemplate;
  rdfs:label "Drug Action template";
  nt:hasStatement sub:st0, sub:st1, sub:st2, sub:st3, sub:st4, sub:st5, sub:st6, sub:st7,
    sub:st8;
  prov:wasAttributedTo orcid:0000-0003-4727-9435 .

sub:context a nt:LiteralPlaceholder;
  rdfs:label "add any specified context for the drug action here" .

sub:da a nt:LocalResource;
  rdfs:label "This drug action" .

sub:drug a nt:UriPlaceholder;
  rdfs:label "add the drug identifier (Bio2RDF prefix:identifier) here";
  nt:hasPrefix "http://bio2rdf.org/";
  nt:hasPrefixLabel "the drug" .

sub:drugaction a nt:UriPlaceholder;
  rdfs:label "add the drug action here";
  nt:hasPrefix "https://w3id.org/dao/dao#";
  nt:hasPrefixLabel "the drug action" .

sub:drugactions a nt:RestrictedChoicePlaceholder;
  nt:possibleValue dao:is-associated-with-risk-of, dao:is-contraindicated-with, dao:is-indicated-as-adjunct-for,
    dao:is-indicated-for-management-of, dao:is-indicated-for-symptomatic-relief-of, dao:is-indicated-for-treatment-of .

sub:evidence a nt:UriPlaceholder;
  rdfs:label "add the evidence code (only the numeric part) from the evidence code ontology here";
  nt:hasPrefix "http://purl.obolibrary.org/obo/ECO_";
  nt:hasPrefixLabel "the type of evidence";
  nt:hasRegex "[0-9]{7}" .

sub:phenotype a nt:UriPlaceholder;
  rdfs:label "add the phenotype id (Bio2RDF prefix:identifier) here";
  nt:hasPrefix "http://bio2rdf.org/";
  nt:hasPrefixLabel "the phenotype" .

sub:quote a nt:LocalResource;
  rdfs:label "This quoted text" .

sub:quotedtext a nt:LiteralPlaceholder;
  rdfs:label "quote the supporting text here" .

sub:source a nt:UriPlaceholder;
  rdfs:label "add the URL to the source (e.g. DailyMed URL) of the quoted text here" .

sub:st0 a rdf:Statement;
  rdf:object dao:DrugAction;
  rdf:predicate rdf:type;
  rdf:subject sub:da;
  nt:statementOrder 0 .

sub:st1 a rdf:Statement;
  rdf:object sub:drug;
  rdf:predicate dao:drug;
  rdf:subject sub:da;
  nt:statementOrder 1 .

sub:st2 a rdf:Statement;
  rdf:object sub:drugactions;
  rdf:predicate dao:drug-action;
  rdf:subject sub:da;
  nt:statementOrder 2 .

sub:st3 a rdf:Statement;
  rdf:object sub:phenotype;
  rdf:predicate dao:phenotype;
  rdf:subject sub:da;
  nt:statementOrder 3 .

sub:st4 a rdf:Statement;
  rdf:object sub:context;
  rdf:predicate dao:context;
  rdf:subject sub:da;
  nt:statementOrder 4 .

sub:st5 a rdf:Statement;
  rdf:object sub:quotedtext;
  rdf:predicate prov:value;
  rdf:subject sub:quote;
  nt:statementOrder 5 .

sub:st6 a rdf:Statement;
  rdf:object sub:source;
  rdf:predicate prov:wasQuotedFrom;
  rdf:subject sub:quote;
  nt:statementOrder 6 .

sub:st7 a rdf:Statement;
  rdf:object sub:source;
  rdf:predicate prov:wasDerivedFrom;
  rdf:subject sub:da;
  nt:statementOrder 7 .

sub:st8 a rdf:Statement;
  rdf:object sub:evidence;
  rdf:predicate dao:evidence;
  rdf:subject sub:da;
  nt:statementOrder 8 .

sub:title a nt:LiteralPlaceholder;
  rdfs:label "add the {drug} {action} {phenotype} here" .

rdf:type rdfs:label "is a" .

prov:wasDerivedFrom rdfs:label "was derived from" .

prov:wasQuotedFrom rdfs:label "was quoted from" .

dao:context rdfs:label "has context" .

dao:drug rdfs:label "has drug" .

dao:drug-action rdfs:label "has drug action" .

dao:evidence rdfs:label "has type of evidence" .

dao:is-associated-with-risk-of rdfs:label "is associated with risk of" .

dao:is-contraindicated-with rdfs:label "is contraindicated with" .

dao:is-indicated-as-adjunct-for rdfs:label "is indicated as adjunct for" .

dao:is-indicated-for-management-of rdfs:label "is indicated for the management of" .

dao:is-indicated-for-symptomatic-relief-of rdfs:label "is indicated for the symptomatic relief of" .

dao:is-indicated-for-treatment-of rdfs:label "is indicated for the treatment of" .

dao:phenotype rdfs:label "has phenotype" .

sub:sig npx:hasAlgorithm "RSA";
  npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCTQs+mANCSHWhIW/YPio468UdGNHsPvADpjfaW8um/v2L4AoDIANginfoU65VNbPT5D0ADt1y0uFNne3VEMr9Y+I2HFaz6IKj+LdYMJk6VUf5WJoImRHIX6BZQwcUc22CbTBFYxvqvp3UmmHrCrhLIZjDSyutExK3tOTRoMDjGowIDAQAB";
  npx:hasSignature "cw8jIoWDp6jibJgo+NuArVhDvOubpMnjpy7KRyqwUPhJPCp/zTjEhT4I3G1iraJMxOC1ydq+lI2VXD+XA6niGbAGW85w8qoMElG6hU4V5jc99882Ua7XD+lq15J89iSNQfUQnFfpC0enB329W1dBzlFBkJQ3dWurw1NteXvfzv4=";
  npx:hasSignatureTarget <http://purl.org/np/RALoHzRMkDy7A8pfaGEPq98gQqYmy_rFzdEghhx59xj24> .

