Skip to content

Advanced Searching - Search Fields

This section contains some examples of the query syntax that can be used to find CEDAR artifacts by field name and/or value.

In this section, the term 'field name' refers to the internal name (not displayed label) of fields that are defined for that metadata instance. It does not refer to the metadata attributes for the instance artifact, for example, the assigned Title of the metadata instance. Those artifact metadata fields can not yet be searched individually by CEDAR. (When a search pattern is entered into CEDAR without a prefixed field name, CEDAR will search through the title, description, and version number of the artifact for the entered search pattern.)

Finding metadata instances by field name and/or field value

Suppose the following metadata instance:

Examples of queries that will retrieve the instance above:

  • Search by field name and value:

title:statistics

publisher:"City of New York"

"publishing institution":"City of New York" (note that 'Publishing Institution' has been defined in the template as the preferred label of the field 'Publisher')

  • Search by field name (any value):

publisher:*, or publisher:

  • Search by field value (any name):

*:"New York", or :"New York"

  • Boolean queries:

title:Statistics OR title:Math (the OR is optional—it is the assumed conjunction)

title:(Statistics OR Math)

title:Math OR (title:Statistics AND publisher:"New York")

Dataset OR disease:CRC searches for Dataset anywhere, OR a field 'disease' with value 'CRC'

  • Wildcard queries:

  • One or more characters: title:stat*

  • Single character: title:stat?stics

  • URLs:

  • url:https://catalog.data.gov/dataset/demographic-statistics-by-zip-code-acfc9

  • Ontology terms:

    • Search by term label: topic:statistics

    • Search by term URI: topic:http://edamontology.org/topic_2269

    • Search by term label and URI: topic:http://edamontology.org/topic_2269 AND topic:data

Finding templates, elements, and fields, by field name

Given the template for the previous instance:

Here are some examples of queries that can be used to find the template above:

title:*, or simply title:

Publish*:

"Contact Email": use quotes for multi-word strings

to?ic:
https://metadatacenter.readthedocs.io/en/latest/user-guide/sections/a2/4_advanced_searching_search_fields/
metadatacenter.readthedocs.io
CC-MAIN-2024-10
96311
application/http; msgtype=response
sha1:7IBVE3AZ244XGJ6AQAL23ON7MN7S6LZR
<urn:uuid:074686ba-809a-454b-8b9a-6494d59ec97f>
2024-02-28T13:52:29Z
104.17.33.82
text/html
sha1:XTIARS65JFY7GEVBLTZMG2XKYTLVECJJ
<urn:uuid:4cff63d1-4ee5-4738-bc17-b284ea9007bb>
https://metadatacenter.readthedocs.io/en/latest/user-guide/sections/a2/4_advanced_searching_search_fields/
response
<urn:uuid:441a1800-ae15-4ec9-b40c-a00454ba7a7f>
isPartOf: CC-MAIN-2024-10
publisher: Common Crawl
description: Wide crawl of the web for February/March 2024
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-126
software: Apache Nutch 1.19 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.5-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/