Code Monkey home page Code Monkey logo

library.link's Introduction

Library.Link

Tools for processing data from the Library.Link project

Requires Python 3.6+

Uche Ogbuji < [email protected] >

https://github.com/uogbuji/Library.Link

Use

parse_rdfa

Command Tool to parse RDFa 1.1 Lite (from the Library.Link pages or other HTML). Example:

parse_rdfa --rdfttl=foo.ttl "http://link.houstonlibrary.org/portal/Half-of-a-yellow-sun-Chimamanda-Ngozi/n7KqqbZFJuM/"

Which outputs RDF Turtle to a file foo.ttl

Technical background on the Library.Link network

Network-level resources

Take an ID 2_8BKlrtCTI

There is

The top-level @type in brief.json & feed.json is preferredType

http://library.link/resource/2_8BKlrtCTI/brief.json

library.link's People

Contributors

uogbuji avatar

Stargazers

 avatar

Watchers

 avatar eric miller avatar James Cloos avatar

Forkers

zepheira

library.link's Issues

Requirements differ from instructions in readme

I got the parser working. In addition to :

  • Python 3.4+
  • amara3-xml package
  • html5lib package
  • pytest (for running the test suite)

I also needed to install the package rdflib, and the version of the amara3-xml package found [here](https://pypi.python.org/pypi/amara3-xml/3.0.0a6?
pip install “amara3-iri>=3.0.0a2”).

Installing amara3-xml as in the instruction threw an error at this point:

from amara3 import iri

Installing the other version got the tool working without issue.

Eliminate requests dependency

The function from librarylink.util.all_sites still uses the requests library. Switch to aiohttp. We're already

Note: This will mean updating minimal Python support to 3.5 (limitation comes from latest aiohttp version)

Note: Right now there is a bug where setup.py is missing the requests dependency. That will be addressed by this as well.

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.