[GeoNetwork-devel] GestRecordById request

Hello !

I used the GeoNetwork CSW server.

I wanted to get metadata specified by its ID. So I decided to use a “GetRecordById” request. (http://localhost:8080/geonetwork/srv/eng/csw-test?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&ElementSetName=full&ID=c7d376d1-73da-446d-a74f-40aba0afecb1)

The xml response I receive doesn’t contain all the information despite the “ElementSetname” attribute is set to “full”.

I should use a “GetRecords” request. (http://localhost:8080/geonetwork/srv/eng/csw-test?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecords&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&outputFormat=application/xml&maxRecords=1&typeName=csw:Record&ElementSetName=full&constraintLanguage=CQL_TEXT&constraint_language_version=1.1.0&THEMEKEY=&resultType=results&constraint=AnyText+like+%27c7d376d1-73da-446d-a74f-40aba0afecb1%27)

Is it normal ?

Best regards,

Grégory Pain

+33 (0) 1 41 30 47 11

I would have expected you to get the full metadata. Although CSW is a bit of a pain so perhaps there is something there that I am not seeing. Have you tried the csw.test page to make requests as well?

Jesse

···

On Mon, Oct 27, 2014 at 10:43 AM, PAIN Gregory <gregory.pain@anonymised.com> wrote:

Hello !

I used the GeoNetwork CSW server.

I wanted to get metadata specified by its ID. So I decided to use a “GetRecordById” request. (http://localhost:8080/geonetwork/srv/eng/csw-test?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&ElementSetName=full&ID=c7d376d1-73da-446d-a74f-40aba0afecb1)

The xml response I receive doesn’t contain all the information despite the “ElementSetname” attribute is set to “full”.

I should use a “GetRecords” request. (http://localhost:8080/geonetwork/srv/eng/csw-test?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecords&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&outputFormat=application/xml&maxRecords=1&typeName=csw:Record&ElementSetName=full&constraintLanguage=CQL_TEXT&constraint_language_version=1.1.0&THEMEKEY=&resultType=results&constraint=AnyText+like+%27c7d376d1-73da-446d-a74f-40aba0afecb1%27)

Is it normal ?

Best regards,

Grégory Pain

+33 (0) 1 41 30 47 11



GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Which csw.test page are you thinking of? I tried both URIs in my browser to verify the xml responses. The responses are unfortunately different.

Grégory

De : Jesse Eichar [mailto:jesse.eichar@…189…]
Envoyé : mardi 28 octobre 2014 09:57
À : PAIN Gregory
Cc : geonetwork-devel@lists.sourceforge.net
Objet : Re: [GeoNetwork-devel] GestRecordById request

I would have expected you to get the full metadata. Although CSW is a bit of a pain so perhaps there is something there that I am not seeing. Have you tried the csw.test page to make requests as well?

Jesse

On Mon, Oct 27, 2014 at 10:43 AM, PAIN Gregory <gregory.pain@…1022…> wrote:

Hello !

I used the GeoNetwork CSW server.

I wanted to get metadata specified by its ID. So I decided to use a “GetRecordById” request. (http://localhost:8080/geonetwork/srv/eng/csw-test?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&ElementSetName=full&ID=c7d376d1-73da-446d-a74f-40aba0afecb1)

The xml response I receive doesn’t contain all the information despite the “ElementSetname” attribute is set to “full”.

I should use a “GetRecords” request. (http://localhost:8080/geonetwork/srv/eng/csw-test?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecords&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&outputFormat=application/xml&maxRecords=1&typeName=csw:Record&ElementSetName=full&constraintLanguage=CQL_TEXT&constraint_language_version=1.1.0&THEMEKEY=&resultType=results&constraint=AnyText+like+%27c7d376d1-73da-446d-a74f-40aba0afecb1%27)

Is it normal ?

Best regards,

Grégory Pain

+33 (0) 1 41 30 47 11



GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

It depends on the geonetwork version but it might be:

/geonetwork/srv/eng/admin.console#/settings/csw-test

or

/geonetwork/srv/eng/test.csw

Jesse

···

On Tue, Oct 28, 2014 at 10:14 AM, PAIN Gregory <gregory.pain@anonymised.com> wrote:

Which csw.test page are you thinking of? I tried both URIs in my browser to verify the xml responses. The responses are unfortunately different.

Grégory

De : Jesse Eichar [mailto:jesse.eichar@anonymised.com]
Envoyé : mardi 28 octobre 2014 09:57
À : PAIN Gregory
Cc : geonetwork-devel@lists.sourceforge.net
Objet : Re: [GeoNetwork-devel] GestRecordById request

I would have expected you to get the full metadata. Although CSW is a bit of a pain so perhaps there is something there that I am not seeing. Have you tried the csw.test page to make requests as well?

Jesse

On Mon, Oct 27, 2014 at 10:43 AM, PAIN Gregory <gregory.pain@anonymised.com> wrote:

Hello !

I used the GeoNetwork CSW server.

I wanted to get metadata specified by its ID. So I decided to use a “GetRecordById” request. (http://localhost:8080/geonetwork/srv/eng/csw-test?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&ElementSetName=full&ID=c7d376d1-73da-446d-a74f-40aba0afecb1)

The xml response I receive doesn’t contain all the information despite the “ElementSetname” attribute is set to “full”.

I should use a “GetRecords” request. (http://localhost:8080/geonetwork/srv/eng/csw-test?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecords&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&outputFormat=application/xml&maxRecords=1&typeName=csw:Record&ElementSetName=full&constraintLanguage=CQL_TEXT&constraint_language_version=1.1.0&THEMEKEY=&resultType=results&constraint=AnyText+like+%27c7d376d1-73da-446d-a74f-40aba0afecb1%27)

Is it normal ?

Best regards,

Grégory Pain

+33 (0) 1 41 30 47 11



GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Yes. But I keep the same problem.

Thanks a lot for your help.

Gregory

De : Jesse Eichar [mailto:jesse.eichar@…189…]
Envoyé : mardi 28 octobre 2014 10:19
À : PAIN Gregory
Cc : geonetwork-devel@lists.sourceforge.net
Objet : Re: [GeoNetwork-devel] GestRecordById request

It depends on the geonetwork version but it might be:

/geonetwork/srv/eng/admin.console#/settings/csw-test

or

/geonetwork/srv/eng/test.csw

Jesse

On Tue, Oct 28, 2014 at 10:14 AM, PAIN Gregory <gregory.pain@…1022…> wrote:

Which csw.test page are you thinking of? I tried both URIs in my browser to verify the xml responses. The responses are unfortunately different.

Grégory

De : Jesse Eichar [mailto:jesse.eichar@…189…]
Envoyé : mardi 28 octobre 2014 09:57
À : PAIN Gregory
Cc : geonetwork-devel@lists.sourceforge.net
Objet : Re: [GeoNetwork-devel] GestRecordById request

I would have expected you to get the full metadata. Although CSW is a bit of a pain so perhaps there is something there that I am not seeing. Have you tried the csw.test page to make requests as well?

Jesse

On Mon, Oct 27, 2014 at 10:43 AM, PAIN Gregory <gregory.pain@…1022…> wrote:

Hello !

I used the GeoNetwork CSW server.

I wanted to get metadata specified by its ID. So I decided to use a “GetRecordById” request. (http://localhost:8080/geonetwork/srv/eng/csw-test?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&ElementSetName=full&ID=c7d376d1-73da-446d-a74f-40aba0afecb1)

The xml response I receive doesn’t contain all the information despite the “ElementSetname” attribute is set to “full”.

I should use a “GetRecords” request. (http://localhost:8080/geonetwork/srv/eng/csw-test?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecords&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&outputFormat=application/xml&maxRecords=1&typeName=csw:Record&ElementSetName=full&constraintLanguage=CQL_TEXT&constraint_language_version=1.1.0&THEMEKEY=&resultType=results&constraint=AnyText+like+%27c7d376d1-73da-446d-a74f-40aba0afecb1%27)

Is it normal ?

Best regards,

Grégory Pain

+33 (0) 1 41 30 47 11



GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Gregory:

You might need to add the outputSchema to your getRecordByID url.

I just tried (using our GN v.2.10.3) adding the output schema to your getRecordByID url, and then it returned the same (full record) results as your GetRecords url
eg

http://localhost:8080/geonetwork/srv/eng/csw?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&
ElementSetName=full&
outputSchema=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&
id=c7d376d1-73da-446d-a74f-40aba0afecb1

and
http://localhost:8080/geonetwork/srv/eng/csw-test?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecords&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&outputFormat=application/xml&maxRecords=1&typeName=csw:Record&ElementSetName=full&constraintLanguage=CQL_TEXT&constraint_language_version=1.1.0&THEMEKEY=&resultType=results&constraint=AnyText+like+'c7d376d1-73da-446d-a74f-40aba0afecb1'
(should probably retrieve the same record format and length)

(Jesse: I wasn’t using csw.test; I just tested using the urls)

Kate


From: Jesse Eichar [mailto:jesse.eichar@anonymised.com]
Sent: Tuesday, 28 October 2014 7:57 PM
To: PAIN Gregory
Cc: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] GestRecordById request

I would have expected you to get the full metadata. Although CSW is a bit of a pain so perhaps there is something there that I am not seeing. Have you tried the csw.test page to make requests as well?

Jesse

On Mon, Oct 27, 2014 at 10:43 AM, PAIN Gregory <gregory.pain@anonymised.com> wrote:

Hello !

I used the GeoNetwork CSW server.

I wanted to get metadata specified by its ID. So I decided to use a “GetRecordById” request. (http://localhost:8080/geonetwork/srv/eng/csw-test?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&ElementSetName=full&ID=c7d376d1-73da-446d-a74f-40aba0afecb1)

The xml response I receive doesn’t contain all the information despite the “ElementSetname” attribute is set to “full”.

I should use a “GetRecords” request. (http://localhost:8080/geonetwork/srv/eng/csw-test?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecords&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&outputFormat=application/xml&maxRecords=1&typeName=csw:Record&ElementSetName=full&constraintLanguage=CQL_TEXT&constraint_language_version=1.1.0&THEMEKEY=&resultType=results&constraint=AnyText+like+%27c7d376d1-73da-446d-a74f-40aba0afecb1%27)

Is it normal ?

Best regards,

Grégory Pain

+33 (0) 1 41 30 47 11



GeoNetwork-devel mailing list
GeoNetwork-devel@anonymised.comists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Kate,

Thanks a lot. It works !

Regards,

Gregory

De : Kate Roberts [mailto:K.Roberts@anonymised.com…157…]
Envoyé : mardi 28 octobre 2014 23:16
À : ‘Jesse Eichar’; PAIN Gregory
Cc : geonetwork-devel@lists.sourceforge.net
Objet : RE: [GeoNetwork-devel] GestRecordById request … add the outputSchema? [SEC=UNCLASSIFIED]

Hi Gregory:

You might need to add the outputSchema to your getRecordByID url.

I just tried (using our GN v.2.10.3) adding the output schema to your getRecordByID url, and then it returned the same (full record) results as your GetRecords url

eg

http://localhost:8080/geonetwork/srv/eng/csw?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&
ElementSetName=full&

outputSchema=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&
id=c7d376d1-73da-446d-a74f-40aba0afecb1

and

http://localhost:8080/geonetwork/srv/eng/csw-test?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecords&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&outputFormat=application/xml&maxRecords=1&typeName=csw:Record&ElementSetName=full&constraintLanguage=CQL_TEXT&constraint_language_version=1.1.0&THEMEKEY=&resultType=results&constraint=AnyText+like+%27c7d376d1-73da-446d-a74f-40aba0afecb1%27
(should probably retrieve the same record format and length)

(Jesse: I wasn’t using csw.test; I just tested using the urls)

Kate


From: Jesse Eichar [mailto:jesse.eichar@anonymised.com]
Sent: Tuesday, 28 October 2014 7:57 PM
To: PAIN Gregory
Cc: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] GestRecordById request

I would have expected you to get the full metadata. Although CSW is a bit of a pain so perhaps there is something there that I am not seeing. Have you tried the csw.test page to make requests as well?

Jesse

On Mon, Oct 27, 2014 at 10:43 AM, PAIN Gregory <gregory.pain@anonymised.com> wrote:

Hello !

I used the GeoNetwork CSW server.

I wanted to get metadata specified by its ID. So I decided to use a “GetRecordById” request. (http://localhost:8080/geonetwork/srv/eng/csw-test?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&ElementSetName=full&ID=c7d376d1-73da-446d-a74f-40aba0afecb1)

The xml response I receive doesn’t contain all the information despite the “ElementSetname” attribute is set to “full”.

I should use a “GetRecords” request. (http://localhost:8080/geonetwork/srv/eng/csw-test?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecords&OUTPUTSCHEMA=http://www.isotc211.org/2005/gmd&outputFormat=application/xml&maxRecords=1&typeName=csw:Record&ElementSetName=full&constraintLanguage=CQL_TEXT&constraint_language_version=1.1.0&THEMEKEY=&resultType=results&constraint=AnyText+like+%27c7d376d1-73da-446d-a74f-40aba0afecb1%27)

Is it normal ?

Best regards,

Grégory Pain

+33 (0) 1 41 30 47 11



GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork