Squery

From SRB

Contents

NAME

Squery - is a pure metadata query command

SYNOPSIS

Squery [-z zone ] [-N NameSpace ... ] -S SelectedMcatAttrName [-S SelectedMcatAttrName ] ... QueryMcatAttrName Op QueryMcatAttrValue [ QueryMcatAttrName Op QueryMcatAttrValue ] ...

Squery [-z zone ] H|-E|-U [-L] [-N NameSpace ... ] [-B AttrBeginsWithString] [-C AttrContainsString" ]

DESCRIPTION

Squery provides the facility for querying all queriable metadata in SRB including core metadata, extensible metadata and user-defined attribute-value type metadata.

The first synopsis is used to query using the metadata attribute names.

The second synopsis is used to find the metadata attribute names that can be used in the first synopsis.

The first synopsis takes a set of Namespaces (or schema names such as DC for dublin core ) that are stored in the extensible-schema table (MDAS_TD_EXTAB_INFO in the SRB core schema). The query is based on these schemas as well as the SRB core schema. (See Extensible Schema for details). The query is based on the condition given by QueryMcatAttrName Op QueryMcatAttrValue triplets and the values for the SelectedMcatAttrName are returned. The QueryMcatAttrNameand SelectedMcatAttrName should be in the chosen Namespaces.

The second synopsis takes a set of Namespaces and returns the AttrbuteNames in those schemas with the conditions satisfying AttrBeginsWithString and AttrContainsString if given. The other options are used to restrict the schema spaces still further.

OPTIONS

-z
zone option applies to the second synopsis and is used to perform the Sls operation on a particular zone. If ALL is used for zone then every zone known to the current zone will be queried. zone
-H
option displays both core attributes as well as extensible schema attributes.
-E
option displays only those attributes in the extensible schema.
-U
option displays only those attributes that are registered in the extensible schema but are in the user-defined attribute-value metadata.

SEE ALSO

Sufmeta SmodE