Hi Sergio,

Attempting to load you sample data into a VOS 5.0.11 server fails with the error:

$ ../bin/isql 1112
Connected to OpenLink Virtuoso
Driver: 05.11.3039 OpenLink Virtuoso ODBC Driver
OpenLink Interactive SQL (Virtuoso), version 0.9849b.
Type HELP; for help and EXIT; to exit.
SQL> DB.DBA.RDF_LOAD_RDFXML_MT (file_to_string_output ('./text.xml'), '', 'http://mytest.com');

*** Error 22007: [Virtuoso Driver][Virtuoso Server]XM033: XML parser detected an error:
        FATAL  : Name 'rdf:type' contains undefined namespace prefix
at line 1 column 91 of source text
="http://example.org/foo#bar"; rdf:type="http://example.org/ex#ClassB";>
----------------------------------------------------------------------^
at line 1 of Top-Level:
DB.DBA.RDF_LOAD_RDFXML_MT (file_to_string_output ('./text.xml'), '', 'http://mytest.com')
SQL> quit;
$ ../../../../bin/virtuoso-t -?
Virtuoso Open Source Edition (multi threaded)
Version 5.0.11 3039-pthreads as of Apr 29 2009
Compiled for Darwin (i386-apple-darwin8.11.1)
Copyright (C) 1999-2009 OpenLink Software

Which I presume is the error you refer to ???

Whereas testing against one of our latest builds this data does load and can be queried:

$ ../bin/isql
OpenLink Interactive SQL (Virtuoso), version 0.9849b.
Type HELP; for help and EXIT; to exit.

SQL> DB.DBA.RDF_LOAD_RDFXML_MT (file_to_string_output ('./text.xml'), '', 'http://mytest.com');

Done. -- 226 msec.
SQL> sparql select * from <http://mytest.com> where {?s ?p ?o};
s                p                o
VARCHAR          VARCHAR          VARCHAR
________________________________________________________________________ _______

http://example.org#person http://www.w3.org/1999/02/22-rdf-syntax- ns#type http://xmlns.com/foaf/0.1/Person http://example.org#person http://xmlns.com/foaf/0.1/name Person Example http://example.org/foo#bar http://www.w3.org/1999/02/22-rdf-syntax- ns#type ex:ClassA http://example.org/foo#bar http://www.w3.org/1999/02/22-rdf-syntax- ns#type http://purl.org/obo/oban/ClassA nodeID://1000068087 http://www.w3.org/1999/02/22-rdf-syntax-ns#type ex:ClassA
nodeID://1000068087  rdf:type         http://example.org/ex#ClassB
nodeID://1000068087  rdf:about        http://example.org/foo#bar
nodeID://1000068088 http://www.w3.org/1999/02/22-rdf-syntax-ns#type ex:ClassA
nodeID://1000068088  rdf:type         http://example.org/ex#ClassB
nodeID://1000068088  rdf:about        http://example.org/foo#bar

10 Rows. -- 3 msec.
SQL> quit;
$ ../bin/virtuoso-iodbc-t -?
Virtuoso Open Source Edition (multi threaded)
Version 05.11.3039-pthreads as of May 13 2009
Compiled for Darwin (i386-apple-darwin8.11.1)
Copyright (C) 1999-2009 OpenLink Software

So it would appear the issues has already been inherently resolved ...

Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support



On 19 May 2009, at 08:04, Sergio Fernández wrote:

On Mon, 2009-05-18 at 15:13 -0700, Peter Ansell wrote:
You aren't using valid RDF/XML.

Why? While you don't give me details, I don't find why this
serialization is not valid...

Let's put a concrete example of the conflictive peace of code:

<?xml version="1.0"?>
<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
  xmlns:foaf="http://xmlns.com/foaf/0.1/";>
<foaf:Person rdf:about="http://example.org#person"; rdf:type="http://xmlns.com/foaf/0.1/Agent";>
    <foaf:name>Person Example</foaf:name>
  </foaf:Person>
</rdf:RDF>

That is completelly valid RDF/XML accoding W3C recommendation, and works
fine with W3C validator and several parsers, not with Virtuoso. So I
guess we can say that this is a bug in the parser.

Best regards,

--
Sergio Fernández - sergio.fernan...@fundacionctic.org
R&D Deparment
CTIC Foundation - www.fundacionctic.org
Phone: +34 984 29 12 12
Fax:  +34 984 39 06 12
Edificio Centros Tecnológicos
Parque Científico Tecnológico
33203 Cabueñes - Gijón - Asturias - Spain


---------------------------------------------------------------------- --------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to