Giter Club home page Giter Club logo

controlledvocabularymanager's Introduction

Controlled Vocabulary Manager

Circle CI Coverage Status Code Climate

Overview

Rails app connected to Blazegraph for managing local controlled vocabularies for Oregon Digital. Currently powering http://OpaqueNamespace.org

Local Development Setup

Requires: Ruby 2.5, Java 8 for Blazegraph

git clone https://github.com/OregonDigital/ControlledVocabularyManager.git
cd ControlledVocabularyManager
bundle install
bundle exec rake triplestore_adapter:blazegraph:reset
bundle exec rake db:create && bundle exec rake db:migrate
bundle exec rake git_dev:create_dev_repo
bundle exec rake sunspot:solr:start

Start the servers:

bundle exec rails server

You can browse the app via http://localhost:3000, and check on the blazegraph server at http://localhost:9999/blazegraph

Create admin user

In order to do anything, you'll need to create a user with admin privileges.

With the application loaded, click the 'Login' link in the top-right. Then click 'Sign up' and fill out the form.

Once the user is created, open a new terminal window and run:

bundle exec rails console
me = User.first
# You should see a User object returned with the name and email you created
me.role = 'admin reviewer editor'
me.save

Now refresh the application in the browser. You should see an Admin Dashboard link in the top-right 'profile' menu to manage users, a Review link in the top navigation, and on the Vocabularies page you should see a button to create a new one.

controlledvocabularymanager's People

Contributors

decimalator avatar dependabot[bot] avatar jechols avatar lsat12357 avatar luisgreg99 avatar mickeroo avatar revgum avatar straleyb avatar wickr avatar

Stargazers

 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

controlledvocabularymanager's Issues

Editing vocabularies doesn't work

It's using term validations and thus can't find which vocab it's in - since it IS the vocab. We probably need a vocab #edit/#update.

Add capability for multiple attributes

On the edit form, there should be a way to add multiple labels, etc. Although we should probably decide what attributes there can be multiple instances of.

flow for logging in

A proper flash message for unauthorized, allow them to see the root page, and make the log in button work

Is `repository` being used properly?

I suspect I'm just confused, but looking at things like the TermForm, it allows repository to be, e.g., TermFactory instead of an RDF::Marmotta instance. This makes calls to #exists? very different if you're using a form object vs. what GraphToTerms returns. From the injector, tracing through the stack determines that calling term_form.repository.exists? calls TermFactory, which calls Term, which eventually hits our active triples adapter. But calling term_form.__getobj__.repository.exists? doesn't work, as RDF::Marmotta is the Term object's repository, and it has no exists? method.

Should we be calling exists? on the repository? Or should we make something smarter for existence check that use the Term/Vocabulary class instead?

Clean up header tags

Let's use CSS to make it pretty, but only use <h#> tags where they make sense, and fall into a hierarchy (i.e., no <h2> followed by an <h4> with no <h3> in between)

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.