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

wasmetadataextractor's People

Contributors

aalsum avatar aaron-collier avatar cbeer avatar dependabot[bot] avatar jcoyne avatar justinlittman avatar mjgiarlo avatar ndushay avatar tallenaz avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

lwrubel mjgiarlo

wasmetadataextractor's Issues

WASMetadataExtractor: update devops docs

devops operations concerns and checklist:

  • indicate not deployed by puppet (why is it in jenkins if there is no puppet tie in? It creates deployed artifacts ... are they really not used?)

  • indicate NOT deployed by was_robot_suite

  • checklist should at least have TODO

    • to turn jenkins build into travis build
    • use coveralls for test coverage
    • add these badges to readme
    • add badge for github release

WASMetadataExtractor: update devops prod checklist

must haves:

  • operations checklist written
  • mailing list (indicate in checklist and ops concerns?)

at least add TODOs for to prod checklist for

  • badges on README for release, and the below,
  • travis build that runs tests (if not deploying from jenkins, remove from jenkins)
  • coveralls for tests (see dlss-wowza for how to use coveralls w java)

see also #5

deploy with capistrano?

Would it be possible and/or make sense if we deploying this code to the was-robots VMs via capistrano? And then the robot code either looked for the jar at execution time, or there was a way to copy or symlink the jar into the robot code during a robot deploy and/or a was-md-extractor deploy?

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.