Merge plant_detection
This commit is contained in:
commit
25ec71aff1
15 changed files with 780 additions and 158 deletions
|
@ -105,80 +105,49 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"id": "tree-leaf_type",
|
||||
"id": "plantnet",
|
||||
"render": "{plantnet_detection()}",
|
||||
"condition": "species:wikidata="
|
||||
},
|
||||
{
|
||||
"id": "tree-species-wikidata",
|
||||
"question": {
|
||||
"nl": "Is dit een naald- of loofboom?",
|
||||
"en": "Is this a broadleaved or needleleaved tree?",
|
||||
"it": "Si tratta di un albero latifoglia o aghifoglia?",
|
||||
"fr": "Cet arbre est-il un feuillu ou un résineux ?",
|
||||
"de": "Ist dies ein Laub- oder Nadelbaum?",
|
||||
"es": "¿Es un árbol de hoja ancha o de hoja aguja?"
|
||||
"en": "What species is this tree?",
|
||||
"de": "Um welche Baumart handelt es sich?",
|
||||
"id": "Spesies pohon apa ini?",
|
||||
"es": "¿De qué especie es este árbol?",
|
||||
"nl": "Wat is de boomsoort?",
|
||||
"fr": "Quelle est l'espèce de cet arbre ?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"leaf_type=broadleaved"
|
||||
"render": {
|
||||
"*": "{wikipedia(species:wikidata):max-height: 25rem}"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "species:wikidata",
|
||||
"type": "wikidata",
|
||||
"helperArgs": [
|
||||
"species",
|
||||
{
|
||||
"instanceOf": [
|
||||
10884,
|
||||
16521
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"nl": "Loofboom",
|
||||
"en": "Broadleaved",
|
||||
"it": "Latifoglia",
|
||||
"fr": "Feuillu",
|
||||
"de": "Laubbaum",
|
||||
"ca": "De fulla ampla",
|
||||
"es": "Latifoliada",
|
||||
"id": "Berdaun lebar"
|
||||
},
|
||||
"icon": {
|
||||
"path": "./assets/layers/tree_node/broadleaved.svg",
|
||||
"class": "small"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"leaf_type=needleleaved"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"nl": "Naaldboom",
|
||||
"en": "Needleleaved",
|
||||
"it": "Aghifoglia",
|
||||
"fr": "Résineux",
|
||||
"de": "Nadelbaum",
|
||||
"ca": "Amb fulles d'agulla",
|
||||
"es": "Hoja aguja",
|
||||
"id": "Berdaun jarum"
|
||||
},
|
||||
"icon": {
|
||||
"path": "./assets/layers/tree_node/needleleaved.svg",
|
||||
"class": "small"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"leaf_type=leafless"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"nl": "Permanent bladloos",
|
||||
"en": "Permanently leafless",
|
||||
"it": "Privo di foglie (permanente)",
|
||||
"fr": "Sans feuilles (Permanent)",
|
||||
"de": "Dauerhaft blattlos",
|
||||
"es": "Permanentemente sin hojas",
|
||||
"id": "Tanpa daun permanen"
|
||||
},
|
||||
"hideInAnswer": true,
|
||||
"icon": {
|
||||
"path": "./assets/layers/tree_node/leafless.svg",
|
||||
"class": "small"
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "tree-wikipedia",
|
||||
"#": "If this tree has a wikipedia article, show it. People can _only_ set the species though!",
|
||||
"render": {
|
||||
"*": "{wikipedia()}"
|
||||
},
|
||||
"condition": {
|
||||
"or": [
|
||||
"wikipedia~*",
|
||||
"wikidata~*"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "tree-denotation",
|
||||
|
@ -313,6 +282,88 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "tree-leaf_type",
|
||||
"question": {
|
||||
"nl": "Is dit een naald- of loofboom?",
|
||||
"en": "Is this a broadleaved or needleleaved tree?",
|
||||
"it": "Si tratta di un albero latifoglia o aghifoglia?",
|
||||
"fr": "Cet arbre est-il un feuillu ou un résineux ?",
|
||||
"de": "Ist dies ein Laub- oder Nadelbaum?",
|
||||
"es": "¿Es un árbol de hoja ancha o de hoja aguja?"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"leaf_type=broadleaved"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"nl": "Loofboom",
|
||||
"en": "Broadleaved",
|
||||
"it": "Latifoglia",
|
||||
"fr": "Feuillu",
|
||||
"de": "Laubbaum",
|
||||
"ca": "De fulla ampla",
|
||||
"es": "Latifoliada",
|
||||
"id": "Berdaun lebar"
|
||||
},
|
||||
"icon": {
|
||||
"path": "./assets/layers/tree_node/broadleaved.svg",
|
||||
"class": "small"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"leaf_type=needleleaved"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"nl": "Naaldboom",
|
||||
"en": "Needleleaved",
|
||||
"it": "Aghifoglia",
|
||||
"fr": "Résineux",
|
||||
"de": "Nadelbaum",
|
||||
"ca": "Amb fulles d'agulla",
|
||||
"es": "Hoja aguja",
|
||||
"id": "Berdaun jarum"
|
||||
},
|
||||
"icon": {
|
||||
"path": "./assets/layers/tree_node/needleleaved.svg",
|
||||
"class": "small"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"leaf_type=leafless"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"nl": "Permanent bladloos",
|
||||
"en": "Permanently leafless",
|
||||
"it": "Privo di foglie (permanente)",
|
||||
"fr": "Sans feuilles (Permanent)",
|
||||
"de": "Dauerhaft blattlos",
|
||||
"es": "Permanentemente sin hojas",
|
||||
"id": "Tanpa daun permanen"
|
||||
},
|
||||
"hideInAnswer": true,
|
||||
"icon": {
|
||||
"path": "./assets/layers/tree_node/leafless.svg",
|
||||
"class": "small"
|
||||
}
|
||||
}
|
||||
],
|
||||
"condition": {
|
||||
"#": "If the wikidata entry is known, no need to ask for redundant data such as leaf type",
|
||||
"and": [
|
||||
"species:wikidata="
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "tree-decidouous",
|
||||
"question": {
|
||||
|
@ -360,48 +411,10 @@
|
|||
}
|
||||
],
|
||||
"condition": {
|
||||
"#": "If the wikidata entry is known, no need to ask for redundant data such as leaf type",
|
||||
"and": [
|
||||
"leaf_type!~^leafless$"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "tree-species-wikidata",
|
||||
"question": {
|
||||
"en": "What species is this tree?",
|
||||
"de": "Um welche Baumart handelt es sich?",
|
||||
"id": "Spesies pohon apa ini?",
|
||||
"es": "¿De qué especie es este árbol?",
|
||||
"nl": "Wat is de boomsoort?",
|
||||
"fr": "Quelle est l'espèce de cet arbre ?"
|
||||
},
|
||||
"render": {
|
||||
"*": "{wikipedia(species:wikidata):max-height: 25rem}"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "species:wikidata",
|
||||
"type": "wikidata",
|
||||
"helperArgs": [
|
||||
"species",
|
||||
{
|
||||
"instanceOf": [
|
||||
10884,
|
||||
16521
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "tree-wikipedia",
|
||||
"#": "If this tree has a wikipedia article, show it. People can _only_ set the species though!",
|
||||
"render": {
|
||||
"*": "{wikipedia()}"
|
||||
},
|
||||
"condition": {
|
||||
"or": [
|
||||
"wikipedia~*",
|
||||
"wikidata~*"
|
||||
"leaf_type!~^leafless$",
|
||||
"species:wikidata="
|
||||
]
|
||||
}
|
||||
},
|
||||
|
|
|
@ -985,6 +985,16 @@
|
|||
"authors": [],
|
||||
"sources": []
|
||||
},
|
||||
{
|
||||
"path": "plantnet_logo.svg",
|
||||
"license": "Logo (fair usage)",
|
||||
"authors": [
|
||||
"https://plantnet.org"
|
||||
],
|
||||
"sources": [
|
||||
"https://plantnet.org"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "plus.svg",
|
||||
"license": "CC0; trivial",
|
||||
|
|
22
assets/svg/plantnet_logo.svg
Normal file
22
assets/svg/plantnet_logo.svg
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
version="1.1"
|
||||
id="svg2"
|
||||
width="197"
|
||||
height="116.32127"
|
||||
viewBox="0 0 197 116.32127"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs6" />
|
||||
<g
|
||||
id="g8"
|
||||
transform="translate(-1.375196,-41.199913)">
|
||||
<path
|
||||
style="fill:#8fb636;stroke:none"
|
||||
d="m 93.3752,135.52119 12,-21 -4,25 c 23.045,-11.772 32.998,-47.038298 33,-70.999998 0,-5.9908 0.838,-25.2828 -7.213,-27.1721 -7.654,-1.7961 -17.603,13.1208 -21.041,18.1721 -13.3558,19.6213 -22.8241,53.184998 -12.746,75.999998 M 42.375196,50.521192 c -3.2439,25.6902 16.759104,62.735998 41.000004,72.999998 -0.0234,-8.487 -1.0391,-16.513 0.4637,-24.999998 1.0531,-5.9466 5.1683,-13.9996 4.0093,-20 -0.914,-4.7316 -6.0155,-8.7352 -9.473,-11.6998 -9.978,-8.5558 -22.5558,-16.0213 -36.000004,-16.3002 m -41,72.999998 c 4.19365,8.258 15.8253,12.614 24,15.989 22.0533,9.107 46.351404,15.02 70.000004,18.011 -6.7774,-45.892 -61.032604,-47.725 -94.000004,-34 m 102.000004,34 c 22.945,-1.699 47.762,-8.999 69,-17.604 9.137,-3.702 20.019,-8.293 26,-16.396 -34.944,-13.554 -85.475,-12.001 -95,34 z"
|
||||
id="path881" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
Loading…
Add table
Add a link
Reference in a new issue