[Esip-discovery] Fwd: OpenSearch Description and ATOM Documents Validation

Pedro Gonçalves pedro.goncalves at terradue.com
Sun Jul 7 07:59:01 EDT 2013


Hi Doug 

Unfortunately it fails on the ATOM schematron rules with 

Element: feed/entry[1]
rule = atom:link[@rel='alternate'] or atom:link[not(@rel)] or atom:content
An atom:entry must have at least one atom:link element with a rel attribute of 'alternate' or an atom:content.
for all entries ... 

We can discuss this better, but my general idea is to develop compliance levels, first atom (rfc4287), then geo/time (ogc 10-032), and then to develop a special schema to take in consideration the rules from the esip best practice.

cheers

Pedro


On Jul 5, 2013, at 10:00 PM, Doug Newman <douglas.j.newman at nasa.gov> wrote:

> Pedro,
> 
> the suspense is killing me, did
> 
> curl 'https://api.echo.nasa.gov/opensearch/granules.atom?clientId=&shortName=MERIS_L1B_RR&versionId=1&dataCenter=OBPG' | sh rncv.sh -s ../schemas/atom/2005/rfc4287.rnc
> 
> validate?
> 
> Doug Newman - ECHO Operations Lead
> douglas.j.newman at nasa.gov
> douglas.newman at vangent.com
> Vangent, A General Dynamics Company | NASA | ECS Evolution Development Program
> http://earthdata.nasa.gov/echo
> 
> Note: I am not a government employee and have no legal authority to obligate any federal, state, or local government to perform any action of payment.
> 
> On 7/5/13 3:56 PM, Lynnes, Christopher S. (GSFC-6102) wrote:
>> FYI:
>> 
>> Begin forwarded message:
>> 
>>> From: Pedro Gonçalves <pereira.goncalves at gmail.com>
>>> Subject: OpenSearch Description and ATOM Documents Validation
>>> Date: July 1, 2013 1:55:33 PM EDT
>>> To: "opensearch at googlegroups.com" <opensearch at googlegroups.com>
>>> Reply-To: "opensearch at googlegroups.com" <opensearch at googlegroups.com>
>>> 
>>> Hi
>>> 
>>> For the validation of some atom feeds from an ongoing project I created a few  RelaxNG Compact Syntax  Schemas with ISO Schematron rules of Atom, OpenSearch and extensions files that might be of interest to the group.
>>> 
>>> https://github.com/Terradue/trax/tree/master/relaxng/schemas
>>> 
>>> I covered the OpenSearch core, and Geo, Time and Parameter extensions.
>>> I plan to add the other extensions in the future.
>>> 
>>> For now I made a script that joins the several java jar and xsl files and performs an one-step validation procedure.
>>> 
>>> https://github.com/Terradue/trax/tree/master/relaxng/scripts
>>> 
>>> You can validate local file with
>>> sh rncv.sh -s ../schemas/opensearch/1.1/osatom.rnc -f ../examples/atom/atomeo01_noauthor.xml
>>> 
>>> or you can validate an external server
>>> 
>>> curl 'https://api.echo.nasa.gov/opensearch/granules.atom?clientId=&shortName=MERIS_L1B_RR&versionId=1&dataCenter=OBPG' | sh rncv.sh -s ../schemas/atom/2005/rfc4287.rnc
>>> 
>>> I tested this extensively the last weeks but let me know if you find any issue/problems
>>> 
>>> 
>>> cheers
>>> 
>>> Pedro
>>> 
>>> -- 
>>> You received this message because you are subscribed to the Google Groups "OpenSearch" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an email to opensearch+unsubscribe at googlegroups.com.
>>> To post to this group, send email to opensearch at googlegroups.com.
>>> Visit this group at http://groups.google.com/group/opensearch.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>> 
>>> 
>> --
>> Dr. Christopher Lynnes     NASA/GSFC, Code 610.2    phone: 301-614-5185
>> 
>> 
>> _______________________________________________
>> Esip-discovery mailing list
>> Esip-discovery at lists.esipfed.org
>> http://www.lists.esipfed.org/mailman/listinfo/esip-discovery
> 
> _______________________________________________
> Esip-discovery mailing list
> Esip-discovery at lists.esipfed.org
> http://www.lists.esipfed.org/mailman/listinfo/esip-discovery



More information about the Esip-discovery mailing list