git clone https://@opensourceprojects.eu/git/p/timbus/context-model/converters/json-xml/perl-modules-converter timbus-context-model-converters-json-xml-perl-modules-converter



File Date Author Commit
META-INF 2014-09-24 miguelnunes miguelnunes [a47901] Small fix
output 2014-05-26 miguelnunes miguelnunes [97db3c] First commit
src 2015-01-02 miguelnunes miguelnunes [7c94f1] Cleaned cmdesktop author header
.gitignore 2014-05-26 miguelnunes miguelnunes [a11d54] Changed gitignore
Readme.md 2015-01-02 miguelnunes miguelnunes [9afac4] Updated Readme
build.properties 2014-05-26 miguelnunes miguelnunes [97db3c] First commit
catalog-v001.xml 2014-07-07 miguelnunes miguelnunes [44c55c] Corrected Readme
conversionoutput2 2014-05-28 miguelnunes miguelnunes [405032] In developing. Adapted to content
phaidra_example.owl 2014-05-26 miguelnunes miguelnunes [97db3c] First commit
pom.xml 2015-01-02 miguelnunes miguelnunes [7c94f1] Cleaned cmdesktop author header

Read Me

Perl Modules Converter

Perl Modules Converter converts the JSON output from the Perl Modules Extractor develop by Nuno Martins and converts it to Context, required for further preservation.

 

How to get the code

git clone https://@opensourceprojects.eu/git/p/timbus/context-model/converters/json-xml/perl-modules-converter timbus-context-model-converters-json-xml-perl-modules-converter

 

Install Requirements

  1. Oracle Java JDK 1.7

 

Format UUID

This version of Perl Modules Converter accepts the format d7f5e025-9daa-11e3-ab53-e3e54faab75e

Required input

The common formating for an extraction includes the name of the extractor in question, a UUID from the extraction and a format. This format, as showed below, is a JSON Object displaying the format UUID (section above) and a boolean to indicate whether the result contains multiple extractions or not. Cases in which this is true are the Extractor Wrappers.
An example of an individual extraction is shown below.

1
2
3
4
5
6
7
8
{
    "extractor" : "Perl Modules Extractor",
    "format" : {
        "id" : "d7f5e025-9daa-11e3-ab53-e3e54faab75e",
        "multiple" : false
    },
      "UUID" : "91dbaf55-b01c-11e3-9422-a58c1d99206b"
}

NOTE: Whereas the extractor name is optional, conversion format is mandatory. This converter will NOT be visible to the Converters API unless the format is provided.

 

Expected output

This module converts from JSON to OWL, more specifically to DIO and the CUDF DSO. All main dependencies are stored as CUDF Packages and each dependency is then represented by a VersionedPackage and connected to the main package by the realizedBy property. This connection includes other properties such as the version comparator.
When a Perl Module provides others, these are represented as VirtualPackages and connected to the main Package by the provides property.

 

Author

Miguel Gama Nunes miguel.nunes@caixamagica.pt

 

License

Copyright (c) 2014, Caixa Magica Software Lda (CMS).
The work has been developed in the TIMBUS Project and the above-mentioned are Members of the TIMBUS Consortium.
TIMBUS is supported by the European Union under the 7th Framework Programme for research and technological development and demonstration activities (FP7/2007-2013) under grant agreement no. 269940.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTIBITLY, or FITNESS FOR A PARTICULAR PURPOSE. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law or agreed to in writing, shall any Contributor be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work.
See the License for the specific language governing permissions and limitation under the License.