Querying for a country Speed limits

31 views Asked by At

I'm trying to get a list of general speed limits for a given country from WikiData using SPARQLE.

For example France:

SELECT ?speed ?qualifierLabel WHERE {
    wd:Q142
        wdt:P3086 ?speed ;
       p:P3086 [
            ps:P3086 ?speed ;
            pq:P3005 ?qualifier ;
        ] . 
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}

This gives me 1 result. The web page knows 6 speed limits. For Germany (Q183) the same query gives me 2 results, the web page knows 3.

What's the problem here?

Update: UninformedUser has solved half of the problem, the info for France can be queried now. But for Germany this doesn't work 100%:

SELECT ?speed ?qualifierLabel WHERE {
    wd:Q183
       p:P3086 [
            ps:P3086 ?speed ;
            pq:P3005 ?qualifier ;
        ] . 
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}

You get only 2 results, while the web page lists 3. (Maybe because one of the results is "no value"? Is that filtered out?)

0

There are 0 answers