Property talk:P10467
Latest comment: 12 hours ago by So9q in topic 404 cleanup
Documentation
naturkartan.se ID
identifier for a place in the naturkartan.se database
identifier for a place in the naturkartan.se database
[create Create a translatable help page (preferably in English) for this property to be included here]
Single value: this property generally contains a single value. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). List of violations of this constraint: Database reports/Constraint violations/P10467#Single value, SPARQL
Distinct values: this property likely contains a value that is different from all other items. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). List of violations of this constraint: Database reports/Constraint violations/P10467#Unique value, SPARQL (every item), SPARQL (by value)
Type “physical location (Q17334923), recreational shelter (Q20856576), barbecue area (Q1546788), museum (Q33506)”: item must contain property “instance of (P31)” with classes “physical location (Q17334923), recreational shelter (Q20856576), barbecue area (Q1546788), museum (Q33506)” or their subclasses (defined using subclass of (P279)). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). List of violations of this constraint: Database reports/Constraint violations/P10467#Type Q17334923, Q20856576, Q1546788, Q33506, SPARQL
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P10467#Format, SPARQL
List of violations of this constraint: Database reports/Constraint violations/P10467#Format, SPARQL
Allowed entity types are Wikibase item (Q29934200): the property may only be used on a certain entity type (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). List of violations of this constraint: Database reports/Constraint violations/P10467#Entity types
Scope is as main value (Q54828448), as reference (Q54828450): the property must be used by specified way only (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). List of violations of this constraint: Database reports/Constraint violations/P10467#Scope, SPARQL
|
Pattern ^(?:sv|en)/([a-z\d\-]+\/(?:[a-z]+(?:[\-\_]{1}[a-z\d]+)*))$ will be automatically replaced to \1. Testing: TODO list |
Include /sv in the id and change name to path?
editThe API in Naturkartan has the following data on a trail: {'average_rating': 0.0,
'category_ids': [33, 49, 51, 38], 'difficulty': None, 'guide_ids': [88, 90, 304], 'id': '13979', 'imgix_url': 'https://uploads.naturkartan-cdn.se/d62a638e6777065e4f7d5bfd321600cc.jpg', 'importance': 3, 'length': 12.0, 'main_category_icon': 'hiking', 'main_icon_id': 33, 'municipality_id': 221, 'name_en': 'Arboga — Säterboleden trail', 'name_sv': 'Arboga - Säterboleden', 'organization_id': 80, 'path': '/sv/vastmanlands-lan/saterboleden', 'popularity': 150, 'published': True, 'time': 270, 'trail_status_reported_at': None, 'trip_ids': [], 'type': 'Trail', 'wheelchair_tested': False}
In light of that I suggest we change the ID to be called Path and include the prefix "/sv". @Salgo60 So9q (talk) 11:40, 6 January 2024 (UTC)
- I found out that the persistent site id exists on all html pages returned by naturkartan.
- Example for https://www.naturkartan.se/en/vastmanlands-lan/saterboleden:
data-naturkartan-preselected-site-id="13979"
- I changed the formatter urls and regexes accordingly and deprecate the old formatter url. Reason: the paths are not stable over time. So9q (talk) 12:18, 6 January 2024 (UTC)
- I went ahead and wrote some code to migrate the IDs. See test edit. Not all could be migrated though, e.g. https://www.naturkartan.se/sv/gastrikland which is not a site.
- Since there are 1085 ids to migrate this might warrant a bot request. WDYT? So9q (talk) 13:57, 6 January 2024 (UTC)
- @LevandeMänniska I saw you fixing an id manually. WDYT about the above? So9q (talk) 05:47, 22 July 2024 (UTC)
- Since I don't understand a bit about website coding and the like, another Wikipedian wrote a bookmarklet that extracts the ID number when you are on a page Naturkartan page. I've used it to convert several hundred strings to ID numbers, and I think it works like a charm. -- LevandeMänniska (talk) 15:07, 22 July 2024 (UTC)
- La till instruktioner på svenska i objektet. Sabelöga (talk) 00:55, 5 September 2024 (UTC)
- Since I don't understand a bit about website coding and the like, another Wikipedian wrote a bookmarklet that extracts the ID number when you are on a page Naturkartan page. I've used it to convert several hundred strings to ID numbers, and I think it works like a charm. -- LevandeMänniska (talk) 15:07, 22 July 2024 (UTC)
- Since I did not see any protests I went ahead with my script to help migrate all the remaining ids where new IDs can be found in the html.
- Sometimes it encounters 404 and then fails to find the new ID. So9q (talk) 20:44, 1 December 2024 (UTC)
- @LevandeMänniska I saw you fixing an id manually. WDYT about the above? So9q (talk) 05:47, 22 July 2024 (UTC)
404 cleanup
edit@Salgo60 Unfortunately Naturkartan does not follow the tombstone pattern so we should handle when links break somehow IMO.
Do you have code to easily get all QIDs where the naturkartan id gives 404? There are 10+ which equals about 1%. E.g. https://www.wikidata.org/wiki/Q107400887 So9q (talk) 21:00, 1 December 2024 (UTC)