Code Monkey home page Code Monkey logo

wings-opmw-mapper's Introduction

WINGS_WORKFLOW_PROVENANCE_SCENARIOS

The repository contains the code for the different scenarios, making sure that the mapper exports are consistent.

The extended documentation for the mapper is ongoing work

wings-opmw-mapper's People

Contributors

dependabot[bot] avatar dgarijo avatar ikcap avatar mosoriob avatar tirthmehta avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

wings-opmw-mapper's Issues

Unable to get a Individual from the concreteTemplate (JavaNullPointer)

Describe the bug

Wings tried to obtain the individual, and it does not exist https://www.opmw.org/export/resource/DataVariable/ClimComp_Precipi-5dc4dde3-c4c9-478e-9207-d072b63bc25e_v1_weather

Individual concreteTemplateVariable = concreteTemplateExport.getOpmwModel().getIndividual(concreteTemplateVariableURI);
Execution does not exist! Publishing new execution
Execution expanded template http://localhost:8080/export/users/mint/MINT-production/executions/ClimComp_Precipi-5dc4dde3-c4c9-478e-9207-d072b63bc25e.owl# loaded successfully
WINGS Template hash: 12bc10fd707baeac3e6d68c3aee34e10
Template ClimComp_Precipi-5dc4dde3-c4c9-478e-9207-d072b63bc25e has already been published as https://www.opmw.org/export/resource/WorkflowTemplate/ClimComp_Precipi-5dc4dde3-c4c9-478e-9207-d072b63bc25e_v1
https://www.opmw.org/export/resource/WorkflowTemplate/ClimComp_Precipi-5dc4dde3-c4c9-478e-9207-d072b63bc25e_v1
java.lang.NullPointerException
        at org.apache.jena.rdf.model.impl.ModelCom.add(ModelCom.java:1202)
        at org.apache.jena.rdf.model.impl.ResourceImpl.addProperty(ResourceImpl.java:299)
        at edu.isi.wings.opmm.WorkflowExecutionExport.convertExecutionToOPMW(WorkflowExecutionExport.java:262)

To Reproduce
Steps to reproduce the behavior:

  1. Export any cycles execution of mint production domain

Add redirect w3id.org/wings/export

No, this one we need to add the right redirect. We need to discuss a
methodology. And the pending conversation is the link back to
ontosoft/model catalog.

El mié., 27 feb. 2019 12:16 p. m., Maximiliano Osorio <
[email protected]> escribió:

Assigned #9
#9
to @dgarijo https://github.com/dgarijo.


You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
#9 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABc0GtioyiHJfuCidPKdntIxP79udxspks5vRuemgaJpZM4bVXc3
.

Originally posted by @dgarijo in #9 (comment)

Source of components not yet exported

Is your feature request related to a problem? Please describe.
The source used for a component (i.e., the model catalog URI of the model config) is not exported. It should.

Describe the solution you'd like
That when I export an activity of a component, in the software configuration associated to it we can find the source (model catalog URI)

URI ontology needs replace or is an error

For example:

     @prefix j.3:   <http://www.opmw.org/ontology/> .
<http://www.opmw.org/export/resource/WorkflowExecutionArtifact/Caesar_Cypher-1f-f788bcd8-75d9-4996-974d-ef6a442a36da_EncryptedDocument>
        a                   j.3:WorkflowExecutionArtifact ;

Thus, the type of resource is:
http://www.opmw.org/ontology/WorkflowExecutionArtifact
However, http://www.opmw.org/model/OPMW/WorkflowExecutionArtifact doesn't exist.

http://www.opmw.org/model/OPMW#WorkflowExecutionArtifact exist.

Do you except replace / to # or is an error?

Edit label for the execution accounts

I would like the label to reflect the date when it was created, on a readable manner.
Right now they say something like : Execution account created on 1461051226867.
Instead, it should be something like: Execution of template on 7/16/2017:2:37PM PT

Check if the literals are null

Describe the bug

The code generates many null exceptions

        if(rs.hasNext()){
            //variables to extract: ?doc ?contrib ?time ?license
            QuerySolution qs = rs.next();
            try{
                Literal docContent = qs.getLiteral("?doc");
                wtInstance.addLiteral(opmwModel.createProperty(Constants.OPMW_DATA_PROP_HAS_DOCUMENTATION), docContent);
            }catch(Exception e){}
            try{
                Literal contrib = qs.getLiteral("?contrib");
                OntClass agentClass = opmwModel.createClass(Constants.OPM_AGENT);
                Individual contributor = agentClass.createIndividual(Constants.PREFIX_EXPORT_RESOURCE+
                        Constants.CONCEPT_AGENT+"/"+URLEncoder.encode(""+contrib, "UTF-8"));
                contributor.addLabel(contrib);
                wtInstance.addProperty(opmwModel.createProperty(Constants.PROP_HAS_CONTRIBUTOR), contributor);
            }catch(Exception e){}
            try{
                Literal timeLastModified = qs.getLiteral("?time");
                wtInstance.addLiteral(opmwModel.createProperty(Constants.DATA_PROP_MODIFIED), timeLastModified);
            }catch(Exception e){}
            try{
                Literal userVersion = qs.getLiteral("?version");
                wtInstance.addLiteral(opmwModel.createProperty(Constants.OPMW_DATA_PROP_RELEASE_VERSION), userVersion);
            }catch(Exception e){}
            try{
                Literal license = qs.getLiteral("?license");
                wtInstance.addLiteral(opmwModel.createProperty(Constants.DATA_PROP_RIGHTS), license);
            }catch(Exception e){//no license declared, add license by default
                opmwModel.add(wtInstance,opmwModel.createProperty(Constants.DC_LICENSE),"http://creativecommons.org/licenses/by/3.0/",
                        XSDDatatype.XSDanyURI);
            }
        }

To Reproduce
Steps to reproduce the behavior:

  1. Export a execution

Expected behavior
Check if the literals are null

Create a new rdf dataset per test

Is your feature request related to a problem? Please describe.
Test must be start clean

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Domain is exported incorrectly

Describe the bug
The domain for https://www.opmw.org/export/resource/WorkflowTemplate/cycles_v2_standa-a1eac1b5-3eb5-4d86-9fe5-f13b28e0f9e1_v1 should not be cycles_v2_standa-a1eac1b5-3eb5-4d86-9fe5-f13b28e0f9e1.owl#

To Reproduce
Go to https://www.opmw.org/export/resource/WorkflowTemplate/cycles_v2_standa-a1eac1b5-3eb5-4d86-9fe5-f13b28e0f9e1_v1 and check property hasDomain

Expected behavior
The domain should be "mint". There is a wrong assumption on where to extract it from the URL of the template. It should be a parameter.

`Mapper.main` add `TriplesPublisher`

Is your feature request related to a problem? Please describe.

      Mapper.main(domain, exportPrefix, exportUrl, catalogRepositoryDirectory, componentLibraryFilePath, planFilePath,
          endpointQueryURI, endpointPostURI, executionFilePath, expandedTemplateFilePath, abstractFilePath,
          filePublisher, serialization);

The following parameters can be group in the TriplesPublisher

  • endpointQueryURI
  • endpointPostURI
  • exportUrl
  • exportPrefix
  • serialization

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

File metadata is not exported

Is your feature request related to a problem? Please describe.
Metadata fields used for data in executions are not exported in the provenance export. This means that any custom metadata added in a file, such as the data catalog dataset id, will not not be exported.

Describe the solution you'd like
I would like the custom metadata to be exported.

Obtain Documentation of the Component

Is your feature request related to a problem? Please describe.
Export the Documentation of the component

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
image

HasLocation still redirects to local path

Describe the bug
See https://www.opmw.org/page/export/resource/WorkflowExecutionArtifact/ClimComp_Precipi-90455b3a-0079-4a54-a444-a39fd1959e2b_weather

To Reproduce
Go to https://www.opmw.org/page/export/resource/WorkflowExecutionArtifact/ClimComp_Precipi-90455b3a-0079-4a54-a444-a39fd1959e2b_weather and check the hasLocation property

Expected behavior
Should have a path to the uploader URL, or the WINGS URL if the file is too big (server, not local path)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.