Taginfo/RelatedTerm: Unterschied zwischen den Versionen
Aus Geoinformation HSR
Stefan (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „=== Overbiew === Related Term is an association relationship between terms. In OSM it is interpreted it as a general term because this makes it simpler to explai…“) |
Stefan (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
− | === | + | === Overview === |
− | Related Term is an association relationship between terms. In OSM it is interpreted it as a general term because this makes it simpler to explain. This definition of 'related term' includes all kinds of term relationships, like synonym, broader or narrower term. See [http://en.wikipedia.org/wiki/Thesaurus] in Wikipedia for some | + | Related Term is an association relationship between terms. In OSM it is interpreted it as a general term because this makes it simpler to explain. This definition of 'related term' includes all kinds of term relationships, like synonym, broader or narrower term. See [http://en.wikipedia.org/wiki/Thesaurus thesaurus] in Wikipedia for some background. |
=== Related terms for users and Wiki authors === | === Related terms for users and Wiki authors === | ||
− | + | To capture related terms use the MediaWiki template '[[Template:RelatedTerm]]'. | |
=== Related terms for programmers === | === Related terms for programmers === | ||
− | New Taginfo API to be implemented yet. It's HTTP GET parameter and a JSON response: | + | New Taginfo API (to be implemented yet). It's HTTP GET parameter and a JSON response: |
* Path: | * Path: | ||
Zeile 32: | Zeile 32: | ||
"total":6 | "total":6 | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Version vom 6. September 2011, 08:06 Uhr
Overview
Related Term is an association relationship between terms. In OSM it is interpreted it as a general term because this makes it simpler to explain. This definition of 'related term' includes all kinds of term relationships, like synonym, broader or narrower term. See thesaurus in Wikipedia for some background.
Related terms for users and Wiki authors
To capture related terms use the MediaWiki template 'Template:RelatedTerm'.
Related terms for programmers
New Taginfo API (to be implemented yet). It's HTTP GET parameter and a JSON response:
- Path:
- Description: Gegeben Term, gib RelatedTermList mit Statistikzurück
- Parameters: q
- Paging:
- Filter:
- Sort:
- Result:
- Example:
- Request: http://taginfo.openstreetmap.ch/api/2/wiki/relatedterms?q=castle
- Response:
{"rp":0, "page":0, "data":[ {"value":"castle", "count_all":3,"key":"historic "}, {"value":"shelter;waste_basket;bench","count_all":1,"key":"amenity"}, {"value":"bench","count_all":1,"key":"name"}, ... ], "total":6 }