1

In a CSW request what is the difference between the parameters CQL_FILTER and FILTER ?

Examples:

localhost:8080/geonetwork/srv/eng/csw?REQUEST=GetRecords&CONSTRAINT_LANGUAGE_VERSION=1.1.0&RESULTTYPE=results&VERSION=2.0.2&TYPENAMES=gmd%3AMD_Metadata&CONSTRAINTLANGUAGE=CQL_TEXT&SERVICE=CSW&CONSTRAINT=Product

and

localhost:8080/geonetwork/srv/eng/csw?REQUEST=GetRecords&CONSTRAINT_LANGUAGE_VERSION=1.1.0&RESULTTYPE=results&VERSION=2.0.2&TYPENAMES=gmd%3AMD_Metadata&CONSTRAINTLANGUAGE=FILTER&SERVICE=CSW&CONSTRAINT=Product

Is there any CQL documentation?

1 Answer 1

3

CQL (Common Query Language) is a query language created by the OGC for the Catalogue Web Services specification. Unlike the XML-based Filter Encoding language, CQL is written using a familiar text-based syntax. It is thus more readable and better-suited for manual authoring.

Filter is (usually) an OGC filter which is expressed in XML and is more suited for machines to write.

2
  • It should also be noted that these parameters are optional and vendor specific, and can vary.
    – Barbarossa
    Commented Apr 18, 2017 at 16:00
  • not in the CSW spec they aren't optional or vendor specific
    – Ian Turton
    Commented Apr 18, 2017 at 16:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.