This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Loading Dbpedia Ntriples In R Using Rrdf

I am trying to load dbpedia ntriples downloaded from here: http://wiki.dbpedia.org/Downloads37

A snapshot of the ntriples is below for the infobox dataset:

http://dbpedia.org/resource/Academy_Award http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2002/07/owl#Thing . http://dbpedia.org/resource/Abraham_Lincoln http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://dbpedia.org/ontology/OfficeHolder .

When I use the following command in R: model = new.rdf(ontology=TRUE) load.rdf("filename.nt", "RDF/XML", model)

I get the following errors: Error in .jcall("com/github/egonw/rrdf/RJenaHelper", "Lcom/hp/hpl/jena/rdf/model/Model;", : com.hp.hpl.jena.shared.JenaException: org.xml.sax.SAXParseException; systemId: file:///E:/RecentDox/%5BSEM2%5D%20Distributed%20Computing/Semantic%20Search%20Project/; lineNumber: 5; columnNumber: 7; Element or attribute do not match QName production: QName::=(NCName':')?NCName.

Please help. I guess I am not giving the correct file format in the call but I do not know what other values can be passed as file format to load.rdf

deleted-post

This is not a bioinformatics related question and is therefore removed.

0 answers

No answers yet.

Log in to answer this question.