using jena to convert an owl file to N-triple from terminal returns an empty file -
i have generated owl
file using generator http://swat.cse.lehigh.edu/projects/lubm/
i want transform file in n-triples , have done before using
$ riot -out n-triple ~/lubm20/*.owl > lubm20.nt
for reason empty file (lubm20.nt)
and when use
$ rdfcat -out n-triple ~/lubm20/*.owl > lubm20.nt
i error
exception in thread "main" org.apache.jena.riot.riotexception: <file:///root/lubm20/classes\university0_0.owl> code: 4/unwise_character in path: character matches no grammar rules of uris/iris. these characters permitted in rdf uri references, xml system identifiers, , xml schema anyuris. @ org.apache.jena.riot.s5ystem.iriresolver.exceptions(iriresolver.java:371) @ org.apache.jena.riot.system.iriresolver.resolve(iriresolver.java:328) @ org.apache.jena.riot.system.iriresolver$iriresolversync.resolve(iriresolver.java:489) @ org.apache.jena.riot.system.iriresolver.resolveiri(iriresolver.java:254) @ org.apache.jena.riot.system.iriresolver.resolvestring(iriresolver.java:233) @ org.apache.jena.riot.sysriot.choosebaseiri(sysriot.java:109) @ org.apache.jena.riot.adapters.adapterfilemanager.readmodelworker(adapterfilemanager.java:286) @ org.apache.jena.util.filemanager.readmodel(filemanager.java:341) @ jena.rdfcat.readinput(rdfcat.java:328) @ jena.rdfcat$readaction.run(rdfcat.java:473) @ jena.rdfcat.go(rdfcat.java:231) @ jena.rdfcat.main(rdfcat.java:206)
the generator generate known semantic web benchmark dataset how can have
unwise_character s?
edit: question asked used line generate *.owl files
java edu.lehigh.swat.bench.uba.generator -onto http://swat.cse.lehigh.edu/onto/univ-bench.owl univ 20
then moved *.owl files lubm20 folder
i used rdf2rdf instead of jena
java -jar rdf2rdf-1.0.1-2.3.1.jar /lubmdata/lubm100/*.owl lubm100.nt
worked charm
Comments
Post a Comment