From OpenStreetMap Wiki
Jump to navigation Jump to search

osmm:key coverage

This page says every data item has an osmm:key predicate, giving bridge (Q103) as an example, but Sophox isn't returning any results for osmd:Q103 osmm:key ?key. 889 items have permanent key ID (P16) but no osmm:key:

  ?subject osmdt:P16 ?key.
    ?subject osmm:key [].

Run it (edit query)

What's special about these keys? Does it have something to do with when the data items were created?

 – Minh Nguyễn 💬 10:37, 19 August 2020 (UTC)

Received fatal alert: handshake_failure

@Yurik: Hi, this federated query fails with Caused by: Received fatal alert: handshake_failure. It sounds like bad certificate, it would be nice if you could what the error actually is?

prefix taxmeon: <>
prefix rdfs: <>

    SERVICE <> { 
        ?scifi taxmeon:hasVernacularName <> 

Run it (edit query)

--Zache (talk) 13:30, 24 October 2020 (UTC)

Could be also just that https is not supported by server and request is downgraded to http? In any case works --Zache (talk) 05:42, 25 October 2020 (UTC)

Tag usage statistics

It seem that this is possible to get usage statistics from taginfo only for keys.

Is it possible to add it also for tags ?

osmd:Q5043  osmm:count_all    54856951  # Number of objects in the OSM database with this tag.

--Pyrog (talk) 09:45, 7 November 2020 (UTC)

Any idea why Sophox is now rejecting

SELECT ?value ?loc
WHERE { ?osm osmt:amenity 'atm'; osmt:operator ?value; osmm:loc ?loc. }

? It used to work and become part of StreetComplete, and now it seems impossible to update tag statistics. It goes down with

java.util.concurrent.ExecutionException: org.openrdf.query.MalformedQueryException: com.bigdata.rdf.sail.sparql.ast.VisitorException: QName 'osmt:amenity' uses an undefined prefix


Mateusz Konieczny (talk) 14:11, 22 August 2021 (UTC)

I opened as I see no obvious solutions Mateusz Konieczny (talk) 14:23, 22 August 2021 (UTC)
Seems already known - - Sophox has only small portion of OSM data, just what was recently edited Mateusz Konieczny (talk) 15:25, 22 August 2021 (UTC)
@Mateusz Konieczny: Sophox seems to have no problem with the query above for me: I get 7,925 results in 1.798 seconds. But of course that's far short of the actual total. – Minh Nguyễn 💬 01:28, 23 August 2021 (UTC) reports over 180 000 atm, so Sophox no longer contains most of OSM data - making it useless at least for that purpose :( Mateusz Konieczny (talk) 07:54, 23 August 2021 (UTC)
Whatever the circumstances for the error message above, it's easy to get around. "osmt:amenity" is used simply as an abbreviation for "" - if the prefix "osmt" is not defined, you can define it in the beginning of your query yourself:
PREFIX osmt: <>
--TuukkaH (talk) 08:34, 23 August 2021 (UTC) not accessible

@@Yurik:, Today when I tried to access I got the following error.

Secure Connection Failed
An error occurred during a connection to Peer’s Certificate has been revoked.
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the website owners to inform them of this problem.

Hope you or someone will fix it soon.--Arjunaraoc (talk) 04:11, 11 February 2022 (UTC)

@Yurik: I have the same problem. SPARQL queries do not load. --Galopax (talk) 09:52, 17 February 2022 (UTC)
@Yurik:, Server is up, but old working queries are failing. Example: ----Arjunaraoc (talk) 04:49, 18 April 2022 (UTC)
The problem appears to be specific to the query, as most of the examples on the article page are working and even the ones integrated with wikidata query service( Example queries) are working.--Arjunaraoc (talk) 00:57, 8 July 2023 (UTC)

Find all documentation pages with 0 uses

Does anyone know how to find all key and tag pages that have documentation but there are 0 uses in the OSM database? maro21 15:33, 3 May 2023 (UTC)