0

I'm trying to query some basic SPARQL on Linked Geo Data's Endpoint http://linkedgeodata.org/sparql

Running a normal Select * Select * query

i get a few triples like these enter image description here

But when i run

#Prefix lgdr:<http://linkedgeodata.org/triplify/> #Prefix lgdo:<http://linkedgeodata.org/ontology/> Select ?subject ?predicate ?object { lgdr:?subject ?predicate ?object .} Limit 200 `

I get :

enter image description here

Why is this happening ?

2 Answers2

3

You commented out the lgdr namespace but you are still usting it in lgdr:?subject. Thus virtuoso willl not know what to do because the lgdr namespace is not defined.

vds
  • 349
  • 1
  • 10
3

As well as the namespace issues, lgdr:?subject ... is not proper SPARQL.

It will be seen by the parser as the 4-tuple:

lgdr:   ?subject ?predicate ?object .

which is why it complains about lgdr:

AndyS
  • 16,345
  • 17
  • 21