SELECT ?element ?bnode ?pbnode ?idSchema ?someEle
WHERE {
?pbnode CXML:hasChildXMLElement ?bnode.
?bnode CXML:containsXMLElement ?element.
optional {
?element CXML:isModelledBy ?mySchema.
?mySchema CXML:hasGlobalID ?idSchema.
?someEle CXML:isModelledBy ?idSchema.
}
}
returns more answers than
SELECT ?element ?bnode ?pbnode ?idSchema ?someEle
WHERE {
?pbnode CXML:hasChildXMLElement ?bnode.
?bnode CXML:containsXMLElement ?element.
optional {
?element CXML:isModelledBy ?mySchema.
?mySchema CXML:hasGlobalID ?idSchema.
?someEle CXML:isModelledBy ?idSchema.
optional {
?bnode CXML:containsXMLElement ?someEle.
}
}
}
It is after the nested "optional" isn't considered optional. When I
remove the nested "optional" I get the same results...
SELECT ?element ?bnode ?pbnode ?idSchema ?someEle
WHERE {
?pbnode CXML:hasChildXMLElement ?bnode.
?bnode CXML:containsXMLElement ?element.
optional {
?element CXML:isModelledBy ?mySchema.
?mySchema CXML:hasGlobalID ?idSchema.
?someEle CXML:isModelledBy ?idSchema.
?bnode CXML:containsXMLElement ?someEle.
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TopBraid Composer Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/topbraid-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---