Questions about inserting data into EML xml documents

David Blankman david.blankman at comcast.net
Sun Aug 8 11:34:16 PDT 2004


Hi Linda,

Once EML 2.0.1 is release you will be able to embed data into an eml 
document. Here is a fragment that illustrates how inline is used. You 
can put inline data both in the resource group ( after keywords, 
additionalInfo, intellectualRights and before <coverage>) and in 
dataTable/physical. Clearly the dataTable/physical section allows you to 
provide more information, e.g. number of header lines, delimiters, etc.

Hope that helps.

David

p.s. I missed not being able to attend the IM meeting in Portland.
*
EXAMPLE WITH INLINE*
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSPY v2004 rel. 4 U 
(http://www.xmlspy.com)-->
<eml:eml xmlns:eml="eml://ecoinformatics.org/eml-2.0.1" 
xmlns:cit="eml://ecoinformatics.org/literature-2.0.1" 
xmlns:doc="eml://ecoinformatics.org/documentation-2.0.1" 
xmlns:ds="eml://ecoinformatics.org/dataset-2.0.1" 
xmlns:prot="eml://ecoinformatics.org/protocol-2.0.1" 
xmlns:res="eml://ecoinformatics.org/resource-2.0.1" 
xmlns:sw="eml://ecoinformatics.org/software-2.0.1" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="eml://ecoinformatics.org/eml-2.0.1
T:\JumpDrive\emlConversions\lib\eml-2.0.1\eml.xsd" packageId="" system="">
    <dataset>
        <title/>
        <creator>
            <individualName>
                <surName/>
            </individualName>
        </creator>
       *<distribution>
            <inline>
                Date,plot,Nitrogen,Phosphate
                2004-02-23,ev23,23.43,,34.3
                2004-02-23,ev24,32.12,32.1
            </inline>
        </distribution>*
        <contact>
            <individualName>
                <surName/>
            </individualName>
        </contact>
        <dataTable>
            <entityName></entityName>
            <physical>
                <objectName></objectName>
                <dataFormat>
                    <textFormat>
                    *<numHeaderLines>1</numHeaderLines>*
                        <attributeOrientation></attributeOrientation>
                        <simpleDelimited>
                           * <fieldDelimiter>,</fieldDelimiter>*
                        </simpleDelimited>
                    </textFormat>
                </dataFormat>
                <distribution>
                   * <inline>Date,plot,Nitrogen,Phosphate
                                2004-02-23,ev23,23.43,34.3
                                2004-02-23,ev24,32.12,32.1
                    </inline>*
                </distribution>
            </physical>
            <attributeList>
                <attribute>
                    <attributeName></attributeName>
                    <attributeDefinition></attributeDefinition>
                    <measurementScale>
                        <nominal>
                            <nonNumericDomain>
                                <enumeratedDomain>
                                    <codeDefinition>
                                        <code></code>
                                        <definition></definition>
                                    </codeDefinition>
                                </enumeratedDomain>
                            </nonNumericDomain>
                        </nominal>
                    </measurementScale>
                </attribute>
            </attributeList>
        </dataTable>
    </dataset>
</eml:eml>


powell at fiu.edu wrote:

>Greetings,
>
>Can you actually embed data values into an EML (xml) document?  I think you can but I can't find an example of a document with data embedded. Would the data found between the <physical><distribution><inline> tags?  Does the pasted data need to retain the format described earlier in the physical module(e.g. comma delimited)?  For example, if I have a comma-delimited ASCII data file that I decide to embed in the metadata (not using Morpho), can I just copy these data values and paste between the appropriate tags? Will the EML document validate with the data included?
>
>Thank you very much for your time and help!
>
>Regards,
>
>Linda Powell, FCE LTER Information Manager
>
>Linda A. Powell, Information Manager
>Florida Coastal Everglades LTER Program
>Southeast Environmental Research Center
>OE 148, Florida International University, University Park
>Miami, Florida  33199
>Office:  ECS 253
>Phone: (305) 348-6054
>
>_______________________________________________
>eml-dev mailing list
>eml-dev at ecoinformatics.org
>http://www.ecoinformatics.org/mailman/listinfo/eml-dev
>
>
>  
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mercury.nceas.ucsb.edu/ecoinformatics/pipermail/eml-dev/attachments/20040808/e4d3b942/attachment.htm


More information about the Eml-dev mailing list