This notebook demonstrates the transformation of a submission workflow form to a W3C-Prov conforming representation. The main purpose of this is to have the form information represented in a widely adopted standards conforming way, for which generic storage, search and traversal mechanisms are available and will be built in the future.
Model is along the concept described in https://www.w3.org/TR/prov-primer/
In [ ]:
from IPython.display import display, Image
Image(filename='../../key-concepts.png')
In [ ]:
# provide the file location of your form json file
# as a result a provenance graph is built based on a predefined workflow template
from dkrz_forms import utils
prov_graph = utils.gen_prov_graph('/opt/jupyter/notebooks/form_directory/CORDEX/CORDEX_mm_mm.json','all')
In [ ]:
# execute this cell to produce a dot file representation for display
%matplotlib inline
prov_graph.plot()
currently the namespace definitions in the generated provenance representation are not aligned with available well defined definition. This will be adapted in the future, example namespace definitions which will be exploited include: (from DOI: 10.3390/ijgi5030038 , mehr unter https://github.com/tsunagun/vocab/blob/master/all_20130125.csv)
owl Web Ontology Language http://www.w3.org/2002/07/owl#
dctype DCMI Type Vocabulary http://purl.org/dc/dcmitype/
dco DCO Ontology http://info.deepcarbon.net/schema#
prov PROV Ontology http://www.w3.org/ns/prov#
skos Simple Knowledge
Organization System http://www.w3.org/2004/02/skos/core#
foaf FOAF Ontology http://xmlns.com/foaf/0.1/
vivo VIVO Ontology http://vivoweb.org/ontology/core#
bibo Bibliographic Ontology http://purl.org/ontology/bibo/
xsd XML Schema Datatype http://www.w3.org/2001/XMLSchema#
rdf Resource Description
Framework http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs Resource Description
Framework Schema http://www.w3.org/2000/01/rdf-schema#