Searching in TQ Data Foundation

Searching in TQ Data Foundation is supported across collections as well as within collections and their included collections. Global Search is the feature that supports server-wide search. The Search Panel that is available when viewing or editing a specific collection supports search within that collection and its included collections.

The main header bar in TQ Data Foundation provides a search feature that has access to both Global Search, Quick Lookup, and Find Code for Reference Data.

Search header

By default, when collections are enabled for Global Search, this is the default result. If no collections are enabled for Global Search then Quick Lookup is the default. See below for details on each option. The images below show different results due to the fact that Global Search only has one enabled collection applicable for the result, where the quick lookup searches across all collections.

Quick Lookup

Quick Lookup lets you find assets (resources) across all asset collections in TQ Data Foundation by entering their name. This is an auto-complete look up field. As you type, any resource whose label is prefixed by the search text will appear in a popup list. Label and Preferred label with a language tag in the current browser’s language or with no language tag will be matched against the entered string.

Selecting a listed resource will navigate you to that resource in a new tab.

Quick Lookup

Search Panel

The Search panel lists assets of the selected type in a sortable table. From here, users can further filter displayed assets, export information, save searches and perform other operations.

Note

This panel is not available for ontologies, please see ontology specific documentation in Working with Ontologies.

By default, this panel will display up to 1,000 result rows, unless changed by your Administrator.

Search Panel

Search Panel

Selecting Asset Type in the Search Panel

The Type Selector shown at the top of the Search panel lets you to select the type of assets to show in the table. You can select an asset type either from the Type drop-down list (it supports autocomplete so to select you can start typing the name of an asset type you are interested in) or you could click on the button next to the drop-down list to open a browsable hierarchical navigator listing available asset types.

The table in the Search panel shows only assets of the selected type including any of its sub types.

Selecting Search Results Columns

The ability to add/remove Columns is managed by clicking the + button, which is always visible on the right hand side of the table header. Properties available for selection depend on the type of the asset. For example, Database Column is selected as the asset type in the image below. You will be able to select any properties defined for the Database Column asset type.

Search Results Panel Column Selection

Search Results Panel Column Selection

You can scroll through the list of properties available for selection or quickly find a property by typing in the Search field at the top of the dropdown. Clicking on a property will select it as column. Currently selected columns will be shown at the top of the drop down list. To remove a selected column, click on the “x” icon next to it.

For properties that are relationships, you will see “>” to the right of the property name – as shown in the screenshot above. If you click on it, TQ Data Foundation will present a list of properties for the related asset. This way, you can add as columns not only properties of assets you are looking at, but also properties of related resources – these are called nested columns.

The screenshot below shows a results table that we will get after selecting as columns 1) “record count” property that belongs to related assets – namely, Database Tables that assets of the selected type, Database Columns, are associated with via “column of” property – this is an example of a nested column and 2) “physical datatype” property that belongs directly to the Database Columns.

Database Column Search Panel

Database Column Search Panel

If a column is a nested column, the header row will display the connecting relationship name in the square brackets. Cell values for such columns will display the related assets before displaying the value of the selected property. You can select more than one level of nesting.

Actions in the Search Panel

The Search panel has New button. Clicking on it, will let you create a new asset of the currently selected type.

The Search panel also offers several other actions that can be performed on the search query or on the search results. These actions and the corresponding menus and buttons are shown in the next screenshot and explained in the text below it.

Numbered Concept Search Panel

Numbered Concept Search Panel

  1. Export. Provides access to the various export options for search results. The entire search results are exported unless you check certain results rows, then export will be limited to those rows.

Search Results Export Options

Search Results Export Options

  1. Save Search button. Will bring up the dialog to save searches. Saved searches are public and can be seen and used by any other users of this collection. To run or delete previously saved searches use the Search Library panel.

Save Query

Save Query

  1. More. Provides access to several actions that can be performed on selected results. Check the row boxes for the items you want to perform these actions on.

    • Delete

    • Add to Asset List – which is another panel in the editor used for bulk functions or bookmarks

    • Add to Basket – which is the basket for all of TQ Data Foundation located in the main header bar

    • Edit assets – will launch a Batch Edit wizard tool

    • Show on Map Results Panel – this option will be available only if Map Explorer Panel is enabled. Clicking on it will display selected items on the map – provided that they have geo coordinates.

Search Result Actions

