git clone https://@opensourceprojects.eu/git/p/timbus/context-model/converters/json-xml/windows-dll-web-wrapper-converter timbus-context-model-converters-json-xml-windows-dll-web-wrapper-converter



File Date Author Commit
META-INF 2014-10-23 miguelnunes miguelnunes [6d094f] Resolved commit
src 2014-10-23 miguelnunes miguelnunes [6d094f] Resolved commit
.gitignore 2014-06-19 miguelnunes miguelnunes [dd74c2] Added gitignore
Readme.md 2014-07-04 miguelnunes miguelnunes [ac8bc3] Cleaned code and updated readme
conversionoutput.owl 2014-05-29 miguelnunes miguelnunes [ede192] Updated to DLL DSO
debian-software-converter.iml 2014-05-29 miguelnunes miguelnunes [ede192] Updated to DLL DSO
example-extraction.json 2014-10-23 miguelnunes miguelnunes [6d094f] Resolved commit
output.json 2014-01-27 miguelnunes miguelnunes [5de755] Added special treatment to convert xml. Adapted...
output_2.json 2014-01-24 miguelnunes miguelnunes [637cc1] Working version. Some cleaning to do
pom.xml 2014-10-23 miguelnunes miguelnunes [6d094f] Resolved commit
windows.owl 2014-01-27 miguelnunes miguelnunes [b6c3a9] Individualcontent string was causing conflict. ...

Read Me

Windows DLL Converter

Windows DLL Converter converts the JSON output from the Windows Wrapper Extractor develop by Miguel Nunes 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/windows-dll-web-wrapper-converter

 

Install Requirements

  1. Oracle Java JDK 1.7

 

Format UUID

This version of Windows DLL Converter accepts the format 0997e4b4-e5aa-11e3-b2d9-001e378cabac

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" : "Windows Wrapper Extractor",
    "format" : {
        "id" : "0997e4b4-e5aa-11e3-b2d9-001e378cabac",
        "multiple" : false
    },
      "UUID" : "91dbaf55-b01c-11e3-9422-a58c1d99206c"
}

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 DLL DSO. All dependencies are stored as DLL Packages and each second or higher level dependency is then connected to its parent (The DLL that depends on it) by the "realizes" property.
Other properties to enrich the context and each DLL are available and used: "hasLibraryName", "hasVersion", "hasLocation". However, contrary to conversions utilizing the CUDF DSO, a "realizes" relationship does not specify the required version (specific or with comparator).
 

Author

Miguel Gama Nunes miguel.nunes@caixamagica.pt
Jorge Simões jorge.simoes@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.