@prefix dct: <http://purl.org/dc/terms/> .
@prefix this: <http://purl.org/np/RAWeAzT9zlsOY5Rvoj8LLDFxazPnPJvBjIEqsD2soE1f0> .
@prefix sub: <http://purl.org/np/RAWeAzT9zlsOY5Rvoj8LLDFxazPnPJvBjIEqsD2soE1f0#> .
@prefix np: <http://www.nanopub.org/nschema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix nt: <https://w3id.org/np/o/ntemplate/> .
@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 npx: <http://purl.org/nanopub/x/> .

<http://purl.org/np/RAWeAzT9zlsOY5Rvoj8LLDFxazPnPJvBjIEqsD2soE1f0> a np:Nanopublication;
  np:hasAssertion sub:assertion;
  np:hasProvenance sub:provenance;
  np:hasPublicationInfo sub:pubinfo;
  dct:created "2023-04-12T09:13:27.768Z"^^xsd:dateTime;
  dct:creator orcid:0000-0002-1267-0234;
  nt:wasCreatedFromProvenanceTemplate <http://purl.org/np/RANwQa4ICWS5SOjw7gp99nBpXBasapwtZF1fIM3H2gYTM>;
  nt:wasCreatedFromPubinfoTemplate <http://purl.org/np/RAA2MfqdBCzmz9yVWjKLXNbyfBNcwsMmOqcNUxkk1maIM>;
  nt:wasCreatedFromTemplate <http://purl.org/np/RAkONP_jLqAbok3FgtutnKcLs4IHr9KiAuslQNnfEJIwY> .

sub:algorithm a nt:GuidedChoicePlaceholder;
  rdfs:label "the used algorithm (e.g. Random Forest)";
  nt:possibleValuesFromApi "http://purl.org/nanopub/api/find_signed_things?type=http%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23NamedIndividual&searchterm=",
    "https://www.ebi.ac.uk/ols/api/select?fieldList=iri,label,description&q=", "https://www.wikidata.org/w/api.php?action=wbsearchentities&language=en&format=json&limit=5&search=" .

sub:assertion a nt:AssertionTemplate;
  dct:description "Such a nanopublication describes the results of a Machine Learning experiment, such as the accuracy achieved by a applying a given ML technique on a given dataset. This template is based on <a href=\"https://ml-schema.github.io/documentation/ML%20Schema.html\">ML Schema</a>.";
  rdfs:label "Publishing the evaluation result of a Machine Learning experiment";
  nt:hasStatement sub:st10, sub:st20, sub:st30, sub:st40, sub:st50, sub:st60;
  nt:hasTag "Machine Learning";
  prov:wasAttributedTo orcid:0000-0002-1267-0234 .

sub:evaluation a nt:LocalResource;
  rdfs:label "an evaluation" .

sub:evaluation-measure a nt:GuidedChoicePlaceholder;
  rdfs:label "the evaluation measure (e.g. Accuracy)";
  nt:possibleValuesFromApi "http://purl.org/nanopub/api/find_signed_things?type=http%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23NamedIndividual&searchterm=",
    "https://www.ebi.ac.uk/ols/api/select?ontology=stato&fieldList=iri,label,description&q=" .

sub:evaluation-value a nt:LiteralPlaceholder;
  rdfs:label "value of the evaluation result (e.g. 0.81 if the accuracy is 81%)" .

sub:run a nt:LocalResource;
  rdfs:label "a run" .

sub:st10 rdf:object <http://www.w3.org/ns/mls#Run>;
  rdf:predicate rdf:type;
  rdf:subject sub:run .

sub:st20 rdf:object sub:algorithm;
  rdf:predicate <http://www.w3.org/ns/mls#realizes>;
  rdf:subject sub:run .

sub:st30 rdf:object sub:task;
  rdf:predicate <http://www.w3.org/ns/mls#achieves>;
  rdf:subject sub:run .

sub:st40 rdf:object sub:evaluation;
  rdf:predicate <http://www.w3.org/ns/mls#hasOutput>;
  rdf:subject sub:run .

sub:st50 rdf:object sub:evaluation-measure;
  rdf:predicate <http://www.w3.org/ns/mls#specifiedBy>;
  rdf:subject sub:evaluation .

sub:st60 rdf:object sub:evaluation-value;
  rdf:predicate <http://www.w3.org/ns/mls#hasValue>;
  rdf:subject sub:evaluation .

sub:task a nt:GuidedChoicePlaceholder;
  rdfs:label "the task performed (e.g. Spam Detection)";
  nt:possibleValuesFromApi "http://purl.org/nanopub/api/find_signed_things?type=http%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23NamedIndividual&searchterm=",
    "https://www.ebi.ac.uk/ols/api/select?fieldList=iri,label,description&q=", "https://www.wikidata.org/w/api.php?action=wbsearchentities&language=en&format=json&limit=5&search=" .

rdf:type rdfs:label "is a" .

<http://www.w3.org/ns/mls#Run> rdfs:label "run of a Machine Learning experiment" .

<http://www.w3.org/ns/mls#hasOutput> rdfs:label "has as output" .

<http://www.w3.org/ns/mls#hasValue> rdfs:label "has the result value" .

<http://www.w3.org/ns/mls#realizes> rdfs:label "executes an implementation that implements the algorithm" .

sub:sig npx:hasAlgorithm "RSA";
  npx:hasPublicKey "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCjDGQCS1S+SRnERDuYDXOugdYUP0efEquHJEEHAbU/uLzBVlga89zqrNPCS7fBE6lArBUWEmT8eLKdMapyqvAzI1J3jUWTMhDJF+XFBkUiuiFfNSc4vJJcmi0yujtnuzXsRIG202jyaP4f5ULoskFwaZOSBZJfiE0dsB3D7DTIAQIDAQAB";
  npx:hasSignature "ODLeoMBfjIusr9rnMkqvQhSdmet6hMstS630d9psRcbcVDSqDizcwCPVgg7QhpYJQOEEuAdIeyiDSOWhobu3wSOjB+Xlukb1hnetbuHvmk9o5LmKO5nTRBlODYxlq7wpyEGnygfxwU/rSlxGPeDeRCG9ZdOw1PzHQmHsWMnWt5U=";
  npx:hasSignatureTarget <http://purl.org/np/RAWeAzT9zlsOY5Rvoj8LLDFxazPnPJvBjIEqsD2soE1f0> .

