Property talk:P1030

From Wikidata
Jump to navigation Jump to search

Documentation

light characteristic
description of a navigational light sequence or colour displayed on a nautical chart. Explicitly state white light (W)
Descriptiona graphic and text description of a navigational light sequence or colour displayed on a nautical chart or in a Light List
Representslight characteristic (Q1738955)
Data typeString
Template parameter"characteristic" in en:Template:Infobox lighthouse
Domainlighthouse (Q39715), light characteristic (Q1738955) or lighthouse light (Q106975467)
Allowed values
According to this template: pattern, colour(s), period, height and range separated by space
According to statements in the property:
((?!\b(FI)).)*
When possible, data should only be stored as statements
Example
According to this template: Almagrundet lighthouse (Q10406517) => Fl(4) WR 12s 29m 13M
According to statements in the property:
Bengtskär lighthouse (Q3737012) → Fl(3) W 20s
Bremerhaven lighthouse (Q304471) → Iso W 4s
When possible, data should only be stored as statements
Format and edit filter validation(I could compose a regexp for this, but it will not be short and I doubt it will be usefull)
Tracking: usageCategory:Pages using Wikidata property P1030 (Q26210051)
See alsolighthouse range (P2929), focal height (P2923), racon signal (P3994)
Lists
Proposal discussionProposal discussion
Current uses
Total8,523
Main statement8,42798.9% of uses
Qualifier951.1% of uses
Reference1<0.1% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Format “((?!\b(FI)).)*: value must be formatted using this pattern (PCRE syntax). (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/P1030#Format, SPARQL
pattern occurring only once
may be correct, but might be malformed (Help)
Violations query: SELECT (SAMPLE(?item) as ?item) ?value (COUNT(DISTINCT ?item) as ?count) WHERE { ?item wdt:P1030 ?value } GROUP BY ?value HAVING (?count = 1) ORDER BY DESC(?value) LIMIT 1000
List of this constraint violations: Database reports/Complex constraint violations/P1030#pattern occurring only once
basic patterns without an item
create an item for the light characteristic. Ensure patterns are normalized before creating items for them. (Help)
Violations query: SELECT (SAMPLE(?item) as ?item) ?value (COUNT(DISTINCT ?item) as ?count) { ?item wdt:P1030 ?value . FILTER NOT EXISTS { ?pattern wdt:P1030 ?value ; wdt:P31 wd:Q1738955 } . FILTER(REGEX(?value, "^(Iso\u007CFl\u007COc\u007CQ\u007CLFl\u007CVQ)(\\(\\d\\))? [WRGY]{1,4} [\\d\\.]+s$")) FILTER(!REGEX(?value, "FI")) } GROUP BY ?value ORDER BY DESC(?count) LIMIT 20
List of this constraint violations: Database reports/Complex constraint violations/P1030#basic patterns without an item
frequent pattern without item
create an item for the light characteristic. Ensure patterns are normalized before creating items for them. "W" might be missing. (Help)
Violations query: SELECT (SAMPLE(?item) as ?item) ?value (COUNT(DISTINCT ?item) as ?count) WHERE { ?item wdt:P1030 ?value . MINUS { ?pattern wdt:P1030 ?value ; wdt:P31 wd:Q1738955 } . FILTER(!REGEX(?value, "FI")) } GROUP BY ?value ORDER BY DESC(?count) LIMIT 20
List of this constraint violations: Database reports/Complex constraint violations/P1030#frequent pattern without item
item for pattern available
lighthouse has a pattern for which an item is available, but the qualifier statement is subject of (P805) isn't used to link it (Help)
Violations query: SELECT ?item ?ltho ?value { ?ltho wdt:P1030 ?value . hint:Prior hint:rangeSafe true . FILTER NOT EXISTS { ?ltho p:P1030 / pq:P805 [] } ?item wdt:P31 wd:Q1738955 ; p:P1030/ps:P1030 ?value . ?ltho wdt:P31 wd:Q39715 . }
List of this constraint violations: Database reports/Complex constraint violations/P1030#item for pattern available
mismatch pattern and pattern on value of P1030
may be correct (Help)
Violations query: SELECT ?item ?ltho ?value ?pattern { ?ltho p:P1030 [pq:P805 ?item; ps:P1030 ?value] . FILTER NOT EXISTS { ?item wdt:P31 wd:Q1738955 ; p:P1030/ps:P1030 ?value } OPTIONAL { ?item wdt:P1030 ?pattern } }
List of this constraint violations: Database reports/Complex constraint violations/P1030#mismatch pattern and pattern on value of P1030
Pattern ^(Fl|Oc|Q) (\(\d\).+)$ will be automatically replaced to \1\2.
Testing: TODO list
Pattern ^(Q|F|VQ)([RGW].*)$ will be automatically replaced to \1 \2.
Testing: TODO list
Pattern ^(.*) (.*)$ will be automatically replaced to \1 \2.
Testing: TODO list
Pattern ^ISO (.+)</nowiki>$ will be automatically replaced to Iso \1.
Testing: TODO list
Pattern ^Occ (.+)$ will be automatically replaced to Oc \1.
Testing: TODO list
Pattern ^FL (.+)$ will be automatically replaced to Fl \1.
Testing: TODO list
Pattern ^(.*[A-Za-z])\.([ A-Za-z].+)$ will be automatically replaced to \1 \2.
Testing: TODO list
Pattern ^(.+)\.$ will be automatically replaced to \1.
Testing: TODO list
Pattern ^(.+\d) s$ will be automatically replaced to \1s.
Testing: TODO list
Pattern ^(.*)[fF]ixed(.*)$ will be automatically replaced to \1F\2.
Testing: TODO list
Pattern ^(.*)[fF]lash(ing|es| )(.*)$ will be automatically replaced to \1Fl\3.
Testing: TODO list
Pattern ^(.*)[oO]cculting(.*)$ will be automatically replaced to \1Oc\2.
Testing: TODO list
Pattern ^(.*)[iI]sophase(.*)$ will be automatically replaced to \1Iso\2.
Testing: TODO list
Pattern ^(.*)[wW]hite(.*)$ will be automatically replaced to \1W\2.
Testing: TODO list
Pattern ^(.*)[rR]ed(.*)$ will be automatically replaced to \1R\2.
Testing: TODO list
Pattern ^(.*)[gG]reen(.*)$ will be automatically replaced to \1G\2.
Testing: TODO list
Pattern ^(.*)[yY]ellow(.*)$ will be automatically replaced to \1Y\2.
Testing: TODO list
Pattern ^(.*)[sS]econds?(.*)$ will be automatically replaced to \1s\2.
Testing: TODO list
Pattern ^(.*)[sS]ec[ \.](.*)$ will be automatically replaced to \1s \2.
Testing: TODO list
Pattern ^(.*\d)S$ will be automatically replaced to \1s.
Testing: TODO list
Pattern ^(.*) (.*)$ will be automatically replaced to \1 \2.
Testing: TODO list
Pattern ^(Fl|Iso|Oc) ([0-9]+)s$ will be automatically replaced to \1 W \2s.
Testing: TODO list
Pattern ^(Iso|Fl|Oc|Q|LFl|VQ)(\(\d\))?( [WRGY]{1,4})\.([0-9]+)s$ will be automatically replaced to \1\2\3 \4.
Testing: TODO list

According the proper handbook [1][edit]

the sections should all be finished with a full stop (period). Such as

e.g. 1 - F.R.
     2 - Oc.W.R.6s
     3 - Fl.(2)W.5s

Separated by . not a space. So what is your reference? 49.145.128.113 07:11, 24 January 2018 (UTC)[reply]

"FI" instead of "Fl"[edit]

It looks like some patterns include FI for flashing (including an uppercase i instead of lowercase L). I added a constraint to find them. --- Jura 03:02, 27 August 2019 (UTC)[reply]

Wow! I had no idea that so many items I have created had that error. I suppose copy-and-paste from a list of lights was not as reliable as I thought... /ℇsquilo 14:54, 16 September 2019 (UTC)[reply]
I have noted that User:KrBot insists on changing "FLFl" (Fixed light with Long Flashes" to "FlFl". Even though FLFl is an odd characteristic, it is not wrong. FlFl on the other hand is nonsense. /ℇsquilo 18:15, 29 September 2021 (UTC)[reply]
Oh, I forgot to mention that the object in question is Nordkoster North lighthouse (Q39145498). /ℇsquilo 18:18, 29 September 2021 (UTC)[reply]

Autofix for missing "W" (white)[edit]

I added one above for "(Fl|Iso|Oc) ([0-9]+)s". This currently finds 108. --- Jura 07:39, 29 April 2021 (UTC)[reply]