nulib / authoritex Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Authoritex.Mock
has no way to know whether a given unregistered URI is from an unknown authority or a missing ID from a known authority.
Per #42, Authoritex.Mock.search("missing_id_authority:whatever")
will return {:error, 404}
, while any other unregistered URI will return {:error, :unknown_authority}
Authoritex.Mock.set_data()
to include a list of known authority prefixes along with the map of IDs and labelsAuthoritex.Mock.fetch()
to check the given URI against the list of registered authority prefixes (using String.starts_with?
is sufficient)
{:error, 404}
{:error, :unknown_authority}
Authoritex's LOC (base) is not handling responses from Bibframe (Instances, Resources and Hubs) and returns an error.
We need to limit the query to not return bibframe results or otherwise handle.
** (CaseClauseError) no case clause matching: {:error, [message: {:bad_response, "<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n <bf:Work rdf:about=\"http://id.loc.gov/resources/works/11480615\" xmlns:bf=\"http://id.loc.gov/ontologies/bibframe/\">\n <bflc:aap xmlns:bflc=\"http://id.loc.gov/ontologies/bflc/\">Happy Pig Collectors Club. happy pig : the official publication of the Happy Pig Collectors Club</bflc:aap>\n <bflc:aap-normalized xmlns:bflc=\"http://id.loc.gov/ontologies/bflc/\">happypigcollectorsclubhappypig:theofficialpublicationofthehappypigcollectorsclub</bflc:aap-normalized>\n <rdf:type rdf:resource=\"http://id.loc.gov/ontologies/bibframe/Text\"/>\n <bf:language>\n <bf:Language rdf:about=\"http://id.loc.gov/vocabulary/languages/eng\">\n\t<rdfs:label xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">English</rdfs:label>\n </bf:Language>\n </bf:language>\n <bf:notation>\n <bf:Script rdf:about=\"http://id.loc.gov/vocabulary/mscript/a\">\n <rdfs:label xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\">Basic roman</rdfs:label>\n </bf:Script>\n </bf:notation>\n <bf:identifiedBy>\n <bf:Lccn>\n <rdf:value>sf 97096996 </rdf:value>\n </bf:Lccn>\n </bf:identifiedBy>\n <bf:identifiedBy>\n <bf:Issn>\n
Link to internal NU issue: https://github.com/nulib/repodev_planning_and_docs/issues/1162
In the interest of time we're coupling 3 lambdas that are potentially very reusable to the greater community into Meadow.
We should extract these into standalone repos and make available to the community.
There is a challenge when extracted of figuring out how to keep Meadow code bases in sync with the lambdas.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.