freshie / ml-taxonomies

A simple tool for managing taxonomies in marklogic
Apache License 2.0
0 stars 1 forks source link

Ontology Management Features #4

Open freshie opened 8 years ago

freshie commented 8 years ago

Currently the only way to manage the content, triples, concepts and taxonomies, is through editing the xml in the content folder and do an ml environment deploy content.

This enhancement would allow for a user interface for managing the triples. The user will be able to edit, create and delete triples, concepts and taxonomies.

The user management will be driven through MarkLogic security roles and users. By default the user will be logged in a the application user, which just has view only privileges and a log in link will be displayed on the top right where they can click on it and log in with a Marklogic user. There will be a new role created for editing and a demo user will be created with this editing role to display this feature.

If a user has the edit role they will be able to see an edit button on a concept in the search or browse page. If they wish to edit the concept they can click the button and it will bring them to an edit page.

The edit page will show the concept with all the triples that have a subject as that concept. They will be able to edit the triples with in this concept. There will also be a delete button per triple, where the user can delete a triple and a delete button on the concept. If they user deletes the whole concept all the triples with that concept are also deleted. (Might have to break up and spawn off the deletes)

If a user has the edit role they will be able to see an edit button on a taxonomy on the home page. If they wish to edit the taxonomy they can click the button and it will bring them to an edit page.

The edit page will display the current information about the taxonomy like Title, description, predicates and base IRI. The user will be able to edit the Taxonomies information here. There will also be a delete button, if they delete the taxonomy all triples in that taxonomy will be deleted. (Might have to break up and spawn off the deletes)

If a user is logged in, there will be an add menu added to the right hand navigation bar. There will be an add concept, add taxonomy and add triple link.

The add concept link will take a user to a page that looks very much like a concept page now. And they will be able to add a name to the concept. And add as many other triples to this concept, all the triples added will have the concept as its subject. The triple will be added to the current taxonomy that the user is in.

The add triple link will allow the user to add a triple with whatever subject and object they want and will populate a drop down with all the predicates for the current taxonomy. The triple will be added to the current taxonomy.

The add taxonomy will look much like the edit taxonomy page and will allow the user to create a new taxonomy. They will have to at least have a title, description, base IRI and at least one predicate.

freshie commented 8 years ago

starting working on this in a branch called 4-ontology-management-features

freshie commented 8 years ago

going to start by creating the demo user and editor role

freshie commented 8 years ago

Finished the demo user with the editor role and created a unit test for it. Push this to the feature branch

freshie commented 8 years ago
freshie commented 8 years ago
freshie commented 8 years ago
freshie commented 8 years ago
freshie commented 8 years ago