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]
=?UTF-8?Q?Re=3A_=5Bxml=2Ddev=5D_The_semantics_of_an_XML_document_is_?==?UTF-8?Q?=E2=80=A6?=

I was involved in some studies to capture an XML business language semantics using semantic Web technology such as OWL and I think things to consider when semantically analysing your airplane document would be the implicit relationships, their directions and the semantic labels applicable to those relationships. So

Duration and speed are properties of the flight, because by putting flight as a wrapper around both duration and speed you are making an implied child-parent between duration and flight and between speed and flight, and a sibling-sibling relationship between speed and duration. Likewise by making hours an attribute of duration you imply a relationship. The relationships are directed. Flight is not a property of duration in your implied semantics but it could be because a duration could possess a duration-type which could be flight. Another semantics would be to have duration as parent element and type=“flight” and speed= 500 kph as attributes or child elements. The two semantics would be equivalent but not identical. Then there is inheritance, aggregation, ownership - labels of the relationships to consider. That is just the beginning, though, because semantics is about meanings and you then might define what your document means by flight, duration, units, speed, kph. Here you would fit your names of elements and attributes into an ontology of the domain semantics. You might consider the codifications such as kph and hours. Plus the context such as commercial, supply-chain or military air travel.

So what you are describing as semantics is not the same. What you are calling semantics, I would call calculation model.


On Sat, 8 Jan 2022 at 13:04, Roger L Costello <costello@mitre.org> wrote:

Hi Folks,

The semantics of an XML document is determined by the actions taken on the XML document.

Consider this XML document:

<airplane-flight>
    <duration units="hours">1</duration>
    <speed units="kilometers-per-hour">500</speed>
</airplane-flight>

What is its semantics?

Answer: it has no semantics because it has no actions.

Pair up the XML document with actions that compute duration * speed (i.e., distance traveled by the airplane flight):

The semantics of the XML document is: 500

Pair up the XML document with different actions and it has different semantics:

Now the semantics of the XML document is: 310.686

----------------------------------------------

Wicked cool!

Comments?

/Roger

--
----
Stephen D Green


[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