473,378 Members | 1,066 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,378 software developers and data experts.

XCS: eXtensible Constraint Specification



Hi there,
I am having a hard time in grasping how the TBX (TermBase eXchange
format), authored by LISA (http://www.lisa.org/tbx/) exactly
works. What I seem to have understood is the following:
- although TBX *is* defined in terms of a DTD, it does not define it
in full; it is more like it defines a general structure that can be
further modified as far as details are concerned. Thus, TBX is not
"one" format but rather, well, a class of closely related formats
(or maybe they could be called "dialects" - "TBX variants" in proper
lingo, I think). In the implementation of this model, elements are
rather few and their generic identifiers sound more abstract than is
familiar with e. g. traditional SGML formats. For instance, what
could conceivably be called <definition> in an old-fashioned way
("this is a definition") is <descrip type="definition"> in the TBX
way ("this is a descriptive element, namely a definition"). In TBX
lingo, "descrip" is a meta data category, and "definition", a data
category.
- what is hence also needed to have a working format is thus the
information prescribing the details. This is the job of so-called
XCS (extensible constraint specification) files. Formally, they are
in XML format, hence may carry an .xml file extension. Any
application capable of processing TBX must be capable of checking
adherence to at least one such XCS (this may perhaps even be
hardcoded into the application, meaning the TBX variant understood
by this app would be fixed). For an application to be even better,
however, it should be able to read in a given XCS file, and then
process the TBX data based on that (hence it would be able to
process any TBX variant).
I never before heard of XCS, and very few of schemata (;-) - yeah, I
know, schemas), but I am wondering whether XCS might be no more and no
less than a schema (though it would be lightly confusing if both a DTD
and a schema were present - I thought these to be alternatives,
rather). Here's an illustrative example of such an XCS, provided by
LISA:

<?xml version="1.0"?>
<TBXXCS name='DXFd-supplier' version="1.0" lang='en' xmlns="x-schema:TBX-XCS-XDRschema-v-0-
1.xml">
<header><title>subset DCS file for the Supplier example</title></header>
<datCatSet>
<termNoteSpec name="termType" datcatId="ISO12620A-0201">
<contents datatype="picklist" targetType="none">fullForm abbreviatedForm</contents>
</termNoteSpec>
<descripSpec name="subjectField" datcatId="ISO12620A-04">
<contents datatype="picklist" targetType="none">manufacturing finance</contents>
<levels>termEntry</levels>
</descripSpec>
<descripSpec name="definition" datcatId="ISO12620A-0501">
<contents datatype="noteText" targetType="none"/>
<levels>termEntry
</descripSpec>
</datCatSet>
</TBXXCS>

Now, is XCS simply a schema, or is it an invention peculiar to the TBX
format? I gather the same tools as used for conversion of ordinary
SGML/XML should be usable, but are there tools available for checking
for consistency with an XCS file, analogous to the way nsgmls checks
for consistency with a DTD? I hope that the syntax of the XBS file
becomes more transparent to me as I grasp this.
I would very much appreciate any enlightenment on this.

Regards, Florian

--
Florian v. Savigny

If you are going to reply in private, please be patient, as I only
check for mail something like once a week. - Si vous allez répondre
personellement, patientez s.v.p., car je ne lis les courriels
qu'environ une fois par semaine.
Jul 20 '05 #1
0 1674

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

Similar topics

26
by: Agoston Bejo | last post by:
I want to enforce such a constraint on a column that would ensure that the values be all unique, but this wouldn't apply to NULL values. (I.e. there may be more than one NULL value in the column.)...
4
by: wireless | last post by:
I've written code that dynamically builds an sql query based on various constraint possibilities. The problem is the code would have been very complex had I not come up with a dummy constraint...
4
by: Karen Sundquist | last post by:
I have a client who wants to build a database with a user extensible schema. The client wants to model an entity with about 100 numeric attributes. As time goes on, more numeric attributes will...
3
by: Dante | last post by:
I was trying to improve PPK's JIR script by using XML. I have this code: function init() { var x = document.getElementsByTagName('replace'); var prefix = 'http://www.quirksmode.org/dom/pix/';...
9
by: Maury Merkin | last post by:
Hi, I manage a couple of Web sites which, occasionally, use foreign (i.e. non-English, since English is the language of these sites) words. My elementary school teacher told me that foreign...
2
by: Hazz | last post by:
If in an interview next week I was told to Design and Develop Extensible Web Application Frameworks using Microsoft .NET technologies. How do I break that question down? My first temptation...
3
by: ferg | last post by:
I have a Customer table. The table has two different CHECK constraints. Then there is the Customer details dialog, which provides the user with an UI for changing users. I have some UPDATE sql,...
15
by: Frank Swarbrick | last post by:
I have the following three tables DROP TABLE CALLTRAK.SERVICE_CODES @ CREATE TABLE CALLTRAK.SERVICE_CODES ( CODE CHAR(1) NOT NULL , CONSTRAINT SERVICE_CODES_PK PRIMARY KEY (CODE) ,...
2
by: rorajoey | last post by:
Violation of UNIQUE KEY constraint 'IX_surveyQuestions'. Cannot insert duplicate key in object 'dbo.surveyQuestions'. This might seem like a simple matter of trying to insert a row with ID=20 when...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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...

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.