Hello.
With the new parameters, I did some tests with the following queries:
- Failed - logs at the end below:
select * where { service <http://dbpedia.org/sparql> { dbpedia:Uruguay ?p ?o } }
- Works fine:
select * where { service <http://lod.openlinksw.com/sparql> { dbpedia:Uruguay ?p ?o } } ;
- Failed - logs at the end:
define get:soft "soft" select * from <http://dbpedia.org> where { dbpedia:Uruguay ?p ?o }
- Works fine:
define get:soft "soft" SELECT * FROM <http://lod.openlinksw.com/c/9BW76GGL> WHERE { ?s ?p ?o } ;
As I said in a previous message, this situation makes me think about how is making the connection in case of 303 . What’s the meaning of n_redirects= 0 in http_client_ext ?
Thanks.
FDO.
LOGS
1.
SQL> sparql select * where { service <http://dbpedia.org/sparql> { dbpedia:Uruguay ?p ?o } }
Type the rest of statement, end with a semicolon (;)> ;
*** Error HTCLI: [Virtuoso Driver][Virtuoso Server]HC001: Connection Error in HTTP Client
in
http_get:(BIF),
__01 => 'http://dbpedia.org/sparql?query=%20SELECT%20%3Fo%20%3Fp%0A%20WHERE%20%7B%20%20%3Chttp%3A%2F%2Fdbpedi' (truncated),
__02 => 0,
__03 => 'GET',
__04 => 'Accept: application/sparql-results+xml, text/rdf+n3, text/rdf+ttl, text/rdf+turtle, text/turtle, app' (truncated),
__05 => '',
__06 => NULL,
__07 => 15,
DB.DBA.SPARQL_REXEC_INT([executable]/sparql_io.sql:300),
res_mode => 1,
res_make_obj => 1,
service => 'http://dbpedia.org/sparql',
query => ' SELECT ?o ?p
WHERE { <http://dbpedia.org/resource/Uruguay> ?p ?o . }',
dflt_graph => NULL,
named_graphs => NULL,
req_hdr => 'Accept: application/sparql-results+xml, text/rdf+n3, text/rdf+ttl, text/rdf+turtle, text/turtle, app' (truncated),
maxrows => 10000000,
metas => 0,
bnode_dict => NULL,
expected_var_list => (ARRAY_OF_POINTER value, tag 193),
options => NULL,
DB.DBA.SPARQL_REXEC_TO_ARRAY_OF_OBJ([executable]/sparql_io.sql:578),
service => 'http://dbpedia.org/sparql',
query => ' SELECT ?o ?p
WHERE { <http://dbpedia.org/resource/Uruguay> ?p ?o . }',
dflt_graph => NULL,
named_graphs => NULL,
req_hdr => 'Accept: application/sparql-results+xml, text/rdf+n3, text/rdf+ttl, text/rdf+turtle, text/turtle, app' (truncated),
maxrows => 10000000,
bnode_dict => NULL,
expected_var_list => (ARRAY_OF_POINTER value, tag 193),
options => NULL,
DB.DBA.SPARQL_SINV_IMP([executable]/sparql_io.sql:936),
ws_endpoint => 'http://dbpedia.org/sparql',
ws_params => (ARRAY_OF_POINTER value, tag 193),
qtext_template => ' SELECT ?o ?p
WHERE { <http://dbpedia.org/resource/Uruguay> ?p ?o . }',
qtext_posmap => (NVARCHAR value, tag 225),
param_row => (ARRAY_OF_POINTER value, tag 193),
expected_vars => (ARRAY_OF_POINTER value, tag 193)
in lines 4-5 of Top-Level:
#line 4 "(console)"
sparql select * where { service <http://dbpedia.org/sparql> { dbpedia:Uruguay ?p ?o } }
3.
SQL> sparql define get:soft "soft" select * from <http://dbpedia.org> where { dbpedia:Uruguay ?p ?o } ;
*** Error HTCLI: [Virtuoso Driver][Virtuoso Server]HC001: Connection Error in HTTP Client
in
http_client_internal:(BIF),
__01 => 'https://www.dbpedia.org/',
__02 => NULL,
__03 => NULL,
__04 => 'GET',
__05 => 'User-Agent: OpenLink Virtuoso RDF crawler
Accept: application/rdf+xml; q=1.0, text/rdf+n3; q=0.9, a' (truncated),
__06 => NULL,
__07 => '1',
__08 => NULL,
__09 => (ARRAY_OF_POINTER value, tag 193),
__10 => NULL,
__11 => NULL,
__12 => NULL,
__13 => 0,
__14 => 0,
DB.DBA.HTTP_CLIENT_EXT([executable]/system.sql:3223),
url => 'https://www.dbpedia.org/',
uid => NULL,
pwd => NULL,
http_method => 'GET',
http_headers => 'User-Agent: OpenLink Virtuoso RDF crawler
Accept: application/rdf+xml; q=1.0, text/rdf+n3; q=0.9, a' (truncated),
body => NULL,
cert_file => '1',
cert_pwd => NULL,
headers => (ARRAY_OF_POINTER value, tag 193),
timeout => NULL,
proxy => NULL,
ca_certs => NULL,
insecure => 0,
n_redirects => 0,
DB.DBA.RDF_HTTP_URL_GET([executable]/rdf_sponge.sql:1400),
url => 'https://www.dbpedia.org/',
base => '',
hdr => (ARRAY_OF_POINTER value, tag 193),
meth => 'GET',
req_hdr => 'User-Agent: OpenLink Virtuoso RDF crawler
Accept: application/rdf+xml; q=1.0, text/rdf+n3; q=0.9, a' (truncated),
cnt => NULL,
proxy => NULL,
sig => 0,
signal:(BIF),
__01 => 'HTCLI',
__02 => 'HC001: Connection Error in HTTP Client
in
http_client_internal:(BIF),
__01 => 'https://www.d' (truncated),
DB.DBA.SYS_HTTP_SPONGE_UP([executable]/rdf_sponge.sql:993),
local_iri => 'http://dbpedia.org',
get_uri => 'http://dbpedia.org',
parser => 'DB.DBA.RDF_LOAD_HTTP_RESPONSE',
eraser => 'DB.DBA.RDF_FORGET_HTTP_RESPONSE',
options => (ARRAY_OF_POINTER value, tag 193),
DB.DBA.RDF_SPONGE_UP_1([executable]/rdf_sponge.sql:2195),
graph_iri => 'http://dbpedia.org',
options => (ARRAY_OF_POINTER value, tag 193),
uid => 0,
DB.DBA.RDF_SPONGE_UP([executable]/rdf_sponge.sql:2055),
graph_iri => 'http://dbpedia.org',
options => (ARRAY_OF_POINTER value, tag 193),
uid => 0
at line 17 of Top-Level:
sparql define get:soft "soft" select * from <http://dbpedia.org> where { dbpedia:Uruguay ?p ?o }