-
Notifications
You must be signed in to change notification settings - Fork 19
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
XPath function for accessing FeatureTypes from Schema #37
Comments
@jonherrmann, as discussed during the 2017.4 meeting on 2018-03-16, please elaborate a little bit on what needs to be done to implement this change. |
@michellutz updated the description. |
I think one of the original ideas was to support a similar capability to The current situation is that the ETSs use local element names to identify feature instances of a specific feature type. Ie. the ETSs will also identify and test features of feature types that include a few additional attributes in the namespace of an extension. These feature types will have the same local name as they implement the same feature concept (if the extension follows the conceptual model). However, proper specialisations of the INSPIRE feature type will typically receive different local names and cannot be detected as subtypes of an INSPIRE feature type by looking at the element name. Schema analysis is required. The approach described in the initial description does not seem to support this. Or has it been discussed in Ispra that the current support for extensions is sufficient? |
@cportele maybe the wording 'by parsing the associated schema' is not clear enough -'reading and analyzing' might have been better- but under the hood this functionality requires a similar capability to the schema-element() function. So the result of I will also add the schema-element() function to the numbered list in the description, so that it can be used for other types of tests. |
Yes, |
Ah, that makes sense -sorry, I overlooked that part.. |
This enhancement requires the implementation of a XQuery module that can be loaded by BaseX-based ETSs. The module should provide XPath functions for determining all FeatureTypes in an XML document by reading and analysing the associated schema.
etf:feature-members( rootNodeOrSchemaLocation )
should return a sequence of all Feature member nodes in the Feature Collection.etf:feature-type-names( rootNodeOrSchemaLocation )
should return a sequence of strings with the names of all Feature Type names.See also: http://docs.basex.org/wiki/Java_Bindings
The text was updated successfully, but these errors were encountered: