innoq / iqvoc

iQvoc - A SKOS(-XL) Vocabulary Management System for the Semantic Web
http://iqvoc.net/
Other
117 stars 44 forks source link

importing through web interface not working - even for the 'hobbies' sample data set #388

Closed paulwalk closed 6 years ago

paulwalk commented 6 years ago

I have tried importing (through the web interface) two different n-triples files, one of which is the sample file supplied with this code. Both imports fail with all of the statements attracting a warning about 'invalid origin' - here is a snippet from the log:

W, [2017-12-29T10:36:38.994106 #1]  WARN -- : SkosImporter: Invalid origin. Skipping <http://hobbies.com/outdoors> skos:member <http://hobbies.com/scuba_diving>
W, [2017-12-29T10:36:38.994467 #1]  WARN -- : SkosImporter: Invalid origin. Skipping <http://hobbies.com/snowmobiling> rdf:type skos:Concept
W, [2017-12-29T10:36:38.994822 #1]  WARN -- : SkosImporter: Invalid origin. Skipping <http://hobbies.com/snowmobiling> skos:prefLabel "Snowmobiling"@en

Importing with the rake task, instead of the web interface, works fine.

I suspect this is something to do with the default namespace not being set in the web importer, but this is just my best guess.

paulwalk commented 6 years ago

Ah - I have resolved this now - I had thought that the default namespace in the file would override the default namespace in the web form. Setting the namespace explicitly in the web form (e.g. http://hobbies.com/) works. Closing this issue.