Giter Site home page Giter Site logo

ximdex / drupal7-xowl-client Goto Github PK

View Code? Open in Web Editor NEW
1.0 17.0 0.0 700 KB

Drupal 7 module for Xowl service (named entity recognition using semantic technologies)

Home Page: http://demo.ximdex.com/xowl

CSS 7.23% PHP 11.77% CoffeeScript 37.28% JavaScript 43.73%
semantic semantic-web semantic-entities ximdex-cms drupal drupal7 entity xowl-service cms cms-module

drupal7-xowl-client's Introduction

Xowl-service client for drupal 7

This client allows you to enrich your content managed into Drupal with a semantic layer. You can test this service on-line here: http://demo.ximdex.com/xowl/

Requirements

Optional

  • potx: "Translation template extractor" module allows easy strings translation during development.

Installing Xowl module

  • Install drupal 7 on your server as usual (more info here).
  • Go to the following folder (<DRUPAL_ROOT> is your Drupal root path): <DRUPAL_ROOT>/sites/all/modules/.
  • Unzip all the downloaded drupal modules into this folder. At the end, you must have three folders, named: ckeditor, drupal7-xowl-client-X.X, jquery_update.
  • Access to your drupal web interface using a browser and select modules on the main menu. You'll see the Xowl module at the end of the list, but you can not install it yet because it depends on other two, jquery_update and ckeditor, so you have to enable them first.

Installing Xowl module and its dependencies

If all the three modules are now properly enabled (in green), you are ready to configure them in the next step.

Modules installed

Translations

Ensure "locale" module is enabled. Go to configuration -> Regional and language -> translate interface -> import Load local file translations/es.po and clear caches. Set spanish language in drupal administration.

Xowl service

Start configuring the Xowl module. Access to its configuration on the tab called Xowl Configuration above or on the modules list, on the Xowl module's Configure link.

You have to select the content types that your are going to use to write your content and enrich it. Save the changes.

configuring Content Types

To configure the service's URL, go to the another configuration link called Xowl Server Configuration and enter a valid Xowl service URL (default: http://xowl.ximdex.net/api/v1). You will need a valid API token, if you don't have one, you have to visit the link xowl register and follow the steps:

configuring the service's URL

CKeditor

You also have to configure the CKeditor to integrate properly a custom button for Xowl requests with your content.

Configuring CKeditor

CKeditor global profile

Check "Use toolbar Drag&Drop feature" as disabled.

Disabling

To insert the own CSS of the Xowl module into CKeditor, go to configure -> Profiles -> Full -> edit

Expand CSS panel and set the input Editor CSS with the value Define CSS and the input CSS file path with the following value (change the X.X with your version):

%hsites/all/modules/drupal7-xowl-client-X.X/resources/css/xowl.css

Next to css: Editor Appearance, add under "Maximize" a new item to the list: ['xowl_enhance_plugin_button']

Check the plugins list below and activate Xowl plugin to allow enhancing content in CKEditor

Save all the changes made.

Usage

To use this enrichment service, log in into your Drupal CMS and click on "Add new content" link and create, for example, a new article.

On the edition page, select Full Html text format on CKeditor options. Its toolbar will change and you'll see a new button at the end of the third row, pretty similar to a book and a pencil.

Now you can write some relevant sentences and then click on the Xowl button.

After a few seconds, all the recognized entities will be highlighted with a color and a number. The color means the following:

Entities

  • Red: People
  • Green: Places
  • Yellow: Organizations
  • Light orange: Creative Works
  • Blue: Other catagories

We can click on it to select the correct dbpedia entity. Now we can save and see on the text became a link to dbpedia uri that represents that entity.

Disambiguation

Notes

We have been working hard to release this client for the Drupal community. Now we are developing a Xowl's client for the brand new Drupal 8 stable release. As you may know, there have been so many changes between Drupal 7 and 8, so these two clients will have some different behaviours.

You can find our Xowl service client for Drupal 8 here.

drupal7-xowl-client's People

Contributors

drzippie avatar jmrodriguezximdex avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drupal7-xowl-client's Issues

Same text with different suggestions make an error

Let's consider the following text (spanish):

Ayrton Senna. Piloto brasileño de Fórmula1. Nació el 21 de marzo de 1960 en São Paulo (Brasil). Fue el segundo de tres hijos. Debutó en 1973 en el Campeonato de Brasil de karts y en 1977 en el Campeonato Sudamericano.

The service suggests 3 entities for the first "Brasil" and 1 for second. The implementation is using the entity text as key in internal structure, so the second "Brasil" overwrites the first one.

Error level (Notice): Incorrect array index access

The following message is found when saving a post:

Notice: Undefined index: xedit-tags in xowl_createXMLRepresentation() (line 76 of /var/www/html/drupal7/sites/all/modules/drupal7-xowl-client-1.0/includes/xowl.util).

The line content:
if(count($info['xedit-tags'])>0)

must be replaced by:
if(isset($info['xedit-tags']) && count($info['xedit-tags'])>0)

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.