Giter Site home page Giter Site logo

metafacture / metafacture-core Goto Github PK

View Code? Open in Web Editor NEW
69.0 23.0 34.0 7.49 MB

Core package of the Metafacture tool suite for metadata processing.

Home Page: https://metafacture.org

License: Apache License 2.0

GAP 0.46% Java 99.19% JavaScript 0.01% Batchfile 0.10% Shell 0.24%
metafacture metadata-processing java-library metamorph code4lib

metafacture-core's People

Contributors

ah641054 avatar blackwinter avatar cboehme avatar dr0i avatar emopers avatar fsteeg avatar hagbeck avatar jschnasse avatar katauber avatar larsgsvensson avatar malieva avatar mbuechner avatar miku avatar philboeselager avatar schaeferd avatar sschuepbach avatar thaidlas avatar thomasseidel avatar tobiasnx avatar

Stargazers

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

Watchers

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

metafacture-core's Issues

Provide support for nested module

Some modules are built as wrappers around other modules. Currently, this is clumsy to implement as all method calls have to be relayed manually from the wrapper module to the inner module. Additionally, using the Default*Pipe implementations because difficult as they automatically forward resetStream() and closeStream() events.

Checked vs. unchecked MetafactureException

MetafactureException is currently an unchecked exception. However, this makes it necessary to catch RuntimeException (which is bad style according to checkstyle).

This raises two questions:

  1. Should MetafactureException be checked?
  2. Should the system be able to recover from unchecke exceptions?

Inherit flushwith and reset from parent

Currently, the nesting of collectors has no effect on the behaviour of flushWith and reset. However, from the user's perspective morph scripts might be easier to understand if collectors would inherit the flushWith and reset setting from their parent. What do you think, @mgeipel?

Remove cg-xml support

Except for some test cases the cg-xml format is not used much. Formeta offers a much more concise syntax and should be used instead.

Extract parser from FormetaDecoder

The parser classes should not be part of the FormetaDecoder to allow for reusability and to simply the interface of the decoder module (it does not need to support partial records any more).

Allow A java class to act as <map>

This is similar to the function tag.

Example:

<maps>
   <javamap name="myJavaMap" class="org.culturegraph.MyMap" attributeA="xy"/>
</maps>

Clarify the reusability of modules after calling closeStream()

At the moment the semantics of the LifeCycle.closeStream() method is not consistently implemented. Some modules can be reused after calling closeStream() while others cannot. However, the contract of the closeStream() methods clearly states that the module should not be used after having closed it.

Many test cases rely on the ability to reuse certain modules even after closeStream() has called. This violates the contract. This should be fixed.

Test

this is a test

Extract Formatters from FormetaEncoder

The Formatter classes defined in FormetaEncoder can also be handy outside of a module or in other modules. The should probably be moved to the utility package.

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.