Project

General

Profile

Feature #3401

Facility to input metadata from user space

Added by Andrew Norman over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Metadata
Target version:
Start date:
02/01/2013
Due date:
% Done:

0%

Estimated time:
Scope:
Internal
Experiment:
-
SSI Package:
art
Duration:

Description

We need a method to allow users to insert metadata into the sqlite database that mirrors the way the rest of the SAM metadata is currently being inserted.

The caveat to this is that we will handle the issues related to file merging.


Related issues

Related to art - Feature #3530: Need facility for output-file-appropriate entry of arbitrary SAM metadata.Closed02/26/201309/30/2013

History

#1 Updated by Christopher Green over 6 years ago

  • Status changed from New to Accepted

Specifically for SAM metadata, see the FileCatqalogMetadata service API at SAM_Interactions for the ability to add key/value pairs to the file catalog metadata.

For your other metadata needs, you have access to the in-memory database. We will need to add the feature to art to make sure that user-specified tables get automatically transferred between the input and output files. The expected semantics are as follows:

  1. Tables in the input file database will copied to the in-memory database, replacing existing tables of the same name.
  2. Tables in the in-memory database will be copied to all ROOT output file databases.

If you wish to merge database tables in incoming files, you will need to implement pre- and post- file open callbacks for your service in order to save off the current table in merge it into the new one as you see fit.

Obtain a handle to the in-memory database with:

#include "art/Persistency/RootDB/MetaDataAccess.h" 
...
sqlite3 * dbHandle { art::MetaDataAccess::instance().dbHandle() };
...

#2 Updated by Christopher Green about 6 years ago

  • Status changed from Accepted to Resolved
  • Target version set to 1.03.00
  • Scope set to Internal
  • Experiment - added
  • SSI Package art added

This facility is already available in a limited sense as part of the v1.0 SAM support, subject to the revised requirements made in the meeting of a couple of months ago, for which a specific issue is forthcoming.

#3 Updated by Christopher Green about 6 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF