You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
A question, I want to transform an xml file to owl, but when for example I put these lines of code:
XSD2OWLMapper mapping = new XSD2OWLMapper(new File("C:/Users/usuario/Desktop/report1.xsd"));
mapping.setObjectPropPrefix("");
mapping.setDataTypePropPrefix("");
mapping.convertXSD2OWL();
// This part converts XML instance to RDF data model.
XML2OWLMapper generator = new XML2OWLMapper(
new File("C:/Users/usuario/Desktop/report.xml"), mapping);
generator.convertXML2OWL();
// This part prints the RDF data model to the specified file.
try{
File f = new File("C:/Users/usuario/Desktop/report1.n3");
f.getParentFile().mkdirs();
FileOutputStream fout = new FileOutputStream(f);
generator.writeModel(fout, "N3");
fout.close();
} catch (Exception e){
e.printStackTrace();
}
I have this error:
3050 [main] WARN org.apache.jena.rdf.model.impl.RDFDefaultErrorHandler - unknown-source: {W136} Relative URIs are not permitted in RDF: specifically <ont-policy.rdf>
These are the files I'm using
Hi,
A question, I want to transform an xml file to owl, but when for example I put these lines of code:
XSD2OWLMapper mapping = new XSD2OWLMapper(new File("C:/Users/usuario/Desktop/report1.xsd"));
mapping.setObjectPropPrefix("");
mapping.setDataTypePropPrefix("");
mapping.convertXSD2OWL();
3050 [main] WARN org.apache.jena.rdf.model.impl.RDFDefaultErrorHandler - unknown-source: {W136} Relative URIs are not permitted in RDF: specifically <ont-policy.rdf>
These are the files I'm using
files.zip
I do not know why, please help. I will be grateful if you give me some hints.
The text was updated successfully, but these errors were encountered: