Project

General

Profile

Bug #3137

The query example in metacatquery.html document need to be changed

Added by Jing Tao over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
metacat
Target version:
Start date:
02/06/2008
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
3137

Description

Here is the example in that page:

The Pathquery Document

<pathquery version="1.0">
<meta_file_id>unspecified</meta_file_id>
<querytitle>unspecified</querytitle>
<returnfield>resource/dataset/originator/individualName/surName</returnfield>
<returnfield>resource/dataset/originator/individualName/givenName</returnfield>
<returnfield>resource/dataset/keywordInfo/keyword</returnfield>
<returndoctype></returndoctype>
<querygroup operator="UNION">
<queryterm casesensitive="false" searchmode="contains">
<value>%</value>
</queryterm>
<queryterm casesensitive="false" searchmode="contains">
<value>-//NCEAS//resource//EN</value>
<pathexpr>returndoc</pathexpr>
</queryterm>
<queryterm casesensitive="false" searchmode="contains">
<value>-//NCEAS//eml-dataset//EN</value>
<pathexpr>returndoc</pathexpr>
</queryterm>
</querygroup>
</pathquery>

This query make no sense to user. We need another one which query eml documents.

History

#1 Updated by Jing Tao over 11 years ago

Change to another query:
<pathquery version="1.0">
<meta_file_id>unspecified</meta_file_id>
<querytitle>unspecified</querytitle>
<returnfield>dataset/title</returnfield>
<returnfield>keyword</returnfield>
<returnfield>originator/individualName/surName</returnfield>
<returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype>
<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>
<querygroup operator="UNION">
<queryterm casesensitive="false" searchmode="contains">
<value>Plant</value>
<pathexpr>dataset/title</pathexpr>
</queryterm>
<queryterm casesensitive="false" searchmode="contains">
<value>plant</value>
<pathexpr>keyword</pathexpr>
</queryterm>
</querygroup>
</pathquery>

#2 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 3137

Also available in: Atom PDF