Deployed anzograph on Docker running on Mac.
Trying to load data using using the sample movie actors file using the following insert command within the query console,
INSERT { GRAPH <actors> {
?MovieIRI a <Movie> ;
<MovieTitle> ?MovieTitle .
?ActorIRI a <Actor> ;
<ActorName> ?ActorName .
?ActorIRI <ActedIn> ?MovieIRI .
}
}
WHERE { TABLE <file:/home/usera/movie-actors.csv>
('csv','leader',',',true,'MovieID:long,MovieTitle:char,ActorID:long,ActorName:char')
BIND(IRI(CONCAT("Movie",str(?MovieID))) as ?MovieIRI)
BIND(IRI(CONCAT("Actor",str(?ActorID))) as ?ActorIRI)
}
After executing, I receive error,
Error - /home/usera/movie-actors.csv; No such file or directory
What is odd is the file exists in the directory above.
To be able to allow AnzoGraph to load files from the container local (overlay) filesystem, you need to get them there.
as answered earlier, you could copy the files into the container, but it may make sense to just volume mount them, if they are already accessible on the docker host.
AnzoGraph will see the files that you put in $data_p at $data_c_p in the container