EntitySchema talk:E297
E297 is within the scope of the WikiProject Sailing, a collaborative effort to improve Wikidata's coverage of Sailing. If you would like to participate, you can visit the project page, where you can join the project, see a list of open tasks or join the discussion. |
To help centralise discussions and keep related topics together, Wikidata_talk:Schema_proposals/sailboat_class redirects here. |
Data Model
editDescription of the data model. Simon.letort (talk) 19:15, 25 March 2021 (UTC)
Schema proposal
editSee Wikidata:Schema_proposals/sailboat_class. Simon.letort (talk) 03:37, 19 March 2021 (UTC)
The following schema seems to satisfy all the criteria of the proposal. The model item passes.
Schema Text | Translation |
---|---|
PREFIX pq: <http://www.wikidata.org/prop/qualifier/> PREFIX ps: <http://www.wikidata.org/prop/statement/> PREFIX p: <http://www.wikidata.org/prop/> PREFIX wd: <http://www.wikidata.org/entity/> PREFIX wdt: <http://www.wikidata.org/prop/direct/> start = @<sailboatclass> <sailboatclass> { # Defining properties wdt:P31 [wd:Q106179098]; wdt:P279 @<subclass> +; # Required properties wdt:P18 .+; wdt:P176 .; wdt:P287 .; p:P2048 @<height>; p:P2049 @<width>; p:P2043 @<length1>; p:P2043 @<length2>; p:P2067 @<mass1>; p:P2067 @<mass2>; # Optional properties wdt:P5962 .*; wdt:P2079 .*; wdt:P516 .*; wdt:P5869 .*; } <subclass> EXTRA wdt:P31 { wdt:P31 [wd:Q16103215]; } <length1> { pq:P642 [wd:Q2358152]; } <length2> { pq:P642 [wd:Q1817392]; } <width> { pq:P642 [wd:Q2376482]; } <height> { pq:P642 [wd:Q244777 wd:Q2446632] } <mass1> { pq:P642 [wd:Q5636358] } <mass2> { pq:P642 [wd:Q5461048] } |
Start at<sailboatclass>
|
You can test this schema here (you'll have to paste in the schema) using the following query for the model item:
SELECT ?item WHERE { BIND(wd:Q97179551 as ?item)} LIMIT 1
I have not created an EntitySchema for this yet in case there is any feedback that needs to be incorporated to the schema. Teester (talk) 21:31, 29 March 2021 (UTC)
- Thanks a lot. I created the EntitySchema based on your proposed schema EntitySchema:E297. I copied your answer Wikidata_talk:Schema_proposals/sailboat_class in this talk page and redirected the talk page. Many thanks again, very helpful. Simon.letort (talk) 04:41, 2 April 2021 (UTC)
Currently, J/92s (Q97179551) fails this schema due to height (P2048). The schema specifies that the item should have 1 height (P2048) with 1 qualifier of (P642) which has a value of either draft (Q244777) or air draft (Q2446632).
J/92s (Q97179551) has 2 height (P2048), one with a qualifier of (P642) with value draft (Q244777) and another with qualifier of (P642) with value mast (Q331744).
Should the schema be adjusted to allow mast (Q331744) be used with height (P2048)? Also, can a sailboat class have both height (P2048)s with draft (Q244777) and a air draft (Q2446632) or should it have one or the other? I don't know enough about boats to say. Teester (talk) 09:19, 6 April 2021 (UTC)