Git Product home page Git Product logo

pybibframe's People

Contributors

uogbuji avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

zepheira

pybibframe's Issues

marcbin2xml fails with TypeError

$ marcbin2xml -o marc.xml stf.00.mrc

Traceback (most recent call last):
File "/Users/azaroth/install/bin/marcbin2xml", line 58, in
run(inputs=args.inputs, limit=args.limit, out=args.out, verbose=args.verbose)
File "/Users/azaroth/install/bin/marcbin2xml", line 36, in run
print >> out, TEMPLATE_TOP
TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and '_io.TextIOWrapper'

bfconvert requires a config

Following, again, the recipe in the readme:

>>> from bibframe.reader.marcxml import bfconvert
>>> inputs = open('/Users/azaroth/Downloads/29-7297576.xml', 'r')
>>> out = open('resources.versa.json', 'w')
>>> bfconvert(inputs=inputs, base='http://linked-data.stanford.edu', out=out)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/azaroth/install/lib/python3.4/site-packages/bibframe/reader/marcxml.py", line 133, in bfconvert
    for pc in config.get(u'plugins', []):
AttributeError: 'NoneType' object has no attribute 'get'

parse_versa requires amara3

Traceback (most recent call last):
  File "/Users/azaroth/install/bin/parse_versa", line 24, in <module>
    from versa.reader.md import from_markdown
  File "/Users/azaroth/install/lib/python3.4/site-packages/versa/reader/md.py", line 18, in <module>
    from amara3.uxml.parser import parse, event
ImportError: No module named 'amara3.uxml'

pip3 install amara gets amara-2.0.0 which doesn't install.
pip3 install amara3 doesn't find anything.

Giving up.

Accommodate multiple languages/scripts for text fields

At the Early Implementor meeting it was brought up that Z's pipeline is not handling e.g. 880 variant language/script info. We should be able to encode language tags, which of course is just what's supported by e.g. xml:lang. This will require some elaboration of Resource/label in the model to accommodate this metainfo. We could, for example elevate label to a primary resource type ("LanguageText" or something) which could be inlined in most usage (e.g. using xml:lang).

Note: A useful resource is the XSLT used in the latest version of marc2mods. See e.g. the xxx880, yyy880, z2xx880, z3xx880.

marc2bf hangs

Command line from the readme used:

 marc2bf -o resources.versa.json -r resources.ttl marc.xml

creates the two output files at length 0 and then hangs when getting events:

  File "/Users/azaroth/install/bin/marc2bf", line 60, in <module>
    run(inputs=args.inputs or sys.stdin, base=args.base, out=args.out, limit=args.limit, rdfttl=args.rdfttl, config=args.config, verbose=args.verbose, mods=args.mod)
  File "/Users/azaroth/install/bin/marc2bf", line 30, in run
    bfconvert(inputs=inputs, base=base, out=out, limit=limit, rdfttl=rdfttl, config=config, verbose=verbose, logger=logger)
  File "/Users/azaroth/install/lib/python3.4/site-packages/bibframe/reader/marcxml.py", line 157, in bfconvert
    loop.run_forever()
  File "/Users/azaroth/install/lib/python3.4/asyncio/base_events.py", line 184, in run_forever
    self._run_once()
  File "/Users/azaroth/install/lib/python3.4/asyncio/base_events.py", line 795, in _run_once
    event_list = self._selector.select(timeout)
  File "/Users/azaroth/install/lib/python3.4/selectors.py", line 494, in select
    kev_list = self._kqueue.control(None, max_ev, timeout)
KeyboardInterrupt

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.