-
Notifications
You must be signed in to change notification settings - Fork 27
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
mcc:URI can have no content #229
Comments
HiIn V1.0 & V2.0, I believe that one could use an XML attribute rather than the value of the XML element.I believe that in the current version (V1.3) a value can be added in either (or unwisely both)[I’m not in a position to check at the moment, waiting on delayed BA flight out of Heathrow to Sydney]Evert Bleys4 Tudor PlaceHUGHES ACTAustraliaMob: 0411 483 876On 18 Jul 2023, at 19:35, Stephen Richard ***@***.***> wrote:
the mcc:URI element can have no content according to the xml schema, the only way to put a URI in is in the uuid attribute defined on gco:AbstractObject. What is the logic for this, or is it an error?
from https://schemas.isotc211.org/19115/-3/mcc/1.0/commonClasses.xsd
<element name="URI" substitutionGroup="gco:AbstractObject" type="mcc:URI_Type">
<annotation>
<documentation>Uniform Resource Identifier (URI), is a compact string of characters used to identify or name a resource</documentation>
</annotation>
</element>
<complexType name="URI_Type">
<complexContent>
<extension base="gco:AbstractObject_Type">
<sequence/>
</extension>
</complexContent>
</complexType>
so in a data instance it looks like this
<mri:conceptIdentifier>
<mcc:URI uuid="https://example.org/test"/>
</mri:conceptIdentifier>
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
The rule against not populating both an element & an attribute - where such rule logically exists - can't be enforced in XSD. It has to be in something like Schematron. In ISO 19139, these "co-constraints" were listed in Table A.1. There wasn't one that matches this particular instance, because ISO 19139 encoded the "logical" URI type specifically as an attribute of type xs:anyURI. I'm pretty sure there weren't any elements that semantically "required" a URI. |
In ISO 19115-1:2014, only conceptIdentifier uses the "commonly used" class URI I'm not sure why ISO 19115-3 didn't include a "co-constraint" requirement on the anyURI type to say that the URI should be in the attribute, or only in one of the attribute & the element. |
I guess I'm to blame on this one... slipped through the cracks somehow. possible fixes... for URI as string value in mcc:URI
OR uri attribute on mcc:URI
.... |
the mcc:URI element can have no content according to the xml schema, the only way to put a URI in is in the uuid attribute defined on gco:AbstractObject. What is the logic for this, or is it an error?
from https://schemas.isotc211.org/19115/-3/mcc/1.0/commonClasses.xsd
so in a data instance it looks like this
The text was updated successfully, but these errors were encountered: