Housekeeping: updating docs and contributors list

This commit is contained in:
Pieter Vander Vennet 2022-05-06 17:26:00 +02:00
parent 46365a9040
commit 210f8bf0ef
107 changed files with 7205 additions and 4220 deletions

View file

@ -106,6 +106,8 @@ subarg | doc
-------- | -----
removePrefixes | remove these snippets of text from the start of the passed string to search
removePostfixes | remove these snippets of text from the end of the passed string to search
instanceOf | A list of Q-identifier which indicates that the search results _must_ be an entity of this type, e.g. [`Q5`](https://www.wikidata.org/wiki/Q5) for humans
notInstanceof | A list of Q-identifiers which indicates that the search results _must not_ be an entity of this type, e.g. [`Q79007`](https://www.wikidata.org/wiki/Q79007) to filter away all streets from the search results
@ -113,7 +115,7 @@ removePostfixes | remove these snippets of text from the end of the passed strin
The following is the 'freeform'-part of a layer config which will trigger a search for the wikidata item corresponding with the name of the selected feature. It will also remove '-street', '-square', ... if found at the end of the name
```
```json
"freeform": {
"key": "name:etymology:wikidata",
"type": "wikidata",
@ -126,12 +128,30 @@ removePostfixes | remove these snippets of text from the end of the passed strin
"path",
"square",
"plaza",
]
],
"#": "Remove streets and parks from the search results:"
"notInstanceOf": ["Q79007","Q22698"]
}
]
}
```
Another example is to search for species and trees:
```json
"freeform": {
"key": "species:wikidata",
"type": "wikidata",
"helperArgs": [
"species",
{
"instanceOf": [10884, 16521]
}]
}
```
### pnat