INSIDE-information-systems / OAPIF

OGC API - Features (ex: WFS3) deployment on French Groundwater Information Network features
3 stars 4 forks source link

Feedback on Andrea's file (not pertaining to issue 14) #15

Closed sgrellet closed 5 years ago

sgrellet commented 5 years ago

other questions on Andrea's file mentionned in #14

aaime commented 5 years ago

A few answers:

image

KathiSchleidt commented 5 years ago

some feedback, both to this and some bits probably from #14

@dataType @dataType is often there, sometimes missing. Think there's a SW bug as mentioned in my mail. Usually, length is provided without @dataType, but there's an exception to this rule - "@dataType": "Measure" is provided in the case that there is no value (close, but not quite there yet! ;) )

sampledFeature Strange is that locatedOnAdminUnit is also provided under sampledFeature (in the app schema mapping its still locatedOnAdminUnit). The lack of a URI in the @href of locatedOnAdminUnit is because the base URL was missing, thus currently only contains strconcat( num_departement, code_insee) "@title": "SANGATTE" comes from nom_commune To my view, both sampledFeature and locatedOnAdminUnit should be "@dataType": "Reference", but provided under their proper names (sampledFeature and locatedOnAdminUnit respectively)

eposb:custodianPeriod eposb:custodianPeriod was empty in original mapping file, and thus got lost in further translation. Give me a db mapping and I'm glad to map!

sgrellet commented 5 years ago

Some additionnal feedback (I'll contribute separately on ids in the dedicated issue)

@dataType same comment

locatedOnAdminUnit : indeed should be in its proper XML tag regarding the @href, the mapping file should be updated to strconcat('http://id.insee.fr/geo/commune/', code_insee) no need to fetch 'num_departement' from the DB it's already in code_insee should be in the latest mapping file I hope

eposb:custodianPeriod @spifman will provide you with the info

aaime commented 5 years ago

On Sun, May 5, 2019 at 4:07 PM KathiSchleidt notifications@github.com wrote:

some feedback, both to this and some bits probably from #14 https://github.com/INSIDE-information-systems/WFS3/issues/14

@datatype https://github.com/datatype @datatype https://github.com/datatype is often there, sometimes missing. Think there's a SW bug as mentioned in my mail. Usually, length is provided without @datatype https://github.com/datatype, but there's an exception to this rule - "@datatype https://github.com/datatype": "Measure" is provided in the case that there is no value (close, but not quite there yet! ;) )

Indeed the heuristic to determine if an element is a "complex type with simple content" is failing there, because the value is missing. As a reminder, the expected situation is that the object does not have a @dataType for any complex type with simple content.

I've made some changes to the code, so that it uses the datatype and does not encode the @dataType for anything extending XML's anySimpleType, here is a before/after diff:

http://www.mergely.com/w0nJwHqa/

Notes:

About the latter, it's interesting to note how the schema does not make it possible to figure out if a complex with simple content is meant to have a content at all. See below, Measure is meant to have a context, CodeList not, but structually they are the same:

vs

in the codelist the "xs:string" base is just an excuse to attach attributes... not sure why an actual complex with just a list of attributes was not used instead, but it's there in an OGC schema, not much we can do about it I believe....

Cheers Andrea

--

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.

sgrellet commented 5 years ago

Thanks Andrea.

KathiSchleidt commented 5 years ago

the attributes without a value have been shifted to https://github.com/INSIDE-information-systems/WFS3/issues/22

KathiSchleidt commented 5 years ago

Should we leave this thread open, or close and just follow the individual issues I pulled out. I'll close for now, see if somebody wishes to reopen