I am attempting to get information from UK Data Communities on planning decisions from here. I have tried to run the query considering the SPARQL endpoint that they provide. It's the first time I am running a query with SPARQL so I have followed general indications in here and considered a previous thread with other data from this site.
My code looks like:
library(SPARQL)
# create the query
endpoint <- "http://opendatacommunities.org/sparql"
query <-
"PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT *
WHERE {
?s ?p ?o
}"
# submit query
qd <- SPARQL(endpoint,query)
However I get the following error:
Error: XML content does not seem to be XML: 'Request Timeout'
I have tried to edit my query by stating explicitly the format
argument in SPARQL()
as xml
(qd <- SPARQL(endpoint,query, format = "xml")
) but I have obtained similar result. I would be grateful if someone could give some hints about what is going wrong.