XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] 'is-a' Relationships in XML?

Thanks Rick, thanks too everyone who has posted.

Interesting you say RDF where I have thought OWL. Unless we say that 'OWL isA RDF' :-)
I guess RDF has advantages like having a standardised query language. Then again OWL seems to me to be better when there are eumerations to deal with. It would be nice to have a standard query and predicate language for OWL. Then there could even be a way to bind it to assertions like Schematron (or TAML). Cos it seems to be a corollary of what all have agreed in this thread about structire vs semantics that XPath too might be limited to addressing structure-related, not semantic, assertions, even when it's type and schema-aware.

Best regards and thanks
Steve
Stephen D Green


-----Original Message-----
From: rjelliffe@allette.com.au
Sent:  04/05/2010 5:34:16 am
Subject:  Re: [xml-dev] 'is-a' Relationships in XML?

>  Is there any way to express the
> other key relationship of 'is-a' in XML? Is this something a schema
> language can express?

Use RDF.

> Can we say that element (or even type) A 'is-an'
> element (or type) B? Any plans to add this 'feature' to the XML
> technologies if it isn't one already? It might be a key gap to fill. I
> might want to somehow imply that my <invoice/> is a <document/>. Are
> substitution groups (with, apparently, some inadequacies) the only way to
> express such a relationship in XML?

Schemas do not deal with semantics but values and occurrence
relationships. They are superficial.

Some people try to make schemas do more: for example the XBRL people try
to do semantic modeling of a kind using XML Schemas constructs. I don't
know that it is very prudent.

What substitution groups and so in in XML Schemas give us is not "X is a
Y" but "X has the same has-a's as Y". In other words, the superficial
properties of Y also are what we expect to see in X. Semantics is a
slippery word, so sometimes this superficial similarity between X and Y
may be enough; however, the fact that each element X and Y in the same
substitution group has a different name suggests that X and Y are not
semantically equivalent: if they were they would have the same name
(localization and legacy excepted.)

Cheers
Rick Jelliffe

P.S. I don't buy that XML and XML Schemas even expresses "has-a" on any
semantic level btw.


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS