taverna-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Menaka Madushanka <menaka12...@gmail.com>
Subject Re: [jira] [Commented] (TAVERNA-844) Request for an RO validator
Date Tue, 21 Jul 2015 19:36:23 GMT
My initial thought was like this....
If the aggregates are not present in the zip file, there will be an error
state:- Aggregate not found error and the list of missing aggregates will
be shown.

If the .ro/manifest is not in the file, :- NoManifestFoundError.

I did not considered about the web urls and as well as annotations. I'll
work on that too.

Cheers.
Menaka

On 21 July 2015 at 15:56, Stian Soiland-Reyes <stain@apache.org> wrote:

> Great stuff!
>
> Your plan looks good. Would the output be similar as from the scuf2
> validator?
>
> As for the aggregates there are two cases:
>
> a) A file is listed (e.g. relative URI), but is not in the RO bundle.
> This is an error
> b) An external URI is listed. It might or might not exist on the web -
> that could be more like a warning
> c) A file is in the ZIP (outside .ro/), but not listed in the
> aggregates. This should be some kind of info-level warning.
>
> Additionally:
>
> In the annotations, https://w3id.org/bundle#manifest-annotations - we
> require that "about" is some resource in the RO somehow.. the possible
> 'about' here might be a bigtlist, but I think as a minimum it should
> give an error if it is about a /-based resource that is not the RO
> itself and is not aggregated.
>
>
>
>
>
> On 20 July 2015 at 21:40, Menaka Madushanka <menaka12350@gmail.com> wrote:
> > Hi everyone,
> >
> > I created the validator for check whether there is .ro/manifest file and
> > check for the aggregates are exists. Now I'm working on the structure of
> > validation report.
> >
> > cheers
> > Menaka
> >
> > On 17 July 2015 at 02:19, Menaka Madushanka (JIRA) <jira@apache.org>
> wrote:
> >
> >>
> >>     [
> >>
> https://issues.apache.org/jira/browse/TAVERNA-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14630301#comment-14630301
> >> ]
> >>
> >> Menaka Madushanka commented on TAVERNA-844:
> >> -------------------------------------------
> >>
> >> Research object bundle validator
> >> *The validation process for ro bundles will be as follows.
> >> 1. Validate steps.
> >>      Check the mimetype
> >>               The mimetype should be
> application/vnd.wf4ever.robundle+zip
> >>      Check for the .ro folder
> >>               Check the .ro/manifest.json file
> >>               Validate the content of the bundle by checking the
> >> aggregates.
> >>
> >> 2. Validation Report structure
> >>              If the mimetype is not correct:
> >>                      Invalidmimetype error
> >>              If the manifest file is not present:
> >>                      manifest not found error
> >>               If the aggregates are not found or invalid:
> >>                      invalid aggregate error - aggregate/s name
> >>
> >> Reference:
> >> https://researchobject.github.io/specifications/bundle/
> >>
> >>
> >> > Request for an RO validator
> >> > ---------------------------
> >> >
> >> >                 Key: TAVERNA-844
> >> >                 URL:
> https://issues.apache.org/jira/browse/TAVERNA-844
> >> >             Project: Apache Taverna
> >> >          Issue Type: New Feature
> >> >          Components: Taverna Language
> >> >            Reporter: martin scharm
> >> >            Assignee: Menaka Madushanka
> >> >            Priority: Minor
> >> >
> >> > I'm looking for some code to check/validate if a given container is a
> >> Research Object. Currently, the RO library just consumes like
> everything.
> >> If I open a non-RO container it simply deploys a fresh RO-manifest and
> >> tells me that it is an RO.
> >> > It would be nice to have a method that checks if a certain file is an
> >> RO. E.g. this method could check if the mime type is set correctly and
> if
> >> there is a proper manifest. A validator could also check if the
> manifest is
> >> correct/up-to-date etc.
> >>
> >>
> >>
> >> --
> >> This message was sent by Atlassian JIRA
> >> (v6.3.4#6332)
> >>
> >
> >
> >
> > --
> > Menaka Madushanka Jayawardena
> > Faculty of Engineering, <http://www.pdn.ac.lk/eng>
> > University of Peradeniyaya.
> > LinkedIn <http://lk.linkedin.com/in/menakajayawardena>
>
>
>
> --
> Stian Soiland-Reyes
> Apache Taverna (incubating), Apache Commons RDF (incubating)
> http://orcid.org/0000-0001-9842-9718
>



-- 
Menaka Madushanka Jayawardena
Faculty of Engineering, <http://www.pdn.ac.lk/eng>
University of Peradeniyaya.
LinkedIn <http://lk.linkedin.com/in/menakajayawardena>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message