[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Additional semantics

  • From: "Timothy W. Cook" <timothywayne.cook@gmail.com>
  • To: "xml-dev@lists.xml.org\"" <xml-dev@lists.xml.org>
  • Date: Fri, 8 Mar 2013 11:28:28 -0300

Additional semantics
Hi All,

I'd like opinions on this approach.
The goal is to be able to add semantics to complexType definitions via
links to controlled vocabularies or even Wikpedia, wherever ...

I prefer to keep all of the information in one appinfo section of the
schema.  The applications will then know how to extract all of the
metadata including references to external source used in defining the
concept in each complexType.

Does this approach (below) make sense? It seems to me an application
can use XQuery/XPath to examine and provide links to external sources.
 IS there a better, more standard approach to this?  I want to markup
added to the schemas not to the instance data as some people might
normally think of doing.

Basically the rdf:about refers to the complexType in the same schema.

Thanks,
Tim

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xmlns:mlhim2="http://www.mlhim.org/xmlns/mlhim2/2_4_1"
  targetNamespace="http://www.mlhim.org/xmlns/mlhim2/2_4_1"
  elementFormDefault="qualified">

  <!-- Metadata section -->
  <xs:annotation>
  <xs:appinfo>
  <rdf:RDF>
    <!-- Lots of standard Dublin core metadata here -->
    <rdf:Description rdf:about="mlhim2:ct-a">
      <rdfs:isDefinedBy
rdf:resource="http://some_controlled_vocabulary.org/code_name1" />
      <!-- possible multiple entries -->
    </rdf:Description>

    <rdf:Description rdf:about="mlhim2:ct-b">
      <rdfs:isDefinedBy
rdf:resource="http://some_controlled_vocabulary.org/code_name2"/>
    </rdf:Description>

  </rdf:RDF>
  </xs:appinfo>
  </xs:annotation>


  <!-- Type definitions -->

  <xs:complexType name="ct-a">
    <!-- assume some restriction definition here -->
  </xs:complexType>

  <xs:complexType name="ct-b">
    <!-- assume some restriction definition here -->
  </xs:complexType>
</xs:schema>


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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.