semsol / arc2

ARC RDF Classes for PHP
Other
332 stars 89 forks source link

Fail detect format with LOAD query #52

Open 4meck opened 11 years ago

4meck commented 11 years ago

if xml has remark in beginning document > 1024 byte <?xml version="1.0"?>

....

in ARC2_Reader->getFormat (...readStream( ) -> ARC2::getFormat($v... -> ARC2_getFormat() detect format (by remark content) as "ntriples" (need "rdfxml")

example: LOAD http://www.ebusiness-unibw.org/ontologies/eclass/5.1.4/eclass_514en.owl

getErrors() return Array ( [0] => too many loops: 501. Could not parse "<?xml version="1.0"?> )

k00ni commented 9 years ago

Can you please post a complete XML-document which raises that error? You should give https://gist.github.com/ a try for posting file content.

EDIT: I just saw that you already posted an example, but had to remove the > of the link. So nevermind that post of mine.