On 23/11/2024 20:32, Hugo Bártolo wrote:
Error: Query processing error: <urlopen error unknown url type: '<http>

------------------------------------------------------------------------------------------------


Hi from Portugal 🙂

i am having some problems using a jupyter notebook to query a fuseki localhost, 
can you help me?


#!pip install sparqlkernel
#jupyter sparqlkernel install

#%lsmagics

# define the endpoint
%endpoint '<http://localhost:3030/#/dataset/Trabalho/sparql>'

Looking at the documentation example is

%endpoint http://dbpedia.org/sparql

it is written without the <>

URLs are often written as <something> as illustration but the <> are not part of the URL.


# Don't show more than 80 results (event if more are fetched)
%show 80

# Request whatever format is appropriate for the query type
%format default

# Activate table output
%display table withtypes

%prefix rdf <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
%prefix owl <http://www.w3.org/2002/07/owl#>
%prefix rdfs <http://www.w3.org/2000/01/rdf-schema#>
%prefix xsd <http://www.w3.org/2001/XMLSchema#>
%prefix dev <http://www.semanticweb.org/hugob/ontologies/2024/10/devedores#>

SELECT * WHERE {
   ?sub ?pred ?obj .
} limit 10

Error: Query processing error: <urlopen error unknown url type: '<http>

Presumably the Fuseki server log does not show any requests?

That message suggests the issue is in the client, not the server.




Reply via email to