Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand W3C PROV implementation #71

Open
JasperVanDenBosch opened this issue Jan 5, 2016 · 1 comment
Open

Expand W3C PROV implementation #71

JasperVanDenBosch opened this issue Jan 5, 2016 · 1 comment

Comments

@JasperVanDenBosch
Copy link
Owner

Some fields and how to represent them

location nfo:fileUrl
size nfo:fileSize
hash nfo:filehash
created either fileLastModified on entity and prov:time on wasGeneratedBy
transformation prov:activity, prov:wasGeneratedBy
id dct:identifier
acquired prov:time on wasGeneratedBy with prov:type niprov:acquisition. Only on raw data
subject prov:entity + foaf:name
parent prov:used
project
path
hostname
added
transient
dimensions
protocol
code
logtext
script prov:plan or on the prov:activity
args
kwargs
seriesuid
filesInSeries
technique
repetition-time
field-of-view
epi-factor
diffusion

How to deal with parent files

Use location - > local id cache dict.
After provided items have been made into entities, create entities for remaining entries

Useful links

@JasperVanDenBosch
Copy link
Owner Author

Example as of Jan 13:

<?xml version="1.0" encoding="UTF-8"?>
<prov:document xmlns:dct="http://purl.org/dc/terms/" xmlns:nfo="http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#" xmlns:prov="http://www.w3.org/ns/prov#">
    <nfo:FileHash id="niprov:file0.hash">
        <nfo:hashAlgorithm>MD5</nfo:hashAlgorithm>
        <nfo:hashValue>d41d8cd98f00b204e9800998ecf8427e</nfo:hashValue>
    </nfo:FileHash>
    <prov:activity id="niprov:file0.xform">
        <dct:title>kaboom</dct:title>
    </prov:activity>
    <prov:wasGeneratedBy>
        <prov:entity prov:ref="niprov:file0"/>
        <prov:activity prov:ref="niprov:file0.xform"/>
        <prov:time>2016-01-13T16:19:19.763135</prov:time>
    </prov:wasGeneratedBy>
    <prov:entity id="niprov:file0">
        <nfo:fileUrl>file://JVDB/home/jasperb/Projects/niprov/newfile.txt</nfo:fileUrl>
        <nfo:fileSize>0</nfo:fileSize>
        <nfo:fileLastModified>2016-01-13T16:19:19.763135</nfo:fileLastModified>
        <nfo:hasHash>niprov:file0.hash</nfo:hasHash>
    </prov:entity>
</prov:document>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant