© 2006 open grid forum ellen stokes, ibm michel drescher, fujitsu information model, jsdl and...

21
© 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

Upload: juan-dempsey

Post on 27-Mar-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

© 2006 Open Grid Forum

Ellen Stokes, IBM

Michel Drescher, Fujitsu

Information Model, JSDL and XQuery:A proposed solution

OGF-19Chapel Hill, NC

USA

Page 2: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

2© 2006 Open Grid Forum

OGF IPR Policies Apply

• “I acknowledge that participation in this meeting is subject to the OGF Intellectual Property Policy.”• Intellectual Property Notices Note Well: All statements related to the activities of the OGF and

addressed to the OGF are subject to all provisions of Appendix B of GFD-C.1, which grants to the OGF and its participants certain licenses and rights in such statements. Such statements include verbal statements in OGF meetings, as well as written and electronic communications made at any time or place, which are addressed to:

• the OGF plenary session, • any OGF working group or portion thereof, • the OGF Board of Directors, the GFSG, or any member thereof on behalf of the OGF, • the ADCOM, or any member thereof on behalf of the ADCOM, • any OGF mailing list, including any group list, or any other list functioning under OGF auspices, • the OGF Editor or the document authoring and review process

• Statements made outside of a OGF meeting, mailing list or other function, that are clearly not intended to be input to an OGF activity, group or function, are not subject to these provisions.

• Excerpt from Appendix B of GFD-C.1: ”Where the OGF knows of rights, or claimed rights, the OGF secretariat shall attempt to obtain from the claimant of such rights, a written assurance that upon approval by the GFSG of the relevant OGF document(s), any party will be able to obtain the right to implement, use and distribute the technology or works when implementing, using or distributing technology based upon the specific specification(s) under openly specified, reasonable, non-discriminatory terms. The working group or research group proposing the use of the technology with respect to which the proprietary rights are claimed may assist the OGF secretariat in this effort. The results of this procedure shall not affect advancement of document, except that the GFSG may defer approval where a delay may facilitate the obtaining of such assurances. The results will, however, be recorded by the OGF Secretariat, and made available. The GFSG may also direct that a summary of the results be included in any GFD published containing the specification.”

• OGF Intellectual Property Policies are adapted from the IETF Intellectual Property Policies that support the Internet Standards Process.

Page 3: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

3© 2006 Open Grid Forum

Overview

<Resource>

</Resource>

<Requirements>

</Requirements>

<Capabilities>

</Capabilities>

<Job>

</Job>

<Requirements>

</Requirements>

<Capabilities>

</Capabilities>

• Two documents• A job description• A resource description

• Goals• Does the job meet the

resource’s requirements?

• Does the resource meet the job’s requirements?

Page 4: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

4© 2006 Open Grid Forum

Contents

Foundations: XML Schemas

Foundations: XML Documents

XQuery and context

Solution

Results

Page 5: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

5© 2006 Open Grid Forum

XML Schemas

• Information Model

• BES2 • Makes use of Information Model

• JSDL2• Makes use of Information Model

Page 6: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

6© 2006 Open Grid Forum

Info Model XML Schema

<Requirements> <XQuery> xs:string </XQuery></Requirements>

<Capabilities> <Host/>+ <VO/>+</Capabilities>

Page 7: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

7© 2006 Open Grid Forum

Info Model XML Schema (cont’d)

<Host>

<CPU> <Architecture> <CPUSpeed> </CPU>

<OS> <OSType> <PhysicalMemory> </OS>

<Software> <Library>+ <SoftwarePackage>+ </Software>?

</Host>

<VO>

<Name/>

<Authentication> <X509/>? <UserPass/>? </Authentication>

<Authorisation> <TAN/>+ <Kerberos5/>+ </Authorisation>

</VO>

Page 8: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

8© 2006 Open Grid Forum

JSDL2 / BES2 XML Schema

<JSDLJob>

<im:Capabilities/>

<im:Requirements/>

</JSDLJob>

JSDL2

<Resources>

<im:Capabilities/>

<im:Requirements/>

</Resources>

BES2

Page 9: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

9© 2006 Open Grid Forum

Contents

Foundations: XML Schemas

Foundations: XML Documents

XQuery and context

Solution

Results

Page 10: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

10© 2006 Open Grid Forum

