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: 1) 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...
1) dctype:typeOcurrence</dc:type> should be dc:typeOcurrence</dc:type>
2) 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/"
3) The institutionID should be a persistent global unique identifier, if possible.
4) dataGeneralizations - nice!
5) occurrenceDetails - I know it's just an example, but localhost isn't going to have the details except in a very special situation. ;-)
6) recordedBy - this is supposed to be the observer's name, you have "510183 ". That trailing space probably shouldn't be there either.
7) dwc:individualCount </dwc:individualCount> should be <dwc:individualCount xsi:nil="true"/>
8) 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.
9) 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%22%3E <SimpleDarwinRecord> dctype:typeOcurrence</dc:type> dcterms:modified2009-08-03</dcterms:modified> dcterms:languagees</dcterms:language> dcterms:rightsContenido bajo licencia Creative Commons 3.0</dcterms:rights> dcterms:rightsHolderAsociación Ibérica de Orquideología</dcterms:rightsHolder> dcterms:accessRightsPara uso no comercial únicamente</dcterms:accessRights> dwc:institutionIDNIF AIO: XXXXXXX</dwc:institutionID> dwc:institutionCodeAIO</dwc:institutionCode> dwc:basisOfRecordHumanObservation</dwc:basisOfRecord> dwc:informationWithheldConsultar a la Asociación Ibérica de Orquideología para más detalles acerca de la observación</dwc:informationWithheld> dwc:dataGeneralizationsLa 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:catalogNumber160</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