Re: [deegree-users] CSW - Delete method
OSGeo project deegree
Brought to you by:
deegreesfadmin,
tfr
From: Bettina S. <bet...@br...> - 2012-01-05 15:48:13
|
Hello Lyn, >if all metadata elements should be searchable. This must be configured before >inserting! where is written what elements are searchable? Where is written that and how I can configure what is searchable?? Cheers, Bettina Am 05.01.2012 15:23, schrieb Lyn Goltz: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Bettina, > > could you try again with apiso:identifier as propertyName in the filter? This is > the correct queryable property identifying the MD_Metadata.fileIdentifier, > descriped in [1]. apiso:fileIdentifier is not a supported queryable property. > > Using AnyText is possible, but not recommended if you want to delete a single > metadata record. I assume your metadata store configuration use a custom > configuration for AnyText. Only the values of the configured XPath expressions > are used for search. I think the fileIdentifier is not included, so it is not > found by an anytext search. Add the XPath for the fileIdentifier or use > <AnyText> > <All/> > </AnyText> > if all metadata elements should be searchable. This must be configured before > inserting! > > Greetings, > Lyn > > [1] OpenGIS® Catalogue Services Specification 2.0.2 - ISO Metadata Application > Profile > > > > Am 05.01.2012 14:30, schrieb Bettina Scholze: >> Hello deegree users, >> >> we inserted a metadata set with the fileIdentifier XXXid into the CSW. Now we >> have problems to delete it. >> >> This is, how the metadata-xml starts: >> >> <gmd:MD_Metadata xsi:schemaLocation="http://www.isotc211.org/2005/gmd >> <https://service.gmx.net/de/cgi/derefer?TYPE=3&DEST=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd> >> http://schemas.opengis.net/iso/19139/20060504/gmd/gmd.xsd >> <https://service.gmx.net/de/cgi/derefer?TYPE=3&DEST=http%3A%2F%2Fschemas.opengis.net%2Fiso%2F19139%2F20060504%2Fgmd%2Fgmd.xsd>" >> >> xmlns:gmd="http://www.isotc211.org/2005/gmd >> <https://service.gmx.net/de/cgi/derefer?TYPE=3&DEST=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd>" >> >> xmlns:gco="http://www.isotc211.org/2005/gco >> <https://service.gmx.net/de/cgi/derefer?TYPE=3&DEST=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgco>" >> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance >> <https://service.gmx.net/de/cgi/derefer?TYPE=3&DEST=http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance>" >> >> xmlns:gml="http://www.opengis.net/gml >> <https://service.gmx.net/de/cgi/derefer?TYPE=3&DEST=http%3A%2F%2Fwww.opengis.net%2Fgml>" >> >> xmlns:xlink="http://www.w3.org/1999/xlink >> <https://service.gmx.net/de/cgi/derefer?TYPE=3&DEST=http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink>"> >> >> <gmd:fileIdentifier> >> <gco:CharacterString>XXXid</gco:CharacterString> >> </gmd:fileIdentifier> >> <gmd:language> >> [...] >> >> >> and this is the postbody we used to delete the metadata set: >> >> <?xml version="1.0" encoding="UTF-8"?> >> <csw:Transaction service="CSW" version="2.0.2" >> xmlns:csw="http://www.opengis.net/cat/csw/2.0.2 >> <https://service.gmx.net/de/cgi/derefer?TYPE=3&DEST=http%3A%2F%2Fwww.opengis.net%2Fcat%2Fcsw%2F2.0.2>" >> xmlns:ogc="http://www.opengis.net/ogc >> <https://service.gmx.net/de/cgi/derefer?TYPE=3&DEST=http%3A%2F%2Fwww.opengis.net%2Fogc>" >> xmlns:apiso="http://www.opengis.net/cat/csw/apiso/1.0 >> <https://service.gmx.net/de/cgi/derefer?TYPE=3&DEST=http%3A%2F%2Fwww.opengis.net%2Fcat%2Fcsw%2Fapiso%2F1.0>"> >> >> <csw:Delete> >> <csw:Constraint version="1.1.0"> >> <ogc:Filter> >> <ogc:PropertyIsEqualTo> >> <ogc:PropertyName>AnyText</ogc:PropertyName> >> <ogc:Literal>XXXid</ogc:Literal> >> </ogc:PropertyIsEqualTo> >> </ogc:Filter> >> </csw:Constraint> >> </csw:Delete> >> </csw:Transaction> >> >> We also tried with<ogc:PropertyName>apiso:fileIdentifier</ogc:PropertyName>. >> But it did not work either. No deletion, no error message, just the response, >> that 0 datasets were deleted. >> In the catalina.out logfile it even stated: >> >> [14:21:19] INFO: [TransactionHandler] Delete done! >> >> But when I look into the database (table idxtb_main) the dataset is still there. >> >> What is wrong with the Delete-postbody??? >> >> Cheers, >> Bettina >> >> >> >> >> ------------------------------------------------------------------------------ >> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex >> infrastructure or vast IT resources to deliver seamless, secure access to >> virtual desktops. With this all-in-one solution, easily deploy virtual >> desktops for less than the cost of PCs and save 60% on VDI infrastructure >> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox >> >> >> >> _______________________________________________ >> deegree-users mailing list >> dee...@li... >> https://lists.sourceforge.net/lists/listinfo/deegree-users > - -- > l a t / l o n GmbH > Aennchenstrasse 19 53177 Bonn, Germany > phone ++49 +228 18496-0 fax ++49 +228 18496-29 > http://www.lat-lon.de http://www.deegree.org > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > Follow deegree on Twitter: http://twitter.com/deegree_org > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk8FsnMACgkQ/QSXMw31ZSu58ACfdV2aorzaIYBdAhzGGqptPd+F > jRIAn2TWtAECwAakn2+FYp/tjIwBJCkh > =9D67 > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > deegree-users mailing list > dee...@li... > https://lists.sourceforge.net/lists/listinfo/deegree-users |