Closed sgrellet closed 5 years ago
A few answers:
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!
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
eposb:custodianPeriod @spifman will provide you with the info
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.
Thanks Andrea.
Regarding 'boreCollarPositionalAccuracy' Could we solve this with a combination of
<encodeIfEmpty>false</encodeIfEmpty>
(maybe this is unnecessary because that's the default behaviour) AND "http://qudt.org/vocab/unit/CM" being stored in the DB (and only written in the DB in case we do have a Measure) and not hard coded in the mapping file ?
regarding @datatype new adjustments looks like they should be added to the summary doc
the attributes without a value have been shifted to https://github.com/INSIDE-information-systems/WFS3/issues/22
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
other questions on Andrea's file mentionned in #14
id :
flipped coordinates for Borehole and bholeHeadworks They need to be flipped because GeoJSON expects CRS 84. Otherwise our groundwater Wells end-up in the ocean near Somalia. See conclusions from https://github.com/INSIDE-information-systems/WFS3/issues/2
"name": "when available" does not appear in the example output : you confirm it will be like this when finding content in the database ?
"sampledFeature": [ *it seems it does not behave like the other href/title patterns as we don't have : "@href": "https://sweet.jpl.nasa.gov/2.3/realmEarthReference.owl#EarthLithosphere", "@title": "Lithosphere"]} and it adds extra {} for each xml attibute
no custodianPeriod ?
legalAccessLevel @dataType or featureType ? -> was that a mistake in our sample file ? -> cross checking with gmd.xsd it's a plain class (not stereotyped). +1 for @dataType not to introduce extra semantics in our GeoJSON
CI_RoleCode "dataType": "CI_RoleCode" replaced by "@dataType": "CodeListValue" -> we feel it should be "@dataType": "CI_RoleCode"
"links": [