Search Result Actions

  1. Settings menu for Search Panel. Lets you personalize the behavior of this panel.

    • Hide Quick Asset Type Selector – will hide the type selector drop-down list but leave the type selector button in place.

    • Allow Abstract Classes in Quick Asset Type Selector - when enabled abstract classes will be visible within the asset type selector.

    • Disable auto-searching – this will change the behavior of the free text search box. You will need to hit enter when ready to submit instead of the results auto populating as you type.

    • Disable inherited Default Saved Search - checking this box will prevent the search panel from applying a saved search that was created for the parent type(s) of the selected asset type.

    • Add a column for each filter – checking this box will add a column to the results table each time you add a property as a filter for the search.

    • Show column filters - checking this box will render the column filters.

    • Case sensitive filter - checking this box will ensure column filters respect the case of the entered filter.

    • Return local results only – this will filter out included collections.

Settings for Search Panel

Settings for Search Panel

Searching for Assets

You can search among the assets of selected type by using:

  • Free text search of all textual propertye values - The entered text is matched against any property with a textual value; e.g., label, description, note. The text string can be a partial match. For example, searching for “rock” will be interpreted as rock and return results for “rocket”. Multiple word free text searches will be joined with a logical AND:

    • A B implies A AND B

    • “A B” matches the full term (in exactly that order)

    • A OR B is an explicit logical OR; any number of OR terms is supported, such as A OR B OR C OR D

Searching for Assets using Free Text

