Recurring Activities

Dear all,

I'm trying to model a recurring activity and have some difficulty to find the correct usage of prov:Activity vs. prov:Plan. If I have an process that runs regularly (e. g. nightly), should I model each execution of the process as an instance of prov:Activity and refer to a prov:Plan for details of how what the activity does?

An example:

I have a nightly process that processes 5,000 documents and creates metadata from the text. What I came up with so far was:

:record1 a prov:Entity, ex:MetadataRecord ;
 rdfs:label "this is an record created by the nightly finishing on May 21st"@en ;
 prov:wasGeneratedBy :aNightlyProcess ;
 prov:generatedAtTime "2015-05-21T02:16:58"^^xsd:date .

:record2 a prov:Entity, ex:MetadataRecord ;
 rdfs:label "this is an record created by the nightly process finishing on May 20th"@en ;
 prov:wasGeneratedBy :aNightlyProcess ;
 prov:generatedAtTime "2015-05-19T23:45:19"^^xsd:date .

:aNightlyProcess a prov:Activity ;
 prov:wasAssociatedWith :aPieceOfSoftware ;
 prov:used :someConfiguration, :someInputDataSuchAsADocument .

If I otoh have a separate activity running each night I would get the following:

:record1 a prov:Entity, ex:MetadataRecord ;
 rdfs:label "this is an record created by the nightly process finishing on May 21st"@en ;
 prov:wasGeneratedBy :aNightlyProcess2015-05-21 .
 prov:generatedAtTime "2015-05-21T02:16:58"^^xsd:date .

:record2 a prov:Entity, ex:MetadataRecord ;
 rdfs:label "this is an record created by the nightly process finishing on May 20th"@en ;
 prov:wasGeneratedBy :aNightlyProcess2015-05-20 .
 prov:generatedAtTime "2015-05-19T23:45:19"^^xsd:date .

:aNightlyProcess2015-05-21 a prov:Activity ;
 prov:used :someConfiguration, :someInputDataSuchAsADocument ;
 prov:startedAtTime "2015-05-20T22:30:00"^^xsd:dateTime ;
 prov:endedAtTime  "2015-05-21T04:00:00"^^xsd:dateTime ;
 prov:qualifiedAssociation [
  a prov:Association ;
  prov:agent :aPieceOfSoftware ;
  prov:hadPlan :aProcessPlan
 ] .

:aNightlyProcess2015-05-20 a prov:Activity ;
 prov:used :someConfiguration, :someInputDataSuchAsADocument ;
 prov:startedAtTime "2015-05-19T22:30:00"^^xsd:dateTime ;
 prov:endedAtTime  "2015-05-20T03:58:00"^^xsd:dateTime ;
 prov:qualifiedAssociation [
  a prov:Association ;
  prov:agent :aPieceOfSoftware ;
  prov:hadPlan :aProcessPlan
 ] .
:aProcessPlan a prov:Plan ;
 rdfs:label "Some general description of what the nightly process looks like" .

Are both solutions equally valid or what would a correct description look like?

Thanks for any insight,

Lars

*** Lesen. Hören. Wissen. Deutsche Nationalbibliothek *** 
-- 
Dr. Lars G. Svensson
Deutsche Nationalbibliothek
Informationsinfrastruktur und Bestanderhaltung
Adickesallee 1
D-60322 Frankfurt am Main
Telefon: +49-69-1525-1752
Telefax: +49-69-1525-1799
mailto:l.svensson@dnb.de 
http://www.dnb.de

Received on Thursday, 21 May 2015 13:12:26 UTC