Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

The datacatalog object provides an entrypoint for communicating with the datacatalog service in script processes.  Below is a summary of the functionality currently available.

datacatalog API

...

registerDataset(String

...

dataType,

...

String

...

logicalPath,

...

String

...

filePath

...

[,

...

String

...

attributes

...

])

...

 

Registers a new Dataset entry with the Data Catalog.

...

Note: Maximum file-path length is 256 characters, maximum site length is 20 characters.unmigrated-wiki-markup

*{_}attributes{_}* *\[optional\]* is a colon-delimited character string specifying additional attributes with which to tag the file.    The encoding is "a=1:b=apple:c=23.6".    All attribute values are stored in the database as ascii text.    No expression evaluation is performed.

Example: mcTreeVer=v7r3p2:meanEnergy=850MeV

...

By default, attribute values are stored in the database as Strings.  You can force storage of the value as a Number or Timestamp data-type by using the following naming convention (the "name" part of the "name=value" attribute definition string):

Wiki MarkupNumber:       "^n\Number:       "^n[A-Z\].*"  
  ex:    nRun, nEvents Wiki Markup

Timestamp:    "^t\[A-Z\].*"  
  ex:    tStart, tStop

String:          Everything else