473,404 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Extra metadata

I have a number of datasets that contains lots of engineering type data.
Things are in lengths, forces, energies, times, etc etc.

The datasets have two underlying natures:
1. The product dataset has all numeric columns and contains only values of
the lengths, etc. It does not contain the associated units because they are
only column dependent. (All values in a column have same kind of dimension of
course such as length but also the same actual dimension such as feet or
pounds etc.)

2. User input dataset is all string based. Each value here carries along its
associated dimension because some may be in feet and some in inches etc. We
want to carry along the exact user input as a string converting it into
numbers for the crunch but displaying the original input in reports.

SOOOO ... Short of a lot of hand coding - which this project specifically
wants to avoid -
A. In both cases is there a way of creating types say "energy1" and
"energy2" whose underlying representation is double in case 1 and string in
case 2 and using that as the datatype of a column. (I think this is doable
and maybe even trivial, but am not sure how.)

B. Much more difficult, may be impossible, is there any reasonable way to
add additional meta data to a column so that in case 1 I could not only type
the data as energy1 but also have the additional meta data say that the
numbers all have the units of ft / sec / sec (or whatever the units of energy
are. I forget at the moment.)

Basically is it possible to have the dataset and its metadata document the
underlying reality through types and metadata without the expense of have
extra columns in the table to contain the information. (One could imagine
having for each column of real data another one that contains the dimension
family and the actual dimension e.g. "Length:feet" This is what I want to
avoid.
--
Regards,
Al Christoph
Senior Consultant and Proprietor
Three Bears Software, LLC
just right software @ just right prices @3bears.biz
Nov 4 '05 #1
4 1603
Hi Al,

First, we cannot create a column whose type is uncertain. Also, a
DataColumn in .NET framework 1.1 cannot hold other meta data to indicate
the unit of the data. You have to write your own logic to achieve this.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 5 '05 #2
Thanks for the response. Perhaps I wasn't clear. Can I create a column whose
type is certain (to use your phrase) but whose type was created by me?

If that is the case is it possible to create an "alias" for a type (without
introducing all the overhead of deriving from object) ?? For example is it
possible to declare a type energy as double?

Regards,
Al Christoph
Senior Consultant and Proprietor
Three Bears Software, LLC
just right software @ just right prices @3bears.biz
"Kevin Yu [MSFT]" wrote:
Hi Al,

First, we cannot create a column whose type is uncertain. Also, a
DataColumn in .NET framework 1.1 cannot hold other meta data to indicate
the unit of the data. You have to write your own logic to achieve this.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 5 '05 #3
The DataSet pretty much follows the traditional database model so in
that vein you will either need to add addition columns of data to a
table to define your extra data or create relationships to other tables.

This is one thing that really bothered me about their implementation of
a DataSet. It was a great idea but is too closed. It would have been a
lot better if the top level of a DataSet was an Interface that could
have been implemented if person needs to have a different underneath
model for the data than traditional database. The custom DataSet could
still be used as a normal DataSet.

I have had a very hard time trying to figure out how to make a real-time
hierarchical data repository map into a DataSet that could expose data
in real time. The XmlDataDocument was very close to what i needed but
contained only static data and not data changing in real time. I tried
all kinds of stuff from creating custom rows to making custom tables but
nothing fit quite right. I finally gave up and just snapshotted data
occasionally from the repository into the DataSet meaning the data
existed twice. This would have been trivial if the top end of the
DataSet or XmlDataDocument would have been an Interface and i could
implement it. All the table stuff was defined as Interfaces in Java so
it was real easy to do there.

I see no real good reason why Complex items like DataSet were not
implemented from Interfaces. That way custom ones could be made and
still be used in things like grid view. To paraphrase Spock this seemed
like two dimensional thinking

Leon Lambert

Al Christoph wrote:
Thanks for the response. Perhaps I wasn't clear. Can I create a column whose
type is certain (to use your phrase) but whose type was created by me?

If that is the case is it possible to create an "alias" for a type (without
introducing all the overhead of deriving from object) ?? For example is it
possible to declare a type energy as double?

Regards,
Al Christoph
Senior Consultant and Proprietor
Three Bears Software, LLC
just right software @ just right prices @3bears.biz
"Kevin Yu [MSFT]" wrote:

Hi Al,

First, we cannot create a column whose type is uncertain. Also, a
DataColumn in .NET framework 1.1 cannot hold other meta data to indicate
the unit of the data. You have to write your own logic to achieve this.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 6 '05 #4
Hi Al,

As far as I know, we cannot create alias for the type in Dataset. However,
you can try to create your own structure named energy and inherit from the
type you need. It is not an alias but a sub type for the original type.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 8 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Useko Netsumi | last post by:
Does anyone aware of any program/apps/scripts that has the ability to modify/add/create/delete metadata in any image type such as JPEG, GIF, PNG, etc. Question for the experts, is it wise to...
1
by: Brett Selleck | last post by:
I would like to start collecting Metadata on my XML schemas. I have searched the web for a method of automatically extracting Metadata from an XSD file and have come up empty handed. Basically what...
2
by: Tomas Vera | last post by:
Hello All (This is being cross-posted to the C++ group), I've started receiving the subject message during a compile of a C++ based interface module used in my C# based WebApp. This module...
2
by: GoodDay | last post by:
MC++ application, I've got "LNK2022 error message... MyApp error LNK2022: metadata operation failed (8013118D) : Inconsistent method declarations in duplicated types(CMainFramel). (0x02000008). ...
4
by: Al Christoph | last post by:
I have a number of datasets that contains lots of engineering type data. Things are in lengths, forces, energies, times, etc etc. The datasets have two underlying natures: 1. The product dataset...
1
by: Laurent Lequenne | last post by:
Hello There, I just converted a VS 2003 C++ Project into VS 2005. I already made some changes in my headers files, has I had compilations errors with enums declarations. Now everything compiles...
2
by: EP | last post by:
I'm looking for a method by which to access Windows files metadata and have not been able to find anything in the standard modules or via Google - what is the standard approach? Shamefully I...
3
by: Peter Kirk | last post by:
Hi in relational databases we have in general such things as "tables", "columns", "primary keys", "foreign keys". Are there corresponding entities in the xml world? Xml is used to represent...
5
by: Ivo | last post by:
Hi, I need help with creating .txt and .doc files form c#. I know how to create these files so that they contain the text I want, but besides that text, I also need to write metadata (hope that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.