Giter Club home page Giter Club logo

wasmetadataextractor's Introduction

Build Status Coverage Status

WAS Metadata Extractor

Java code used to extract metadata from web archiving ARC and WARC files, used by WAS crawl preassembly robot WF.

Deployment of the jar is part of deployment tasks in was_robot_suite, via an artifact created at jenkinsqa. The deployed was_robot_suite houses the WASMetadataExtractor.jar in the jar directory.

Build

mvn install

Configuration

WAS Metadata Extractor depends on config/extractor.yml which describes the file types and the expected headers in each file.

Format of extractor.yml

ARC:
 id:
  type: Headers
  path: "ARC-Filename"
  • Line 1. File type
    • Line 2. properties name
      • Line 3. the type of how to get this value
      • Line 4. the location of this value based on the properties type

Other types can have different properties.

Usage

List usage command

java -jar WASMetadataExtractor-0.0.2-SNAPSHOT-jar-with-dependencies.jar  -h
usage: WASMetadataExtractor
 -c,--config <file>                 YAML configuration file to extract the
                                    metadata.
    --collectionId <collectionId>   Collection id as it should appear in
                                    metadata files. It shouldn't have
                                    space.
    --crawlId <crawlId>             The crawl id as it should appear in
                                    metadata file.
 -d,--inputdir <directory>          The direcotyry of ARC/WARC file to be
                                    processed.
 -f,--format <XML|TXT>              The output format, TXT is the default.
 -h,--help                          Display help
 -i,--inputfile <file>              An input file that has a list of
                                    ARC/WARC files to be processed.
 -o,--outputFile <file>             The output file.

Run Tests

mvn test -B

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.