Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please Help. XML to OWL #14

Open
gabyluna opened this issue Nov 10, 2016 · 1 comment
Open

Please Help. XML to OWL #14

gabyluna opened this issue Nov 10, 2016 · 1 comment

Comments

@gabyluna
Copy link

gabyluna commented Nov 10, 2016

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

files.zip

I do not know why, please help. I will be grateful if you give me some hints.

@lewismc
Copy link
Contributor

lewismc commented Feb 17, 2017

@gabyluna I am getting the same error. I'll have a look at it now and see if I can find a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants