|
|
| (2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) |
| Zeile 1: |
Zeile 1: |
| < [[Taginfo]]
| | See [[RelatedTerms]] |
| | |
| Related Term (de: Verwandter Begriff) Assoziationsbeziehung zwischen Begriffen.
| |
| | |
| >> Zur (bekannteren) englischen Dokumentation '''[http://wiki.openstreetmap.org/Taginfo/RelatedTerm auf dem OSM Wiki]'''.
| |
| | |
| == Überblick ==
| |
| | |
| === The Problem ===
| |
| | |
| We want to improve searching for OSM tags. Currently, when looking for the correct tag of a "church", it's not straighforward that the correct tag is "amenity=place_of_worship". A crucial point there is that synonyms and related terms are found (term being one ore more words).
| |
| | |
| Here are some collected examples:
| |
| * EN: amenity=place_of_worship => church
| |
| * DE_ch: Fussgängerstreifen => ?
| |
| * DE_de: Litfaßsäule => ?
| |
| * (please add yours)
| |
| | |
| === Lösungsansatz ===
| |
| | |
| In order to achieve this a controlled word list (a thesaurus) becomes necessary. This is
| |
| a list of terms where some are OpenStreetMap specific. This can not be found in a general
| |
| purpose thesaurus.
| |
| | |
| So, we propose to capture in the OSM wiki so-called "related terms". They can be kept up
| |
| to date by the community (while I would like to set a good example).
| |
| | |
| Of course it would be more precise to introduce also synonyms and broader/narrower terms.
| |
| But that seems too complicated for many users. (Hintergrund (aus: [
| |
| http://en.wikipedia.org/wiki/Thesaurus], bzw. [http://de.wikipedia.org/wiki/Thesaurus]):
| |
| Als Thesaurus (auch kontrolliertes Vokabular, Taxonomie, Ontologie) bezeichnet man ein
| |
| Wortnetz, mit dem ein Themengebiet genauer beschrieben und repräsentiert wird. Es ist
| |
| eine Sammlung von Begriffen, die in thematischer Beziehung (Relation, Assoziation)
| |
| zueinander stehen. Es werden folgende Arten von Beziehungen unterschieden: 1. Synonyme,
| |
| 2. Ober- und Unterbegriffe und 3. verwandte Begriffe.)
| |
| | |
| In order to store related terms are proposes to use wiki templates.
| |
| Look at the wiki page '[http://wiki.openstreetmap.org/wiki/Tag:amenity%3Dplace_of_worship Tag:amenity=place_of_worship]' to see how this template used. Here is the [http://wiki.openstreetmap.org/wiki/Template:RelatedTerm Template:RelatedTerm] with some explanations.
| |
| | |
| The related terms are parsed from the Wiki pages by Taginfo during the update process and
| |
| stored in Taginfo database (as it's already doing for the "tag" template). The terms
| |
| lists are then passed over to the Taginfo API. BTW: The "preferred term" ("Preferred
| |
| tag") can be estimated by the tag statistics API of Taginfo.
| |
| | |
| Theoretically parts of this code could be ported over to the search Taginfo (the Taginfo
| |
| API is already used now by our TagFinder).
| |
| | |
| === Projekt RelatedTerms in OSM 2011 ===
| |
| | |
| Dies ist die Realisierung des Lösungsansatzes. Koordination [[Benutzer:Stefan|Stefan]]
| |
| | |
| Das Projektvorhaben lässt sich in folgende Teilprojekte gliedern:
| |
| # Teilprojekt RelatedTerm-Ersterfassung .
| |
| # Teilprojekt Taginfo API 'relatedterms'.
| |
| # Teilprojekt Verbesserte Tag-Suche im [[POI-Service]].
| |
| # Teilprojekt RelatedTerm-Aktualisierung laufend durch OSM-Community.
| |
| | |
| Auf diesen Arbeiten aufbauend - insbesondere dem Taginfo API 'relatedterms' - kann dann z.B. auch in [[Taginfo]] und in [[JOSM]] eine verbesserte Tags- bzw. Presets-Suche realisiert werden.
| |
| | |
| == Verwandte Begriffe für Anwender und Wiki-Autoren ==
| |
| | |
| Man verwende die Vorlage '[http://wiki.openstreetmap.org/wiki/Template:RelatedTerm Template:RelatedTerm]' (lokaler [[Template:RelatedTerm]]).
| |
| | |
| === Related Terms Test ===
| |
| | |
| Funktioniert hier nicht ganz weil das Template Funktionen des neusten MediaWiki-Releases verwendet, die hier noch nicht vorhanden sind.
| |
| | |
| Related Terms: {{RelatedTerm|castle}} {{RelatedTerm|villa}} {{RelatedTerm|ruin}}
| |
| {{RelatedTerm|DE_ch|Schloss}} {{RelatedTerm|word1 word2}}
| |
| | |
| == Verwandte Begriffe für Programmierer ==
| |
| | |
| Taginfo API neu mit Set von RelatedTerms aus beliebigen OSM-Wiki-Seiten (deutschen und englischen). Taginfo API-Dokumentation siehe [[Taginfo]].
| |
| | |
| The related terms are maintained by users in [[Template:RelatedTerm]] templates. See [http://meta.wikimedia.org/wiki/Help:Template Help:Template] on MediaWiki.
| |
| | |
| Programmers can access Taginfo instances with RESTful webservices (HTTP GET with JSON response) to be defined and implemented yet.
| |
| | |
| Example result (mock up):
| |
| {"rp":0,
| |
| "page":0,
| |
| "data":[
| |
| {"value":"castle", "count_all":3,"key":"historic "},
| |
| ...
| |
| ],
| |
| "total":6
| |
| }
| |
| | |
| ==== Taginfo API specification 'relatedterms' (Entwurf) ====
| |
| | |
| * Path: /api/2/wiki/relatedterms
| |
| * Description: Gegeben Term, gib RelatedTermList mit Statistik zurück.
| |
| * Parameters: q
| |
| * Paging: no
| |
| * Filter: english — Check for key wiki pages in any language (0, default) or in the English language (1).
| |
| * Sort: code, ranked?
| |
| * Result: ''(tbd.)''
| |
| * Example: http://taginfo.openstreetmap.ch/api/2/wiki/relatedterms?q=castle
| |
| * UI Example: none (see TagFinder in [[POI-Service]]).
| |
| | |
| ==== Taginfo API specification 'relatedterms' (V.2) ====
| |
| | |
| * Path: /api/2/wiki/relatedterms
| |
| * Description: Gegeben Term, gib RelatedTermList mit Statistik zurück.
| |
| * Parameters: q
| |
| * Paging: no
| |
| * Filter: english — Check for key wiki pages in any language (0, default) or in the English language (1).
| |
| * Sort: code, ranked?
| |
| * Result: ''(tbd.)''
| |
| * Example: http://taginfo.openstreetmap.ch/api/2/wiki/relatedterms?q=castle
| |
| * UI Example: none (see TagFinder in [[POI-Service]]).
| |
| | |
| [[Kategorie:OpenStreetMap]]
| |