I imported SKOS thesaurus but I cannot manage with SKOSJS

57 views
Skip to first unread message

Alex Donnini

unread,
Aug 8, 2013, 9:26:07 AM8/8/13
to lmf-...@googlegroups.com
I imported a SKOS thesaurus in LMF by using curl 

curl --user username:password -X POST -d @vocabolari.rdf -H "Content-Type: application/rdf+xml" http://mysite/LMF-3.0.0/import/upload

it is skos validated. I have some questions:

- is the thesaurus a resource? that is something I see with  http://localhost:8080/LMF/resource/1234 

- how can I import it to see and manage the thesaurus with SKOSJS? 

thanks

Jakob Frank

unread,
Aug 9, 2013, 5:48:27 AM8/9/13
to lmf-...@googlegroups.com
Hi Alex,

> I imported a SKOS thesaurus in LMF by using curl

> curl --user username:password -X POST -d @vocabolari.rdf -H
> "Content-Type: application/rdf+xml"
> http://mysite/LMF-3.0.0/import/upload

> - is the thesaurus a resource? that is something I see with
> http://localhost:8080/LMF/resource/1234
This completely depends on the data you imported to the LMF.

The service you used above does not create any triples/resources beyond
those contained in the RDF-file. So if you want to have
<http://localhost:8080/LMF/resource/1234>, it has to be in the RDF-file.
>
> - how can I import it to see and manage the thesaurus with SKOSJS?
The way you called the import service, all triples in the RDF-file where
added to the default-context (you can define the context to import by
adding the query-parameter "context",
e.g. .../upload?context=http://mysite/LMF-3.0.0/context/skos-thesaurus )
>
However, if you open the default context in SKOSJS (Menu:
Project->Open/Create) it will list all SKOS-concepts contained in the
default context.

Best,
Jakob


--
Jakob Frank <jakob...@salzburgresearch.at>
Salzburg Research | Knowledge and Media Technologies
Jakob Haringer-Strasse 5/III | A-5020 Salzburg | Austria
T: +43.662.2288-419 | F: +43.662.2288-222
www.salzburgresearch.at

Alex Donnini

unread,
Aug 10, 2013, 9:31:10 AM8/10/13
to lmf-...@googlegroups.com

Hi Jakob,

On Friday, August 9, 2013 11:48:27 AM UTC+2, Jakob Frank wrote:
Hi Alex,

> I imported a SKOS thesaurus in LMF by using curl

> curl --user username:password -X POST -d @vocabolari.rdf -H
> "Content-Type: application/rdf+xml"
> http://mysite/LMF-3.0.0/import/upload

> - is the thesaurus a resource? that is something I see with
> http://localhost:8080/LMF/resource/1234
This completely depends on the data you imported to the LMF.


The thesaurus root is defined as <rdf:Description about='http://mysite/LMF/resource/odtv_vocabolari1.0'> ... </rdf:Description>

 
The service you used above does not create any triples/resources beyond
those contained in the RDF-file. So if you want to have
<http://localhost:8080/LMF/resource/1234>, it has to be in the RDF-file.
>
> - how can I import it to see and manage the thesaurus with SKOSJS?
The way you called the import service, all triples in the RDF-file where
added to the default-context (you can define the context to import by
adding the query-parameter "context",
e.g. .../upload?context=http://mysite/LMF-3.0.0/context/skos-thesaurus )

I tried to import by using context parameter, but it doesn't seem to work, if I go to SKOSJS I don't see any thesaurus/project. During my trials, to reset my repository I use sparql DELETE { ?s ?p ?o } WHERE { ?s ?p ?o } may be I've deleted something important...
I tried also by creating a SKOSJS project and then I imported my thesaurus using SKOSJS import: I found my triples in repository but it is not possible to browse the thesaurus with SKOSJS. I would like to have thesaurus managed by SKOSJS is because I would like to share thesauri with Stanbol.

Alex Donnini

unread,
Aug 10, 2013, 10:11:33 AM8/10/13
to lmf-...@googlegroups.com
Hi Jakob,
reset, about resource it works! 
There is always the SKOSJS thesaurus problem: I'm not able to import thesaurus in SKOSJS...
thanks

Alex Donnini

unread,
Aug 11, 2013, 11:11:48 AM8/11/13
to lmf-...@googlegroups.com
Hi Jakob,
I'm going ahead, I imported thesaurus using curl as you suggested and I see that I create a context (graph) with the name http://opendata.ccd.uniroma2.it/LMF/context/skos-thesaurus. If I create a SKOSJS project it creates a context (graph) with a name like this (http://opendata.ccd.uniroma2.it/LMF/resource/KQMPTZNM) and the label I choose as the SKOS thesaurus name (skos-thesaurus) and I have two different context, both with the label skos-thesaurus but with a different context name.
I tried also creating a SKOSJS project and importing thesaurus by using SKOSJS but it doesn't work.
I would like to create a SKOSJS project importing an external file... but it seems impossible.
Regards 
Alessandra
Reply all
Reply to author
Forward
0 new messages