Skip to content

Commit

Permalink
docs(advanced search): fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Schweizer committed May 25, 2021
1 parent d4bb3ad commit 8d3c3f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
10 changes: 5 additions & 5 deletions docs/how-to-use/search/advanced-search-user-docs.md
Expand Up @@ -10,7 +10,7 @@ A query consists of the following elements:
- selection of a resource class belonging to the selected ontology (optional)
- specification of properties, comparison operators, and values (optional).

Although selection of a resource or a property ore both are optional, either a resource class has to be selected or at least one property has to be specified,
Although selection of a resource or a property or both are optional, either a resource class has to be selected or at least one property has to be specified,
otherwise the query is not considered valid and cannot be submitted.

## Comparison Operators
Expand All @@ -21,11 +21,11 @@ one or more of the following comparison operators can be selected:
- `is equal to`: value equality: same number, exact same string, overlap of date periods, same target resource.
- `is not equal to`: value inequality: not same number, not exact same string, no overlap of date periods, not same target resource.
- `is greater than`: value comparison: number is greater than search value, date period begins after search value.
- `is greater than or equal to` value equality / value comparison: number is equal or greater than search value, overlap of date periods or date period begins after search value.
- `is greater than or equal to` value equality / value comparison: number is equal to or greater than search value, overlap of date periods or date period begins after search value.
- `is less than`: value comparison: number is less than search value, date period ends before search value.
- `is less than or equal to`: value equality / value comparison: number is equal or less than search value, overlap of date periods or date period ends before search value.
- `is less than or equal to`: value equality / value comparison: number is equal to or less than search value, overlap of date periods or date period ends before search value.
- `exists`: a value for the given property exists.
- `is like`: search value is contained in a text using the SPARQL [REGEX](https://www.w3.org/TR/sparql11-query/#func-regex) function (support of regular expressions).
- `is like`: search value is contained in a text using the SPARQL [REGEX](https://www.w3.org/TR/sparql11-query/#func-regex) function (supports regular expressions).
- `matches`:
- text property: search value matches the text ([Lucene Query Parser Syntax](https://docs-api.dasch.swiss/08-lucene/lucene-query-parser-syntax/)).
- linking property: matches the specified linked resource.
Expand All @@ -34,7 +34,7 @@ one or more of the following comparison operators can be selected:

### Regular Expressions (is like)

The `is like` operator lets the user search for texts that are *like* the search value, supporting regular expressions.
The `is like` operator lets the user search for texts that are *like* the search value via the support of regular expressions
In this example, all books are found whose title contains "Narrenschiff" followed by a space and some other characters like "(lat.)" or "(dt.)".

For general information about regular expressions see this [interactive tutorial](https://regexone.com).
Expand Down
2 changes: 1 addition & 1 deletion docs/how-to-use/search/advanced-search.md
@@ -1,6 +1,6 @@
# Advanced search (Component)

The advanced search allows you to filter by project, by source type (resource class), or by the metadata (properties) of source types. Each filter can be standalone or combined. The metadata field can be precisely filtered with criteria such as "contains", "like", "equals to", "exists" or in case of a date value with "before" or "after". In addition, for a metadata field that is connected to another source type, it's possible to filter by this second source type. If you are looking for the source type "Photograph" with the metadata field "Photographer", which is connected to source type "Person", you can search for photograph(s) taken by person(s) who is born before February 1970. The result of this request will be an intersection of the two source types.
The advanced search allows you to filter by project, by source type (resource class), or by the metadata (properties) of source types. Each filter can be used individually or combined. The metadata field can be precisely filtered with criteria such as "contains", "like", "equals to", "exists" or in case of a date value with "before" or "after". In addition, for a metadata field that is connected to another source type, it's possible to filter by this second source type. If you are looking for the source type "Photograph" with the metadata field "Photographer", which is connected to source type "Person", you can search for photograph(s) taken by person(s) who is born before February 1970. The result of this request will be an intersection of the two source types.

## Parameters

Expand Down
5 changes: 4 additions & 1 deletion docs/how-to-use/search/index.md
Expand Up @@ -14,7 +14,10 @@ DspSearchModule is part of @dasch-swiss/dsp-ui, follow [the installation guide](

## Components

This module contains various components to search. The main component is the dsp-search-panel, which contains the dsp-fulltext-search, dsp-advanced-search and dsp-expert-search. All of them can be used standalone or in combination in dsp-search-panel.
This module contains various components to search.
The main component is the dsp-search-panel, which contains the dsp-fulltext-search,
dsp-advanced-search and dsp-expert-search.
All of them can be used individually or in combination in dsp-search-panel.

### [Search panel](/developers/dsp-ui/documentation/search/search-panel)

Expand Down

0 comments on commit 8d3c3f2

Please sign in to comment.