Ticket #306 (closed issue: worksforme)

Opened 16 years ago

Last modified 15 years ago

[M] Review the decision for the entry_id in DIF

Reported by: lawrence Owned by: lawrence
Priority: discussion Milestone: System Integration
Component: discovery Version:
Keywords: AHMJan2007 Cc: ko23 rkl awoolf

Description (last modified by selatham) (diff)

Why do we make our uri's by using : instead of /? It would make it far easier programatically if we just had a uri which slotted straight into the url as the entry_id?

Linked to general ID Issues  http://proj.badc.rl.ac.uk/ndg/wiki/Identifiers ticket #351

Change History

comment:1 Changed 16 years ago by selatham

  • Owner changed from selatham to lawrence
  • Cc ko23 rkl awoolf added

Because entry_id is the id of this DIF record. It follows the NDG id structure. See document  http://bscw.badc.rl.ac.uk/bscw/bscw.cgi/d83706/IDIssuesinNDG.doc for details. We need to use something other than / to separate the distinct parts and allow it to be parsed allowing introspection etc. There is already a place for URL's in the DIF (Related_URL).

Are you saying that we should review our decision on NDG ids? This sounds inadvisable to me.

comment:2 Changed 15 years ago by lawrence

  • Milestone changed from MOLES 1.3 to ISO19115_PreBeta

comment:3 Changed 15 years ago by hsnaith

  • Milestone changed from ISO19115_PreBeta to PreBeta

Milestone ISO19115_PreBeta deleted

comment:4 Changed 15 years ago by selatham

  • Keywords AHMJan2007 added

Slashes won't work where the id is used as the filename for ingesting into exist.

NOTE :We are considering usage of double-underscores as an allowable NDG separator.

Linked to general ID Issues  http://proj.badc.rl.ac.uk/ndg/wiki/Identifiers

comment:5 Changed 15 years ago by ko23

I'm a bit concerned that an issue with the allowable characters in a file system is going to affect the NDG ID serialisation.

If you look at the ID of Keiran's MDIP example, it's a URL. Therefore, any serialisation of this into a file name will need to convert the "illegal" characters ":" and "/" even for IDs generated outside the NDG.

Perhaps what's needed is a set of mappings rules, and associated implementations, to govern the serialisation of IDs into file names, including replacement of illegal characters (whatever they are on the fs involved...).

That said, the serialisation separator is not a big deal, as long as it's known and so can be parsed.

comment:6 Changed 15 years ago by selatham

  • Description modified (diff)

comment:7 Changed 15 years ago by selatham

  • Milestone changed from PreBeta to MeetingsJan2007

comment:8 Changed 15 years ago by lawrence

  • Milestone changed from MeetingsJan2007 to System Integration

comment:9 Changed 15 years ago by lawrence

  • Status changed from new to closed
  • Resolution set to worksforme

Isn't this solved now with the ___ syntax?

comment:10 Changed 15 years ago by selatham

The __ may have solved Bryan's initial question/problem. We replace :'s with double underscores. But we don't currently deal with other nasties in ids (nasty in the sense that they don't make good filenames). I think this is another issue and started a specific ticket #667.

Note: See TracTickets for help on using tickets.