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