Skip to content
Advertisement

To open file in Java/jena API

Hi I’m currently learning semantic web on java and Jena API. I have an error to open a file which is in the same directory with my class

My code :

JavaScript

The error : Exception in thread "main" java.lang.IllegalArgumentException: File: vc-db-1.rdf not found

NB : The file is in the same directory

Advertisement

Answer

Already resolved by
static final String inputFileName ="/Users/macbook/Documents/IntelliJ/projet2020/webSemantique/src/tp1/vc-db-1.rdf";

Thanks
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement