473,748 Members | 2,672 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Schema Metadata not a Metadata Schema

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 I am
looking for is a VB Script or J Script that parses an XSD file and
outputs the metadata in a structured format. For examle: Given this
simple Schema below I would like to see the following.

Schema:
<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefa ult="qualified" attributeFormDe fault="unqualif ied">

<xs:element name="Book">

<xs:complexType >

<xs:all>

<xs:element ref="ISBN"/>

<xs:element ref="Title"/>

<xs:element name="Author" type="xs:string "/>

</xs:all>

</xs:complexType>

</xs:element>

<xs:element name="Title" type="xs:string "/>

<xs:element name="ISBN" type="xs:long"/>

</xs:schema>

I would like to see this:

Element DataType IsGlobal Parent
ISBN long Y Book
Title string Y Book
Author string N Book
Book ComplexType Y Schema

Has anybody seen a tool that will do this? Or have a strategy on how
to extract this information?

Thanks,
Jul 20 '05 #1
1 2787
On 4 Sep 2003 07:39:46 -0700, se******@hotmai l.com (Brett Selleck)
wrote:
I would like to start collecting Metadata on my XML schemas.
What is "metadata on a schema" ?

If an author creates a schema and embeds some metadata, then you can
extract it. You might find <xs:annotatio n> & <xs:documentati on> and
use their contents. You could also infer metadata, from the initial
URL of a schema, or from any <xs:include> elements you might
encounter.

Then you can take this set of metadata properties you have, and
publish this application-schema-metadata through a popular
metadata-schema, such as Dublin Core.

You could do this operation though many ways, but XSLT would be an
obvious choice.

<xs:element name="Title" type="xs:string "/>

<xs:element name="ISBN" type="xs:long"/>

</xs:schema>

I would like to see this:

Element DataType IsGlobal Parent
ISBN long Y Book
Title string Y Book

This looks like a different problem. This is scanning a schema to see
if it contains elements that are suggestive of being
"metadata-related" properties, and then extracting them.

Again, you could use XSLT to do much of this.

Jul 20 '05 #2

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

Similar topics

2
1559
by: tgtt | last post by:
the schema is: http://www.web3d.org/specifications/x3d-3.0.xsd when use SOM to load as: .... SchemaCache = new ActiveXObject("Msxml2.XMLSchemaCache.4.0"); SchemaCache.add("","x3d-3.0.xsd"); .... pop up a messageBox report that there are some error.but the schema is
0
1122
by: Hans Oesterholt-Dijkema | last post by:
Hi, I'm looking for a way to represent meta data using an XML Schema. However, I'm running into a small problem: 1. I want to have meaningfull XML tags 2. I want my meta data to be able to extend "runtime".
10
1964
by: Al Christoph | last post by:
Please forgive me if this is the wrong place to post this. The last place I posted got me a fairly rude response. I guess vb.db people just don't want to think about XML as database. At any rate, here is what I posted: I have downloaded the final production version of VS 2005 pro after testing with Team version. I wonder if I've been screwed or if it's just too early on a Sunday morning. It seems to me that it was relatively trivial to...
2
2161
by: gandalf.me | last post by:
I was just wondering if we can export just the schema/metadata in DB2 (i.e. just the table and column information, without the data). Is there an easy way to do this in DB2? Thanks in advance.
3
10606
by: survivalist | last post by:
I am trying to discover the schema of a PostgreSQL database programatically at runtime. I'm using psycopg (I assume that's still the best library). Is there a way to query the schema other than opening a system pipe like "psql -d '\d'", "psql -d '\d tablename'", etc.? DBIAPI 2.0 shows that the Cursor object has a .description method that describes rows, and there's the Type object. But neither of these appear to give you table names.
5
1766
by: Norsoft | last post by:
How can I convert an existing schema to an xml document. I have a series of schema documents that validate xml documents that describe metadata. Normally the metadata is first defined in a database, then schemas generated from the database. In this case I was given the schemas and I am writing an application to create the database entries. I can't use a dataset as we have a very specific database structure. I started to load them into an...
0
1227
by: Henry S. Thompson | last post by:
Thanks to contributions from Microsoft and Sun updating and considerably extending their 2002 contributions, we now have nearly 40,000 tests for W3C XML Schema 1.0 2nd edition. All the tests are now accompanied by metadata in the form set out in the XML Schema Test Suite Framework . The community owes a big "Thank You" to NIST, Sun and Microsoft for contributing their extensive test collections -- we welcome further contributions!
0
4158
by: Chuck Vance | last post by:
Hi ng, I can't handle this XML-Schema (below) I want to access the data like "Select Name from DATA". <?xml version="1.0" encoding="utf-8"?> <dataset xmlns="http://developer.cognos.com/schemas/xmldata/1/" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"> <!-- <dataset xmlns="http://developer.cognos.com/schemas/xmldata/1/" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
1
4368
by: sakhawn | last post by:
hi all, I need to transform an xml file into a different format (Dublin Core schema) using xslt, file contains different records each record needs to transformed based on a unique ID (in this case its element <guid>) that represents the record. Input file is: <?xml version="1.0" encoding="UTF-8" ?> <ListRecords> <record> <header> <identifier>Project_DEM_100</identifier> <datestamp>2000-02-14T09:23:25Z</datestamp> </header>
0
8995
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9561
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9381
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9332
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.