Giter VIP home page Giter VIP logo

fub-hcc / neonion Goto Github PK

View Code? Open in Web Editor NEW
67.0 23.0 10.0 79.45 MB

neonion is a user-centered collaborative semantic annotation webapp developed at the Human-Centered Computing group at Freie Universität Berlin.

Home Page: http://neonion.org

License: GNU General Public License v2.0

Python 13.70% HTML 19.91% JavaScript 12.60% CSS 26.02% Java 27.70% Dockerfile 0.08%
semantic annotation collaborative python javascript

neonion's Introduction

neonion

neonion is a user-centered, web application for the collaborative annotation of texts developed at the Human-Centered Computing group at Freie Universität Berlin.

neonion supports semantic annotations and open standards but does not presuppose any knowledge about the technologies involved. It is the perfect fit for people who want their annotations to be exchangeable between different tools and projects. Moreover, your annotations can be connected to the linked data cloud.

You can try a demo of neonion. The usage is explained in the user's manual.

Prerequisites

For neonion you need Python with Django installed. In addition, a set of tools and services is needed:

If you want to use ports other than the default ports you can change the environment settings under settings/.

Getting started

Create a virtualenv and install the dependencies for neonion:

virtualenv -p /usr/bin/python2.7 pyenv
source pyenv/bin/activate
pip install -r neonion/requirements.txt

Setup neonion and startup the server:

source pyenv/bin/activate
cd neonion
curl -XPUT -H'Content-Type: application/json' 'http://127.0.0.1:9200/neonion/' -d @mapping.json
python manage.py migrate
python manage.py loaddata fixtures/*
python manage.py runserver

You should now see something like:

Django version 1.7, using settings 'settings.development'
Starting development server at http://127.0.0.1:8000/

Open your browser and navigate to http://127.0.0.1:8000. By default there are two predefined accounts [email protected] and [email protected]. Both have the default password neonion but different rights.

Import the knowledge base from Wikidata

When neonion is running you can import the provided person data with:

source pyenv/bin/activate
cd neonion
python common/knowledge/wikidata/wd_import.py -f elasticsearch/wikidata/

License

GPL2: http://www.gnu.org/licenses/gpl-2.0.html

neonion's People

Contributors

abreitenfeld avatar alexa-schlegel avatar aschle avatar jkatzwinkel avatar lbenedix avatar mackeprm avatar saskali avatar tarekmasoud avatar wleuschner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar

neonion's Issues

Wrong data in the fixtures folder

When following instructions for installing the software the step of data loading fails with:

python manage.py loaddata fixtures/*
Traceback (most recent call last):
  File "manage.py", line 18, in <module>
    execute_from_command_line(sys.argv)
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
    utility.execute()
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/core/management/base.py", line 390, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/core/management/base.py", line 441, in execute
    output = self.handle(*args, **options)
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 60, in handle
    self.loaddata(fixture_labels)
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 90, in loaddata
    self.load_label(fixture_label)
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 147, in load_label
    obj.save(using=self.using)
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/core/serializers/base.py", line 173, in save
    models.Model.save_base(self.object, using=using, raw=True)
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/db/models/base.py", line 738, in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/db/models/base.py", line 803, in _save_table
    forced_update)
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/db/models/base.py", line 853, in _do_update
    return filtered._update(values) > 0
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/db/models/query.py", line 580, in _update
    return query.get_compiler(self.db).execute_sql(CURSOR)
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 1048, in execute_sql
    cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 829, in execute_sql
    cursor.execute(sql, params)
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 79, in execute
    return super(CursorDebugWrapper, self).execute(sql, params)
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/db/utils.py", line 97, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
  File "/home/cebrian/GIT/neonion/pyenv/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py", line 318, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: Problem installing fixture '/home/cebrian/GIT/neonion/fixtures/documents.json': Could not load documents.Document(pk=688cea47c27f11e494e4c42c0303b893): no such column: concept_set_id

seems like there is an incompatibility between the jsons and the SQL schema.

Annotations not loading into PDFs on reload

Thank you for your work on neonion. I have installed it but there is one issue I cannot figure out. If I upload a pdf and comment on it. Then if I exit the PDF and then reload it. The annotations that I previously made do not appear any longer. They get stored in the dB, but they do not show up on reload. Is there any way to fix this? Would a newer version of annotatorjs or pdf.js help? Any help would be appreciated! Thank you!

Scott

PS neonion.org seems to be down.

Install fails with error message

When i follow the readme and try to install the following command:

curl -XPUT -H'Content-Type: application/json' 'http://127.0.0.1:9200/neonion/' -d @mapping.json

drops an error:

curl: (7) Failed to connect to 127.0.0.1 port 9200: Verbindungsaufbau abgelehnt

System is Debian stretch

mapping.json and curl command for update to Elasticsearch 6+

Hi guys -

I see things are upgraded to ElasticSearch 6+. I was trying to run this and you may want to update the following:

The curl command for the mapping.json should be:
curl -XPUT "http://127.0.0.1:9200/neonion/" -H "Content-Type: application/json" -d @mapping.json

Note the -H and the double quotes. The double quotes make it work on Windows, too.

Also, I have attached an updated mapping.json file. Hopefully, it is done correctly. It seems to have worked on my machine (see below).
mapping.zip

Thanks!

Scott

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.