Sample JSDL2 document<Job>

</Job>

<Requirements> <XQuery> im:OS/im:PhysicalMemory &gt; 100 </XQuery></Requirements>

<Capabilities>

<VO> <Name> DEISA </Name> <Authentication> <X509/> <UserPass/> <Authentication> <Authorisation> <TAN/> </Authorisation> </VO>

</Capabilities>

<VO> <Name> OGSA </Name> <Authentication> <X509/> </Authentication> <Authorisation> <TAN/> </Authorisation></VO>

Page 11: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

11© 2006 Open Grid Forum

Sample BES2 document<Job>

</Job>

<Requirements> <XQuery> im:Name = 'OGSA-Grid' or count(im:Authentication/im:X509) >= 1 </XQuery></Requirements>

<Capabilities>

<Host Name=“Host1”> <CPU/> ( Intel, 10 ) <OS/> ( Linux, 100 ) <Software/> </Host>

<Host Name=“Host2”> <CPU/> ( Intel, 10 ) <OS/> ( Windows, 80 ) <Software/> </Host>

</Capabilities>

<Host Name=“Host3”> <CPU/> ( AMD, 15 ) <OS/> ( Linux, 500 ) <Software/> </Host>

<Host Name=“Host4”> <CPU/> ( AMD, 15 ) <OS/> ( Windows, 80 ) <Software/> </Host>

Page 12: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

12© 2006 Open Grid Forum

Contents

Foundations: XML Schemas

Foundations: XML Documents

XQuery and context

Solution

Results

Page 13: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

13© 2006 Open Grid Forum

Dynamic queries

• XQuery is all about context

• How to provide the correct context?

doc(“job.xml”)//im:OS/im:PhysicalMemory

101 <

external function

document-node()

decendant-or-self::

node()

im:OS element

element()

child::

node()

im:PhysicalMemory element

element()

typed Atomic value

xs:integer

boolean expression

xs:boolean

Page 14: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

14© 2006 Open Grid Forum

Contents

Foundations: XML Schemas

Foundations: XML Documents

XQuery and context

Solution

Results

Page 15: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

15© 2006 Open Grid Forum

Providing context

<Job>

</Job>

<Requirements>

</Requirements>

<Capabilities>

</Capabilities>

<Resource>

</Resource>

<Requirements>

</Requirements>

<Capabilities>

</Capabilities>

<Capabilities>

</Capabilities>

<Test>

</Test>

<Requirements>

</Requirements>

<Requirements>

</Requirements>

VOVO

VO

<Test>

</Test>

<Capabilities>

</Capabilities>

<Requirements>

</Requirements>

<Requirements>

</Requirements>

HostHost

Host

Page 16: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

16© 2006 Open Grid Forum

Assessing the results

• Number of VOs• = 0: Job is not suitable• > 0: pick one

VOVO

VO

HostHost

Host

• Number of Hosts• = 0: Can’t execute the Job• > 0: pick one

Page 17: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

17© 2006 Open Grid Forum

Contents

Foundations: XML Schemas

Foundations: XML Documents

XQuery and context

Solution

Results

Page 18: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

18© 2006 Open Grid Forum

How XQuery is used

• XQuery is a suitable language for our needs• XQuery used in separate domains

• Requirements matching• Document management

• Different domain usage allows:• Requirements matching

• Restricted XQuery• XPath 2.0, really!

• Document management• Unrestricted XQuery• Any other XPath interpreter solution

Page 19: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

19© 2006 Open Grid Forum

OGSA Information Model

• XML Element rendering work• XML Element reuse

vs.XQuery path assembly

• Requirements modeling• One huge statement

vs.small statements concatenated

• Result should be reused in • JSDL2• BES2

Page 20: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

21© 2006 Open Grid Forum

JSDL 1.x implications

• Define requirements extension• Replaces the jsdl:Resources element

• Query should match container resource description• Which description? Is there any?

• Container requirements may query other JSDL extensions

• Compatible to existing JSDL 1.0/1.1

Page 21: © 2006 Open Grid Forum Ellen Stokes, IBM Michel Drescher, Fujitsu Information Model, JSDL and XQuery: A proposed solution OGF-19 Chapel Hill, NC USA

22© 2006 Open Grid Forum

JSDL 2.x implications

Anything’s possible!