Hi John,
wooow, I didn't expect such a quickly reply... :)
About the specific things: 1) and 2) Okei, fixed. I used http://rs.tdwg.org/dwc/xsd/tdwg_dwc_simple.xsd as a guide and there the terms appear as dcterms and didn't notice while c&p.
3) Uhmmm, in my example was just a foobar string, I was thinking the use of the NIF of the Institution (NIF is "Número Identificacion Fiscal" which is like the identifier used by administrations in Spain, let's say it is like the ID of it). Is that a valid InstitutionID?
4) :)
5) Yep, you're right, its just that my PHP is hosted now in my computer, it is supposed to be updated when the application is moved to the right place.
6) Actually I'm using the name which was introduced by the user in the webpage. It should be a name but sometimes they left it blank so the first part of the e-mail account is used. Should I hide it if not present?
7) My fault, that should have been a commented line in PHP.
8) Yep, corrected!
9) :)
Thanks for being so helpful and for your fast reply.
Kind regards, Jaime
John R. WIECZOREK wrote:
Welcome Jaime,
This is the right place for your questions. It looks like you have the right idea about the XML, but there are a few details that are wrong. For reference, it may be useful for you to have a look at the Darwin Core XML Guide (http://rs.tdwg.org/dwc/terms/guides/xml/index.htm), which is accessible from the index at the left side of all of the Darwin Core pages. The Guide explains some best practices and gives some examples. Section 2.6 is specifically about the Simple Darwin Core and has a link to a complete Simple Darwin Core XML document at http://rs.tdwg.org/dwc/examples/xml/example_simple.xml.
Answers to your questions:
- almost - it should be Occurrence, but it should be for the term
dc:type, not dctype:type 2) Yes. Add as much information as makes sense for the type of record you are sharing.
Now, some specific things I see in your example...
dctype:typeOcurrence</dc:type> should be dc:typeOcurrence</dc:type>
dcterms:modified2009-08-03</dcterms:modified> should be
dc:modified2009-08-03</dc:modified> and so with all of the other Dublin Core terms since your namesapce declaration for Dublin Core is "dc", not "dcterms" in the line that says xmlns:dc="http://purl.org/dc/terms/"
- The institutionID should be a persistent global unique identifier,
if possible.
dataGeneralizations - nice!
occurrenceDetails - I know it's just an example, but localhost
isn't going to have the details except in a very special situation. ;-)
- recordedBy - this is supposed to be the observer's name, you have
"510183 ". That trailing space probably shouldn't be there either.
- dwc:individualCount </dwc:individualCount> should be
<dwc:individualCount xsi:nil="true"/>
- You have dwc:dispositionphotograph</dwc:disposition>, but this
term is meant to contain information about the status of an object object with respect to a collection ("in collection", "lost", etc.). You should use the dwc:preparations term instead.
- localhost again
Hope this is helpful. Thanks for trying out the brand new Darwin Core!
John On Mon, Oct 19, 2009 at 10:11 AM, Jaime Bosque jaboto@gmail.com wrote:
Hi list,
this is my first e-mail in a list like this so hope I'm doing it right at the right place :)
I'm developing a web application about orchids observations from users and would like to allow them to download the observation (or a group of them) in Simple Darwin Core formatted as XML.
I've been reading a useful guide in http://rs.tdwg.org/dwc/terms/simple/index.htm and have written my PHP generator but I'm still having some questions regarding to the use of it.
1.- I guess I should use Occurrence in dc:type 2.- Can I add any taxonomical information even if its an Occurrence? I think I can and in fact I should, as in the guide says: "Support (provide data in) as many fields as you can.".
So, with this facts, is this a correct Simple Darwin Core xml file?
<?xml version="1.0" encoding="UTF-8"?>
<SimpleDarwinRecordSet xmlns="http://rs.tdwg.org/dwc/dwcrecord/" xmlns:dc="http://purl.org/dc/terms/" xmlns:dwc="http://rs.tdwg.org/dwc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://rs.tdwg.org/dwc/dwcrecord/ http://rs.tdwg.org/dwc/xsd/tdwg_dwc_simple.xsd">
<SimpleDarwinRecord> <dctype:type>Ocurrence</dc:type> <dcterms:modified>2009-08-03</dcterms:modified> <dcterms:language>es</dcterms:language> <dcterms:rights>Contenido bajo licencia Creative Commons 3.0</dcterms:rights> <dcterms:rightsHolder>Asociación Ibérica de Orquideología</dcterms:rightsHolder> <dcterms:accessRights>Para uso no comercial únicamente</dcterms:accessRights> <dwc:institutionID>NIF AIO: XXXXXXX</dwc:institutionID> <dwc:institutionCode>AIO</dwc:institutionCode> <dwc:basisOfRecord>HumanObservation</dwc:basisOfRecord> <dwc:informationWithheld>Consultar a la Asociación Ibérica de Orquideología para más detalles acerca de la observación</dwc:informationWithheld> <dwc:dataGeneralizations>La información mostrada se muestra con una imprecisión variable de 11 metros a 11 kilómetros. Para una información más precisa consultar a la Asociación Ibérica de Orquideología</dwc:dataGeneralizations> <dwc:catalogNumber>160</dwc:catalogNumber>
dwc:occurrenceDetailshttp://localhost/pfc/app/base.php?contet=view_observation&id=160</dwc:occurrenceDetails> dwc:occurrenceRemarksuna apífera en jaca</dwc:occurrenceRemarks> dwc:recordedBy510183 </dwc:recordedBy> dwc:individualCount </dwc:individualCount> dwc:dispositionphotograph</dwc:disposition>
dwc:associatedMediahttp://localhost/pfc/app/uploads/da77dc5ea69b06b66ce6cbb9f069ea2b.jpeg</dwc:associatedMedia> dwc:countrySpain</dwc:country> dwc:stateProvinceHuesca</dwc:stateProvince> dwc:countyAragón</dwc:county> dwc:municipalityBorau</dwc:municipality> dwc:verbatimElevation935 m</dwc:verbatimElevation> dwc:verbatimCoordinateSystemdecimal degrees</dwc:verbatimCoordinateSystem> dwc:verbatimSRSWGS84</dwc:verbatimSRS> dwc:decimalLatitude42.63500</dwc:decimalLatitude> dwc:decimalLongitude-0.58500</dwc:decimalLongitude> dwc:geodeticDatumWGS84</dwc:geodeticDatum>
dwc:coordinateUncertaintyInMeters1111</dwc:coordinateUncertaintyInMeters> dwc:scientificNameOphrys apifera</dwc:scientificName> dwc:kingdomPlantae</dwc:kingdom> dwc:phylumMagnoliophyta</dwc:phylum> dwc:classLiliopsida</dwc:class> dwc:orderOrchidales</dwc:order> dwc:familyOrchidaceae</dwc:family> dwc:genusOphrys</dwc:genus> dwc:specificEpithetapifera</dwc:specificEpithet> dwc:taxonRankspecies</dwc:taxonRank>
</SimpleDarwinRecord> </SimpleDarwinRecordSet>
Thanks in advance, Jaime
tdwg-content mailing list tdwg-content@lists.tdwg.org http://lists.tdwg.org/mailman/listinfo/tdwg-content