- From: Daniel Garijo <dgarijo@delicias.dia.fi.upm.es>
- Date: Mon, 1 Jun 2015 15:40:15 +0200
- To: "Svensson, Lars" <L.Svensson@dnb.de>
- Cc: "public-prov-comments@w3.org" <public-prov-comments@w3.org>
- Message-ID: <CAExK0DddQEOq4GL-Ct+VNGkytPn00wsnynTMUsQxwPfwSjsrhg@mail.gmail.com>
If I understood correctly then it could be modeled by having a single
activity that uses and produces the documents,
which are then linked with the "wasDerivedFrom" relationship to their
sources:
:aNightlyProcess2015-05-21 a prov:Activity ;
prov:used :someConfiguration, :doc1, :doc2 ;
prov:startedAtTime "2015-05-21T02:16:03"^^xsd:dateTime ;
prov:endedAtTime "2015-05-21T02:17:20"^^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".
:record1 a prov:Entity, ex:MetadataRecord ;
rdfs:label "this is a record created by the nightly process
finishing on May 21st"@en ;
prov:wasGeneratedBy :aNightlyProcess2015-05-21 ;
prov:wasDerivedFrom :doc1;
prov:generatedAtTime "2015-05-21T02:16:58"^^xsd:date .
:record2 a prov:Entity, ex:MetadataRecord ;
rdfs:label "this is another record created by the nightly process
finishing on May 21st"@en ;
prov:wasGeneratedBy :aNightlyProcess2015-05-21 ;
prov:wasDerivedFrom :doc2;
prov:generatedAtTime "2015-05-21T02:17:19"^^xsd:date .
(Apologies for possible syntax errors on the rdf, I haven't validated it).
Would this work? If you want to be more restrictive, you may use the
"prov:hadPrimarySource" relationship.
Best,
Daniel
2015-06-01 15:26 GMT+02:00 Svensson, Lars <L.Svensson@dnb.de>:
> Hi Daniel,
>
> > that looks ok to me, as long as both nightly processes are independent.
> If you
> > have a single nightly process that processes all the 5000 documents,
> then you
> > would have a single activity. I also depends on the level of granularity
> you want
> > to track :)
>
> OK, thanks for the feedback. Essentially it's one process that takes one
> document at the time and creates a metadata record from it. The point is
> that I couldn't find a way to relate the input document to the created
> metadata if I have only one process/activity for all documents. Do you have
> an idea how to express that with only one activity?
>
> Best,
>
> Lars
>
> > 2015-06-01 9:40 GMT+02:00 Svensson, Lars <L.Svensson@dnb.de>:
> > Hi Paul,
> >
> > On Saturday, May 30, 2015 5:39 PM, Paul Groth wrote:
> >
> > > > On May 30, 2015, at 17:24, Svensson, Lars <L.Svensson@dnb.de> wrote:
> > > >
> > > >> On Thursday, May 21, 2015 3:12 PM, Svensson, Lars wrote:
> > > >>
> > > >> 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?
> > > >
> > > > Having thought of my question, my best guess is that when I process
> one
> > > document I need one instance of prov:Activity. I. e. if I process 5,000
> > documents
> > > per night, I have 5,000 activities. All of those share one common
> prov:Plan.
> > > >
> > > > Could anyone confirm that my guess is correct?
> >
> > > Yes that's correct. An activity is an execution of a plan.
> >
> > Great, thanks Paul.
> >
> > So this would be correct:
> >
> > :record1 a prov:Entity, ex:MetadataRecord ;
> > rdfs:label "this is a 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 another record created by the nightly
> process finishing
> > on May 21st"@en ;
> > prov:wasGeneratedBy :anotherNightlyProcess2015-05-21 .
> > prov:generatedAtTime "2015-05-21T02:17:19"^^xsd:date .
> >
> > :aNightlyProcess2015-05-21 a prov:Activity ;
> > prov:used :someConfiguration, :someInputDataSuchAsADocument ;
> > prov:startedAtTime "2015-05-21T02:16:03"^^xsd:dateTime ;
> > prov:endedAtTime "2015-05-21T02:16:59"^^xsd:dateTime ;
> > prov:qualifiedAssociation [
> > a prov:Association ;
> > prov:agent :aPieceOfSoftware ;
> > prov:hadPlan :aProcessPlan
> > ] .
> >
> > :anotherNightlyProcess2015-05-21 a prov:Activity ;
> > prov:used :someConfiguration,
> > :someOtherInputDataSuchAsAnotherDocument ;
> > prov:startedAtTime "2015-05-21T02:17:00"^^xsd:dateTime ;
> > prov:endedAtTime "2015-05-21T02:17:20"^^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"
> > .
> >
> > Thanks,
> >
> > Lars
> >
> > > >
> > > > Thanks,
> > > >
> > > > 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 Monday, 1 June 2015 13:40:44 UTC