Searching for Assets using Free Text

  • Filter specific property values - The filter icon will open a dialog containing the current active filters or a listing of available properties from which one or more can be selected for filtering. This dialog works like the Columns drop down, including the ability to select properties of related assets. For each property selected in the Filter dialog, select the match type and enter or select its search criteria. The match type determines how TQ Data Foundation will use the search criteria. Different properties can use different match types. The search criteria specified for the selected properties are combined together to produce an overall search result. The search criteria will not be applied until clicking ‘Ok’; while clicking off the dialog will cancel the changes.

    Searching for Assets Filter Dialog

    Searching for Assets Filter Dialog

    Match Type

    How a search value matches instance property-values

    contains all

    This is the default match type for text properties. The entered text matches any resource where the specified property’s value contains the search string (case-insensitive). In case of multi-word searches, the resource must match all of the individual words. Example: For a city-name property, the search string “lis” would match instances having city-name values such as “Lisbon”, “Lisboa”, and “Minneapolis”.

    contains any

    The entered text matches any resource where the specified property’s value contains the search string (case-insensitive). In case of multi-word searches, the resource can match any of the individual words. Example: For a city-name property, the search string “new york” would match instances having city-name values such as “New York”, “Newark”, and “New Orleans”.

    not contains

    The entered text matches any resource where the specified property’s value does not contain the search string (case-insensitive). Example: For a city-name property, the search string “lis” would not match instances having city-name values such as “Lisbon”, “Lisboa”, and “Minneapolis”. Special characters, including but not limited to: ; ” ‘ [ ] < > `, will be ignored if present in the search string.

    equals

    This is the default match type for relationship properties. For attributes, the entered text matches any resource where the specified property’s value exactly matches the search string (case-sensitive). For relationships, the entry field becomes an auto-complete field for selecting a related asset and will present a list of auto-complete options that match the entered text, a list of the names (labels) of any resources that begin with the entered text.

    not equals

    For attributes, the entered text matches any resource where the specified property’s value exactly does not matches the search string (case-sensitive). For relationships, the entry field becomes an auto-complete field for selecting a related asset and will present a list of auto-complete options that does not match the entered text, a list of the names (labels) of any resources that begin with the entered text.

    starts with

    The entered text matches any resource where the specified property’s value starts with the search string (case-insensitive).

    regex (regular expression)

    For text properties, the entered text is used as a regular expression to match property values (case-insensitive). Example: For a city-name property, the search string “^lis” matches city-name values that begin with “lis”, e.g., “Lisbon” and “Lisboa” but not “Minneapolis”. Conversely, “lis$” matches only at the name’s end. For relationships, the regular expression is matched with the labels of the related resources.

    any value

    This match type has no corresponding search criteria. It simply searches for any occurrence of the selected property. Example: This match type can be used to determine how extensively a property is used.

    min/max number of values

    This match type finds resources that have a number of values for the selected property between the specified minimum and maximum values (inclusive). Example: If most resources in a Data Assets collection have labels in three languages, entering a label search with a min/max values range of 0 to 2 would return those instances with fewer than three labels.

    no value

    Like any value, above, this match type has no corresponding search criteria. It searches for items with no occurrence of the selected property. Example: This match type can be used to clean up a Data Assets Collection and check for any remaining values.

    boolean

    This is the default match type for Boolean properties. The selected value (true or false) matches any resource with a matching property value.

    nested form

    This is available only for relationship properties. Adds an embedded search form for properties whose type is another class

    min/max (inclusive)

    This is the default match type for numeric properties. This matches resources where the specified property’s value is within the specified range, inclusive.

    min/max (exclusive)

    This matches resources where the specified property’s value is within the specified range, exclusive.

  • Refine field is displayed at the top of each column under the column name. Entering a value in this field refines the results displayed in the table. The Refine is similar to Filter except that it affects only the visibility of assets that are already in the results table, without affecting which assets are loaded into results table, i.e., the underlying search scope is unchanged and refine only narrows data already in the table.

    Note

    Refine is not visible by default, users must toggle Show column filter under the panel settings menu.

    Searching for Assets using Refine

    Searching for Assets using Refine

    Note

    Enable case sensitive filters via Search Panel Settings.

    Searching for Assets using Refine Enable Case Sensitive Filter

    Searching for Assets using Refine Enable Case Sensitive Filter

    Note

    Show column filters must also be enabled to take advantage case sensitive filtering.

    Searching for Assets using Refine (case sensitive)

    Searching for Assets using Refine (case sensitive)

If you have incomplete search results, over 1000 if you have the default settings, you can still search the entire collection as well as export all the search results:

Labelled Image for Search

Labelled Image for Search

Tabular Editing of Assets

The Search Panel allows you to edit assets in a table, making it easy to quickly edit selected assets. This table editing method covers all basic data types, including datetime, HTML, and resource types. The editor a field may utilize is determined by the known data type provided by the public GraphQL schema. Unlike the form panel, the tabular editor will not consider alternative View/Property Shapes.

To utilize this editing feature, ensure that the correct permissions are assigned, and the graph is not set to read-only. Once these conditions are met, hovering over the column in Asset Search will make the edit icon visible and accessible.

Search Panel Tabular Edit

Search Panel Tabular Edit

Upon clicking the edit icon, the Search Panel will automatically identify the type of editor required. This determination is possible due to the prior knowledge of the schema, ensuring that the appropriate editor is promptly displayed.

Search Panel Tabular LangString Editor

Search Panel Tabular LangString Editor

Note

Some notes to note when editing:

  • Clicking the edit icon triggers a switch to edit mode, resulting in the temporary blocking of all navigation within the Search Panel. Any attempt to navigate away from the panel prompts an alert seeking confirmation before proceeding, with a risk of potential loss of any ongoing changes.

  • Editing across relationships is not supported.

  • Only local data is editable, any imports or inferred values are not editable.

  • Multiple cell edits are not supported.

When an edit of the value is initiated, the UI would alter the color of the input field, serving as a visual indicator. Upon completing the changes, the user has the option to either confirm or cancel their actions by clicking the respective buttons.

Customizing what is Available in the Search Panel

Depending on the asset collection type, different types of assets are available for search. For example, for Taxonomies, you can by default only search for instances of Concept and its subclasses, and a couple of similar taxonomy-specific classes. If you want to search for assets that are not instances of Concept, or if you want to perform nested searches that walk into linked assets that are not instances of Concept, you first need to tell the GraphQL engine about those classes. See SHACL and the GraphQL Schema on how to customize which classes will be available.

Search Library Panel

This panel will show the list of searches saved using the Search panel. What it shows is determined by the asset collection you are currently in.

You will be able to select and execute a search. You will also be able to delete saved searches.

The settings menu lets you configure how much information about a search should be displayed.

Search Library Panel

Search Library Panel

See also

For expert users familiar with RDF, TQ Data Foundation supports the SPARQL Query Language for search, see Using SPARQL to Query and Modify Data.

See also

For software developers and others familiar with GraphQL, TQ Data Foundation supports the GraphQL for search, see GraphQL.

Search results via API

Search results and facets can be accessed via an API. The results are returned as JSON.

Service Syntax

http://…/search/results

http://…/search/facets

Arguments

term

search term or phrase (uses query syntax)

optional

limit

number of results returned

optional

offset

number for offset

optional

withFacets

true or false

optional