Transferring SQLServer data to MetaTagger

Options
System
System Administrator
Hi,
We're about to begin implementing MetaTagger and want to migrate keyword data from a SQLServer database. Does anyone have experience with this and have tips they can pass along? Right now, we have several thousand images on a server, and SQLServer records their location and appropriate keywords. People can then do a web-based search and get back relevant results.

We'll need to export the data from SQLServer into an XML file, and then have MetaTagger import it. A custom pre-processor would need to be written to do this.

I'm a little confused on the exporting of SQLServer to an XML file ... what schema for the XML format would we use? If we use one that MetaTagger understands/expects, then would it be fairly easy to load it?

Would it be easier to just do all this manually? What are some things we should plan for?

Thanks for any feedback.

David

Comments

  • Hi David,

    Is the data from the SQL Server being used as a "vocabulary"? or are you trying to use it to populate select lists within the metadata capture form? or something else?

    If the data is to be turned into a vocabulary - and you're putting it into XML format - look at the Vocab DTD in the Appendix of the MetaTagger manual. Figure out how you want to map the data from your existing server into the structure of the vocabulary (e.g., do you have a sense of parent/child relationships between terms, do you want to include descriptions of the terms in the vocabulary, etc.) and then create the process for doing that (I'm partial to Perl, but it doesn't really matter what you use as long as you can pull in the data from the SQL Server and spit out the correctly formatted XML file).

    One thing to be particulary careful about ... assuming that this is a "vocabulary" ... is make sure you can get reliable, consistant, unique id's from the SQL Server - otherwise you're going to have lots of problems building parent/child relationships and dealing with issues if/when some of the data changes.

    Once you have the XML - use iwloadvocab to load it into MetaTagger (take a look at iwcleanvocab too - a very useful tool)

    If I've completely missed the mark as to what you are trying to do - please follow-up with clarifications - perhaps a sample situation of the kinds of data you are talking about and how you want to use it.

    --fish
    (Interwoven Senior Technical Consultant)
  • Hello,
    In our Metatagger installation we plan to extract data from a Oracle Database to populate drop down fields on the metadata capture form. What would be the best way to do this??

    Also, here is our situation: We have a fluid structure when it comes to our product distribution channel. Many distributors change zones regularly -- How does one go about making sure that once a distributor moves from say, ZoneA to ZoneB , the metadata associated with all ZoneB distributors gets transferred to the distributor??
  • we plan to extract data from a Oracle Database to populate drop down fields on the metadata capture form. What would be the best way to do this??

    If the drop-down list values are independent of any other field of data, you can probably do this with an inline.

    If the drop-down list values are dependent on some other field's data, you would need to use a cgi-callout, but I think there might be difficulties in doing so in the current version (I could be wrong, but I seem to recall that it is difficult to ascertain the value any field other than the one associated with the callout at the present time).

    We have a fluid structure when it comes to our product distribution channel. Many distributors change zones regularly -- How does one go about making sure that once a distributor moves from say, ZoneA to ZoneB , the metadata associated with all ZoneB distributors gets transferred to the distributor??

    I'm not sure what you're asking here so I'll make a general suggestion: Start a new thread in this forum specifically for this question, and do so with a post that provides a better sense of what you are doing and how/where the issues of metadata come into play.

    --fish
    (Interwoven Senior Technical Consultant)
  • I'm sure everyone was waiting anxiously to hear how it went Smiley Happy. Transfering data from SQLServer to MetaTagger was fairly easy and I made it too complicated in the original post. We wrote a VB.NET application that queried the database for each image we wanted to tag. For example, budweiser.gif had the keyword of "beer" in our database, which the program did a query for and retrieved. Then the .exe kicked off a command line like this -

    iwextattr -s keywords=beer budweiser.gif
TeamSite Developer Resources

  • Docker Automation

  • LiveSite Content Services (LSCS) REST API

  • Single Page Application (SPA) Modules

  • TeamSite Add-ons

If you are interested in gaining full access to the content, you can register for a My Support account here.
image
OpenText CE Products
TeamSite
APIs