OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

ebxml-regrep message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: XPATH Vs OQL Query comparison



We just concluded an exercise of mapping our most complicated ad hoc
query (Classification query) to XPATH. Also attached are some pictures
of attendees.

OQL Query
------------
SELECT DISTINCT eo FROM ExtrinsicObject WHERE
eo.isClassifiedBy(ClassificationNode(path: “Industry.Automotive”)) AND
eo.isClassifiedBy(ClassificationNode(path: “Geography.Asia.Japan”));

XPATH Query
---------------
Thanks Mike Rowley and Chris for doing this.

//ManagedObject[@uuid = /classification[@targetObjRef=

/ClassificationNode[@name="Industry"]

/ClassificationNode[@name="Automotive"]]/@sourceUUID]
                            %AND% @uuid = /classification[@targetObjRef=


/ClassificationNode[@name="Geography"]

/ClassificationNode[@name="Asia"]]/@sourceUUID]


What are some thoughts on which representation is simpler from the
person writing teh query in an RR client?

--
Regards,
Farrukh

JPEG image

JPEG image

JPEG image

begin:vcard 
n:Najmi;Farrukh
tel;work:781-442-0703
x-mozilla-html:FALSE
url:www.sun.com
org:Sun Microsystems;Java Software
adr:;;1 Network Dr. MS BUR02-302;Burlington;MA;01803-0902;USA
version:2.1
email;internet:najmi@east.sun.com
fn:Farrukh Najmi
end:vcard


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Search: Match: Sort by:
Words: | Help


Powered by eList eXpress LLC