Ticket #336 (new issue)

Opened 13 years ago

Last modified 11 years ago

[M] [WG] (DI-4-1) Service Binding Metadata (creation)

Reported by: lawrence Owned by: lawrence
Priority: critical Milestone: NDG3
Component: discovery Version:
Keywords: Cc:

Description

If we look at what we currently have for our service binding metadata we see that we andle ndg_a and ndg_b in different ways, which is nuts ... eg:

<Related_URL>
    <URL_Content_Type>NDG_A_SERVICE</URL_Content_Type>
    <URL>http://cdat.badc.nerc.ac.uk/cgi-bin/dxui.py?datasetURI_1=/</URL>
    <Description>The NDG service delivering data via CDML.</Description>
</Related_URL>
<Related_URL>
    <URL_Content_Type>NDG_B_SERVICE</URL_Content_Type>
    <URL>badc.nerc.ac.uk</URL>
    <Description>The NDG service for browsing metadata.</Description>
</Related_URL>

The problem being that we construct a url for a link to the a service in the first case by adding the local_identifier to the related_url. In the second case, it is simply done within marta's code, where she simply builds a form with the identifier and the type of service required and posts it to her own code for the b situation.

We need to handle these both the same.

I'm currently building something which expects a config file which includes entries of the form

#
# this is the map file between base url for an ndg service and the actual
# service, it also provides icons associated with the services for display
#
[ndg_a_service]
badc.nerc.ac.uk: glue.badc.rl.ac.uk/cgi-bin/dataExtractor.py 
bodc.nerc.ac.uk: somehost/cgi-bin/dataExtractor.py
icon: some icon
icon_alt: some icon string

[ndg_b_service]
badc.nerc.ac.uk: glue.badc.rl.ac.uk/cgi-bin/browse.py
bodc.nerc.ac.uk: somehost/cgi-bin/browse.py
icon: some icon
icon_alt: some icon string

(the actual endpoint addresses may be wrong above, but it's the principle that counts)

For this to work we need to a) modify the metadata in the repositories to be of the form:

<Related_URL>
    <URL_Content_Type>NDG_A_SERVICE</URL_Content_Type>
    <URL>badc.nerc.ac.uk</URL>
    <Description>The NDG service delivering data via CDML.</Description>
</Related_URL>
<Related_URL>
    <URL_Content_Type>NDG_B_SERVICE</URL_Content_Type>
    <URL>badc.nerc.ac.uk</URL>
    <Description>The NDG service for browsing metadata.</Description>
</Related_URL>

and modify marta's code to read the same config file as my code to construct the a-service URL's ...

I think we need to do this by alpha, otherwise it'll be difficult for both to co-exist. Sue: can you please approach Matt as to whether he can spend a day doing the java for the read (I should have committed the config file by the end of the weekend, and I'll link it to this ticket), and can you please consider what the implications are for metadata population? We should discuss this on Tuesday.

Thanks Bryan

Change History

comment:1 Changed 13 years ago by lawrence

Most of what I know and think about this is now encapsulated in ServiceBinding.py

comment:2 Changed 13 years ago by lawrence

Note that the existing metadata is not consistent with case, and whatever we do, we should ensure that ... e.g. NDG_A_Service ... rather than NDG_A_SERVICE ... (or vice versa, but not both).

comment:3 Changed 13 years ago by lawrence

  • Milestone changed from ALPHA to PostAlpha_review

I'm moving to the thought our difs need modification to support a fully qualified url, else they're useless for others too ...

comment:4 Changed 13 years ago by selatham

  • Status changed from new to assigned
  • Milestone changed from PostAlpha_review to PreBeta

Await outcome of tickets #120 and #463. Then can produce/change badc metadata accordingly. This ticket just for creating the metadata.

(Other DataProviders? will have to change their DIFs too. Probaby need a change to the bulk DIF production script/Xquery.)

comment:5 Changed 13 years ago by selatham

  • Summary changed from [M] [WG] Service Binding Metadata to [M] [WG] Service Binding Metadata (creation)

comment:6 Changed 13 years ago by selatham

  • Priority changed from blocker to critical

Probably a bit out-of-date given our late-binding hack. But should review what's in the DIFs anyway.

comment:7 Changed 12 years ago by selatham

  • Milestone changed from BETA to PROD Step1

Review service binding page. Need bulk DIF producer to produce sensible URLs. It's not working at the moment. see #356.

comment:8 Changed 12 years ago by selatham

  • Milestone changed from PROD Step1 to PROD Final

Sounds like we want early-binding now. So sort out problem in #356 and make sure CEDA metadata is passing on sensible service URL's into MOLES.

comment:9 Changed 11 years ago by lawrence

  • Status changed from assigned to new
  • Owner changed from selatham to lawrence
  • Milestone changed from NDG2 Cleanup to NDG3

I think this will reappear in MILK.

comment:10 Changed 11 years ago by sdonegan

  • Summary changed from [M] [WG] Service Binding Metadata (creation) to [M] [WG] (DI-4-1) Service Binding Metadata (creation)
Note: See TracTickets for help on using tickets.