it.uniroma2.art.owlart.exceptions.ModelCreationException: Unable to start transaction: data file is locked or read-only
at it.uniroma2.art.owlart.sesame2impl.factory.ARTModelFactorySesame2Impl.loadRDFBaseModel(ARTModelFactorySesame2Impl.java:249)
at it.uniroma2.art.owlart.sesame2impl.factory.ARTModelFactorySesame2Impl.loadSKOSXLModel(ARTModelFactorySesame2Impl.java:355)
at it.uniroma2.art.owlart.sesame2impl.factory.ARTModelFactorySesame2Impl.loadSKOSXLModel(ARTModelFactorySesame2Impl.java:94)
at it.uniroma2.art.owlart.models.OWLArtModelFactory.loadSKOSXLModel(OWLArtModelFactory.java:302)
at it.uniroma2.art.owlart.models.OWLARTModelLoader.loadSKOSXLModel(OWLARTModelLoader.java:210)
at it.uniroma2.art.owlart.models.OWLARTModelLoader.loadModel(OWLARTModelLoader.java:178)
at it.uniroma2.art.owlart.utilities.transform.SKOS2SKOSXLConverter.main(SKOS2SKOSXLConverter.java:126)
Exception in thread "main" it.uniroma2.art.owlart.exceptions.ModelCreationException: it.uniroma2.art.owlart.exceptions.ModelCreationException: Unable to start transaction: data file is locked or read-only
at it.uniroma2.art.owlart.models.OWLARTModelLoader.loadSKOSXLModel(OWLARTModelLoader.java:216)
at it.uniroma2.art.owlart.models.OWLARTModelLoader.loadModel(OWLARTModelLoader.java:178)
at it.uniroma2.art.owlart.utilities.transform.SKOS2SKOSXLConverter.main(SKOS2SKOSXLConverter.java:126)
Caused by: it.uniroma2.art.owlart.exceptions.ModelCreationException: Unable to start transaction: data file is locked or read-only
at it.uniroma2.art.owlart.sesame2impl.factory.ARTModelFactorySesame2Impl.loadRDFBaseModel(ARTModelFactorySesame2Impl.java:249)
at it.uniroma2.art.owlart.sesame2impl.factory.ARTModelFactorySesame2Impl.loadSKOSXLModel(ARTModelFactorySesame2Impl.java:355)
at it.uniroma2.art.owlart.sesame2impl.factory.ARTModelFactorySesame2Impl.loadSKOSXLModel(ARTModelFactorySesame2Impl.java:94)
at it.uniroma2.art.owlart.models.OWLArtModelFactory.loadSKOSXLModel(OWLArtModelFactory.java:302)
at it.uniroma2.art.owlart.models.OWLARTModelLoader.loadSKOSXLModel(OWLARTModelLoader.java:210)
... 2 more
Can you please clarify this parameter? I cloned the owlart repo, checked here http://grepcode.com/file/repo1.maven.org$mav...@it.uniroma2.art.owlart$owlart-api@2.3@it$uniroma2$art$owlart$models$BaseRDFModelTest.java, to no avail.
Thanks,
Cristian
http://www.cbd.int/#my-own-term, instead of http://www.cbd.int/my-own-term - But that's easy to fix with a search and replace in file.
$ ./skos2skosxl.sh _config/CBD-convert.properties ../sheet2rdf-1.1.1/_rdf/CBD.rdf ../sheet2rdf-1.1.1/_rdf/CBD.rdf.xml
log4j:WARN No appenders could be found for logger (it.uniroma2.art.owlart.sesame2impl.factory.ARTModelFactorySesame2Impl).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" java.lang.IllegalArgumentException: the <lang> argument to this method must not be null!
at it.uniroma2.art.owlart.models.impl.SKOSXLModelImpl.createRandomURI4XLabel(SKOSXLModelImpl.java:493)
at it.uniroma2.art.owlart.models.impl.SKOSXLModelImpl.addXLabel(SKOSXLModelImpl.java:96)
at it.uniroma2.art.owlart.utilities.transform.SKOS2SKOSXLConverter.convert(SKOS2SKOSXLConverter.java:97)
at it.uniroma2.art.owlart.utilities.transform.SKOS2SKOSXLConverter.convert(SKOS2SKOSXLConverter.java:49)
at it.uniroma2.art.owlart.utilities.transform.SKOS2SKOSXLConverter.main(SKOS2SKOSXLConverter.java:133)
Dear Cristian,
Can you please clarify this parameter? I cloned the owlart repo, checked here http://grepcode.com/file/repo1.maven.org$maven2@it.uniroma2.art.owlart$owlart-api@2.3@it$uniroma2$art$owlart$models$BaseRDFModelTest.java, to no avail.
Dear Cristian, dear all,
sorry for coming later to this, just we italians have holidays on August, when the rest of the world is back from their July vacations, and this means traveling with connection on, and still really leaving tons of messages for when we are back.
I took your case, and tested with your files, so…
…no worries, no panic, everything works :)
point by point, following your email:
1) There is a # in the exported XML namespaces (http://www.cbd.int/glossary/#), not sure if it's fine. Appears even if skosInScheme parameter is empty. So you get a baseUri namespace like:
http://www.cbd.int/#my-own-term, instead of http://www.cbd.int/my-own-term - But that's easy to fix with a search and replace in file.
Yes this is the only true bug (now fixed for the next version). Note that also on the current stable version, if you use sheet2rdf from inside its Semantic Turkey extension on Firefox (instead of the command line tool), this bug is not present. In any case, it can be easily solved with a replace-all as you say.
2) Due to a bug in skos2skosxl tool, I had to replace <skos:prefLabel> with <skos:prefLabel xml:lang="en"> in CBD.rdf, otherwise I get the exception below:
Well, yes the skos2skoxl requires the language. But, why not language there? You could add the language to the PEARL (see point 3 below) or, since you didn’t know how to use a customized PEARL, add it directly in the header of the Excel, as described here:
http://art.uniroma2.it/sheet2rdf/documentation/heuristics.jsf
3) You mentioned editing the PEARL script ... with sheet2rdf, I see the file pearl_CBD_xls.pr is always overwritten and what I write there is lost.
I don't really know how to do that, found no documentaition on this and on the .pr languaguage. Maybe this can be improved.
Yes you are right it is missing from the docs (we will add it), but the .properties file you were editing should contain also this line with the comment on it
#path of the input pearl file (optional, if not provided, Sheet2RDF will try to generate a pearl file)
#inputPearlFile=pearl.pr
If you decomment the property, you can set the pearl file to use.
Cheers,
Armando
Ops..sorry, I forgot to mention one thing:
You could produce skosxl:Labels without any need to use the converter. Apart from the PEARL (see again point 3), you could specifiy yet them from the Excel file, in the header, by typing:
skosxl:prefLabel (alt/hidden), instead of skos:pref/alt/hiddenLabel.
And then the lag tag, as I said, in between brackets.
Cheers,
Armando
Da: outlook_2866...@outlook.com [mailto:outlook_2866...@outlook.com] Per conto di Armando Stellato
Inviato: mercoledì 9 settembre 2015 13:02
A: 'Cristian Romanescu' <cristian....@gmail.com>; 'vocbench-user' <vocben...@googlegroups.com>
Oggetto: R: [vocbench-user] sheet2rdf export RDF and import into VocBench - blank tree