Modify

Opened 6 years ago

Last modified 3 years ago

#16093 new enhancement

handling of (lifecycle) prefixes

Reported by: Klumbumbus Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: lifecycle prefix Cc: daganzdaanda, demon_box

Description (last modified by Klumbumbus)

lifecycle prefixes become more and more popular in osm tagging and already have high usage numbers. This leads to the situation that e.g. a lot of validator rules can produce false positives. E.g. a way tagged with disused:railway=* + electrified=* results in a warning "electrified without railway".
Explizitly adding all possible prefixes to all possible selectors seems impossible and inefficient. (Basically every tag could have a lifecycle prefix.)

Any ideas how we could handle (lifecycle) prefixes in styles/validator rules/presets?

Maybe also a more universal prefix solution is possible which could be used for other tagging schemas, like contact: or seamark:?

some cross references:

Attachments (0)

Change History (15)

comment:1 by Klumbumbus, 6 years ago

Summary: handling of (lifecycle) prefixes in styles and validator ruleshandling of (lifecycle) prefixes

comment:2 by Schröcker, 6 years ago

It could get worse.
For example: disused:railway=* + construction:electrified=* .
The easiest solution is to check only the core function (without the life-cycle prefix) and a formal check of the prefix. (Valid values etc.)

comment:3 by Klumbumbus, 6 years ago

Cc: daganzdaanda added
Description: modified (diff)
Keywords: lifecycle prefix added

from user daganzdaanda at #15049:

The lifecycle prefix namespace is described here: https://wiki.openstreetmap.org/wiki/Lifecycle_prefix
It would be great if JOSM could help in adding, changing and removing these prefixes.

But I'm not sure how the UI should be. There are several possible situations when one might want a little help to find the right prefix:

  • add a lifecycle-prefix to existing tags
  • change an existing lifecycle-prefix on an existing tag
  • remove an lifecycle-prefix
  • add a new tag with a lifecycle-prefix

Maybe there could be an option in the right-click menu when you select a line in the tags ("Merkmale") window, or a button on that window? Either way, a dialog window with a selection of prefixes could pop up.
But maybe there is a more intuitive way for this?

The values I would include would be

proposed: ~26,000 in taginfo (quick sum by me)
construction: ~11,000 in taginfo
disused: ~53,000 in taginfo
abandoned: ~176,000 in taginfo
demolished: ~6200 in taginfo
removed: ~4300 in taginfo
(I'm not sure about the definition of historic: and was: which are also used a lot)

comment:4 by Klumbumbus, 6 years ago

Ticket #15049 has been marked as a duplicate of this ticket.

comment:5 by Klumbumbus, 6 years ago

Ticket #15741 has been marked as a duplicate of this ticket.

comment:6 by Klumbumbus, 6 years ago

Cc: demon_box added

comment:7 by Klumbumbus, 6 years ago

Description: modified (diff)

in reply to:  3 comment:8 by anonymous, 5 years ago

+1 (as I can't vote on this)

Replying to Klumbumbus:

But I'm not sure how the UI should be. There are several possible situations when one might want a little help to find the right prefix:

  • add a lifecycle-prefix to existing tags
  • change an existing lifecycle-prefix on an existing tag
  • remove an lifecycle-prefix
  • add a new tag with a lifecycle-prefix

If something has a lifecycle prefix, maybe a separate preset would be useful which show up in the Tags/Membership window, where you can change/remove prefixes. I'm just thinking and not sure it's the best solution.

comment:9 by anonymous, 5 years ago

It would be great to add the support for life cycle prefixes.
I would think you could for example have a drop down menu in the presets that is named 'current state' or 'lifecycle' and that contains the different prefixes.

If I have time I will take a look on how the presets work and try to make an example.

comment:10 by anonymous, 5 years ago

I just took a peak at the presets.xml
Right now I can see a way to change a tag and not a value with a drop down list.
Anyone can give me an advice or say if it's even possible right now?

comment:11 by Klumbumbus, 5 years ago

No you can only change values in presets in JOSM, not the keys, see wiki:TaggingPresets.

comment:12 by anonymous, 4 years ago

+1

Yes, please add support for lifecycle prefixes! I also miss it a lot since a long time!

Would be important for data entry as well as a good visualization in JOSM ... (e.g. disused:shop=yes – I like it very much in Vespucci!) And of course validation.

comment:13 by Klumbumbus, 4 years ago

Description: modified (diff)

comment:14 by Klumbumbus, 4 years ago

Ticket #19795 has been marked as a duplicate of this ticket.

comment:15 by gaben, 3 years ago

+1 / up / ping / whatever :D The upvote button doesn't do much.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to Klumbumbus.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.