Hi all,
I am currently new to virtual graph concept in stardog and recently started working on it. This works like a charm. I have successfully been able to add csv file to virtual graph as described in the guide.
However, I am curious to know if we can do a bulk load to virtual graph. I couldn't find any documentation related to that. Can anyone help me with this?
Are you asking about bulk importing csv files or something else? I believe that you can pass multiple csv files when importing, although they'd all have to have the same columns. Or at least compatible columns, I don't know what might happen if one had additional unmapped columns. If not it should be fairly easy to combine multiple csv files into a single monster file. Now if you're taking about importing many csv files with multiple mappings I think you'd have to script it. I looked into using csvw, the once good use that I can think of for using that insane spec, to allow you to specify information about a csv and import by pointing to this metadata but they only seem to have anticipated specifying csvw by the data publisher and not that I might want to provide the metadata about someone else's csv file.
I am looking to bulk importing csv files. I agree with you that we have to provide different sms files if they csv are not identical. I tried it out on csv with same columns and it worked as expected. However when I tried importing without sms file(instead I gave a .properties file for csv), it threew an error saying primary key not found in error. I am wondering how I could do that
I might also suggest that you simply strip the headers and concatenate the files if possible. Depending on the number of files and their size it might be really slow just due to the JVM startup time for each file.