Skip to content

OVERPASS api working #38

@pandabear-de

Description

@pandabear-de

I have tried to get the following query running. I always get

Could not identify format for service response: serviceURI=http://wikiba.se/ontology#tabular, contentType=application/rdf+xml : response=

my query

PREFIX hint: <http://www.bigdata.com/queryHints#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX tabular: <http://wikiba.se/ontology-tabular#>
PREFIX osmm: <https://sophox.org/ontology#>
PREFIX osmt: <https://sophox.org/ontology/tags/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT * WHERE {
  hint:Query hint:optimizer "None" .

  SERVICE wikibase:tabular {
    bd:serviceParam wikibase:otQuery '''
      [out:csv(::id,::type,name)][timeout:25];
      (
        node["place"="village"]["wikidata"!~".*"](50,8.4045882700567,50.518665868545,9.3054671763067);
      );
      out;
    ''' .
    ?type tabular:%40type 'string' .
    ?id tabular:%40id 'string' . 
    ?name tabular:name 'string' .
  }

  BIND(URI(CONCAT("https://www.openstreetmap.org/", ?type, "/", ?id)) AS ?osmId)

  ?osmId osmm:loc ?loc .

  OPTIONAL {
    ?osmId osmt:wikidata ?wikidata .
    ?wikidata wdt:P31 ?instanceOf .
    SERVICE wikibase:label {
      bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de" .
      ?instanceOf rdfs:label ?instanceOfLabel .
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions