Loading ontology-dev from configuration seems not working...

229 views
Skip to first unread message

Matteo Busanelli

unread,
Feb 2, 2015, 7:01:13 AM2/2/15
to lum...@googlegroups.com
Hi all,
   I'm doing some test on the ontology loading following the steps in the page: https://github.com/lumifyio/lumify/blob/master/docs/ontology.md

Trying the first way, "Loading an ontology via configuration", I get no result. No error but no ontology-dev seems to be loaded on lumify.

Steps:

1. Edited /opt/lumify/config/lumify.properties adding the two lines:

  repository.ontology.owl.dev.iri=http://lumify.io/dev
  repository.ontology.owl.dev.dir=/opt/lumify-source/examples/ontology-dev/

(I verified the path /opt/lumify-source/examples/ontology-dev/ is correct)

2. Restarted Jetty

  >jetty.sh start

I get no error in the log of Jetty but also nothing that refers to the new ontology-dev.

When I log in lumify I tray the Edit Ontology menù or the Add property for a selected item or the search but I can't find nothing about the ontology-de classes or properties.

Where I'm wrong? Did I missed some steps?

Thanx in advance,
Matteo

Joe Ferner

unread,
Feb 2, 2015, 8:45:04 AM2/2/15
to lum...@googlegroups.com
You should see a log message similar to this:

[model.ontology.OntologyRepositoryBase] importing .../examples/ontology-dev/dev.owl

At the beginning of the log you should see all the configuration properties printed. Do you see "repository.ontology.owl.dev.iri"?

The other option might be to run it locally in an IDE. I started docs on how to do that here: https://github.com/lumifyio/lumify/blob/master/docs/ide.md
Then add a breakpoint around here io.lumify.core.model.ontology.OntologyRepositoryBase#defineOntology

Matteo Busanelli

unread,
Feb 2, 2015, 9:22:45 AM2/2/15
to lum...@googlegroups.com
Hi Joe,
   in the log I can find the two entry:


    repository.ontology.owl.dev.dir: /opt/lumify-source/examples/ontology-dev/

    repository.ontology.owl.dev.iri: http://lumify.io/dev

but on lumify I can't find anything about the dev ontology. 

This is what I tried to see if the dev ontology was really loaded:

- Edit ontology menù but I could find only the user and workspace concept.


- Add a property to an entity but I can't


- Search using filters on property but I only get the base properties

How could I verify if the ontology is effectively loaded?

Thanx again.

Joe Ferner

unread,
Feb 2, 2015, 10:20:18 AM2/2/15
to lum...@googlegroups.com
Thanks, I was able to reproduce your error. I created an issue here: https://github.com/lumifyio/lumify/issues/543

Short term fix. Upload the ontology using the admin tool.

I'm fixing the problem now. Hope to have it fixed in the next 30 minutes or so.

Matteo Busanelli

unread,
Feb 2, 2015, 10:29:09 AM2/2/15
to lum...@googlegroups.com
Ok.

I'll try the admin tool and I'll be waiting for the fix notification.

Thanks for your feedback rapidity.
Matteo.

Joe Ferner

unread,
Feb 2, 2015, 10:45:56 AM2/2/15
to lum...@googlegroups.com
I have pushed a fix. See the discussion on the fix for possible gotchas. I need to discuss with the team a better long term fix.

Matteo Busanelli

unread,
Feb 2, 2015, 11:14:15 AM2/2/15
to lum...@googlegroups.com
Ok.

Meanwhile I succesfully uploaded the dev-ontology. But again I'm not fine. :-)

Now I can see new concepts and properties both in filters  and Ontology editor.

The problem is that I can't assign new properties or concept to the entities (I cant use the ontology).

For example, I drag and dropped a pdf file and I see the "?" with only title. It is assigned to class "Thing". 


But I can't neither change the class of the entity (i.e http://lumify.io/dev#document) or assign some new property (i.e http://lumify.io/dev#publishedDate).

Again, I'm missing something?

MB

Matteo Busanelli

unread,
Feb 2, 2015, 11:56:00 AM2/2/15
to lum...@googlegroups.com
It seems to work only if I create new Entity (CTRL+clic on empty space). In this case I can specify the type of entity and therefore properties connected.

Maybe that there is some problems in recognizing uploaded file resource?

Also how can change the type of a resource (i.e from Thing to Document or Person)?

May be a miss some tools/plugin (as was for ontology upload)?

Thanx again for helping.

MB

abhinav mohan

unread,
Feb 12, 2015, 8:21:32 AM2/12/15
to lum...@googlegroups.com
Is this issue resolved ?

I have added the ontology using the configuration files, but when i upload a document it seems to get recognized only as a thing and the content is also not displayed.

Am i doing something wrong ?

Joe Ferner

unread,
Feb 12, 2015, 1:07:50 PM2/12/15
to lum...@googlegroups.com
Do you have graph property workers loaded? (see https://github.com/lumifyio/lumify/blob/master/docs/build.md#yarn-plugin-build-instructions). I would start with tika-mime-type and tika-text-extractor.

abhinav mohan

unread,
Feb 12, 2015, 3:19:30 PM2/12/15
to lum...@googlegroups.com
Thanks adding the graph property workers solved the issue of reading the content of the file, but the type is still Thing and i am not able to add property

abhinav mohan

unread,
Feb 13, 2015, 4:52:54 AM2/13/15
to lum...@googlegroups.com
Hey, What are the plugins that i will require for basic working of lumify.

David Singley

unread,
Feb 13, 2015, 7:51:29 AM2/13/15
to lum...@googlegroups.com
It depends. This document describes what features are available without any non-java dependencies:


This document describes features that require installing other dependencies:

abhinav mohan

unread,
Feb 13, 2015, 8:16:00 AM2/13/15
to lum...@googlegroups.com
thanks a lot !

vincenzo algieri

unread,
Jul 5, 2016, 12:20:15 PM7/5/16
to Lumify
Hi Matteo,

since I have the same issue with Lumify, can you help me? I uploaded dev-ontology and it works perfectly (I can edit it ecc). Later I drag and dropped some documents in lumify (a pdf and a word document) but, after that the uploading was finished, it appear "undefined" with the '?' symbol. And it is assigned also to class "Thing". (take a look at the attached)
How can I fix this issue? Have I to import any other plugIn??

Thanks
undefined.png
Reply all
Reply to author
Forward
0 new messages