-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate BhML schema #49
Comments
done : https://forge.brgm.fr/svnrepository/boreholeie/schemas/BhML-Core.xsd |
xsd updated in 0.2 according to webconf 27 and #46 |
Some suggested changes to the UML and XML for the BoreholeLRS class based on looking at the instance examples:
|
Also, the current encoding is, for example
forcing the union to generate a tag while, the other encoding goes straight to
although, we never use unionSemantic It is discussed in GeoSciML spec https://docs.opengeospatial.org/is/16-008/16-008.html#109 (darn, I realise there is an error in the diagram, the bottom box should be RockMaterial, not earth material) |
ok.. bit of a snag This is the encoding
but this forces
instead of
Works ok for references
|
I understand that the problem is that the expected outcome from the revised xsd using the MeasureOrEvent union is:
<location>
<AtLocation>
<distanceAlong uom="http://qudt.org/vocab/unit/M">4.9</distanceAlong>
</AtLocation>
</location>
and:
<location>
<FromToLocation>
<fromPosition xlink:href="#sm0"/>
<toPosition xlink:href="#qu1"/>
</FromToLocation>
</location>
I think the previous xsd provided:
<location>
<AtLocation>
<atLocation>
<MeasureOrEvent>
<distanceAlong uom="http://qudt.org/vocab/unit/M">4.9</distanceAlong>
</MeasureOrEvent>
</atLocation>
</AtLocation>
</location>
For <FromToPosition> it only provided byReference on the <boreholeEvent> property, not the <fromPosition> and <toPosition>:
<location>
<FromToLocation>
<fromPosition>
<MeasureOrEvent>
<boreholeEvent xlink:href="#sm0/>
</MeasureOrEvent>
</fromPosition>
<toPosition>
<MeasureOrEvent>
<boreholeEvent xlink:href="#qu1"/>
</MeasureOrEvent>
</toPosition>
</FromToLocation>
<location>
Both of these are verbose, but make sense when compared to the UML. For the purposes of the IE I think we should just live with the existing xsd, rather than spend too much time modifying it.
Cheers
Bruce
…________________________________
From: Eric Boisvert <[email protected]>
Sent: Wednesday, 25 September 2019 3:14 AM
To: opengeospatial/boreholeie <[email protected]>
Cc: Bruce Simons <[email protected]>; Comment <[email protected]>
Subject: Re: [opengeospatial/boreholeie] Generate BhML schema (#49)
ok.. bit of a snag
This is the encoding
<!-- ############### Measure of Event ##################-->
<group name="MeasureOrEvent">
<choice>
<element ref="BhML:BoreholeEvent"/>
<element ref="gml:measure"/>
</choice>
</group>
<!-- encoding from https://www.seegrid.csiro.au/wiki/AppSchemas/UmL2GMLAS#A_4._Class_association_pattern_45_target_stereotyped_42_60_62_42 -->
<complexType name="MeasureOrEventPropertyType">
<sequence>
<group ref="BhML:MeasureOrEvent"/>
</sequence>
<attributeGroup ref="gml:AssociationAttributeGroup"/>
<attribute name="unionSemantics" type="BhML:MeasureOrEventUnionSemantics"/>
</complexType>
<simpleType name="MeasureOrEventUnionSemantics">
<restriction base="string">
<enumeration value="distanceAlong"/>
<enumeration value="boreholeEvent"/>
</restriction>
</simpleType>
but this forces
<location>
<AtLocation>
<atLocation unionSemantics="distanceAlong">
<gml:measure uom="http://qudt.org/vocab/unit/M">3.2</gml:measure>
</atLocation>
</AtLocation>
</location>
instead of
<atLocation uom="m">10</atLocation>
Works ok for references
<location>
<FromToLocation>
<fromPosition xlink:href="#sm0"/>
<toPosition xlink:href="#qu1"/>
</FromToLocation>
</location>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#49?email_source=notifications&email_token=ACAGF2JZIUHOV7AZLK2G4PDQLJDHBA5CNFSM4IFYJZ3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7PDTGQ#issuecomment-534657434>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACAGF2MWNSHB6H7Q7PPFVRTQLJDHBANCNFSM4IFYJZ3A>.
|
depends of the The new schemas (https://github.com/opengeospatial/boreholeie/tree/master/schemas) I pushed also fixes the xlink:href you mentionned above.. keep ? |
according to the last 2 webconf discussions. new xsd generated (0.3.0 : in 5f72028)
|
One point missing in the ChangeLog : namespace changed to point to https://github.com/opengeospatial/boreholeie/blob/master/schemas/BhML-Core.xsd and not to forge BRGM anymore |
Everything ‘feature’
Appart from BoreholeReferencingMethod (DataType)
BoreholeEventLocation -> Abstract
The text was updated successfully, but these errors were encountered: