关于Stuart.NET项目的元数据定义框架--(snap定义)

关于Stuart.NET项目的元数据定义框架--(snap定义)

 IMS规范太过于庞大,而且,它的出现主要用于Web信息共享与交换,所定义的规范由IBM,微软,东芝等公司支持。
 由于该规范的实现各个公司并不统一,比如,IBM的developworks并不能与微软的MSDN站点资源相互沟通,能够搜索一个主题的相关所有知识,目前还做不到。

 Google的成功源自使用的简单,这也包括Google的Web Service API。Google的真正价值在于其高效的算法和海量的数据。

 我们的数据结构也应该定义的尽可能简单,但必须做到可扩展,符合主流规范,比如RDF,RSS等等,IMS是处于这两者之上的更高的一个抽象框架,并没有产品。但大量的EC,Knowledge base,e-learning 等等,都或多或少的实现了这个规范。

(其实这个规范就是从这些东西而来--理论总是用来解释现实的,所以,永远不要迷信理论!!!)

关于元数据对象要定义的字段,大家可以参考这个XSD文件,然后讨论决定,要那些字段,不要那些字段。

imsmetedate.xsd

None.gif <? xml version="1.0" encoding="UTF-8" ?>
None.gif
<!-- Generated by Turbo XML 2.3.1.100. Conforms to w3c http://www.w3.org/2001/XMLSchema -->
None.gif
< xsd:schema  targetNamespace ="http://www.imsglobal.org/xsd/imscp_v1p1"  xmlns:xsd ="http://www.w3.org/2001/XMLSchema"  xmlns:xsi ="http://www.w3.org/2001/XMLSchema-instance"  xmlns ="http://www.imsglobal.org/xsd/imscp_v1p1"  elementFormDefault ="qualified"  version ="IMS CP 1.1.4" >
None.gif    
< xsd:import  namespace ="http://www.w3.org/XML/1998/namespace"  schemaLocation ="http://www.w3.org/2001/xml.xsd" />
None.gif    
<!--  ********************  -->
None.gif    
<!--  ** Change History **  -->
None.gif    
<!--  ********************  -->
None.gif    
< xsd:annotation >
None.gif        
< xsd:documentation  xml:lang ="en" > DRAFT XSD for IMS Content Packaging version 1.1 DRAFT                 </ xsd:documentation >
None.gif        
< xsd:documentation >  Copyright (c) 2001 IMS GLC, Inc.                                                     </ xsd:documentation >
None.gif        
< xsd:documentation > 2000-04-21, Adjustments by T.D. Wason from CP 1.0.                                    </ xsd:documentation >
None.gif        
< xsd:documentation > 2001-02-22, T.D.Wason: Modify for 2000-10-24 XML-Schema version.                      </ xsd:documentation >
None.gif        
< xsd:documentation >  Modified to support extension.                                                       </ xsd:documentation >
None.gif        
< xsd:documentation > 2001-03-12, T.D.Wason: Change filename, target and meta-data namespaces               </ xsd:documentation >
None.gif        
< xsd:documentation >  and meta-data filename.                                                              </ xsd:documentation >
None.gif        
< xsd:documentation >  Add meta-data to itemType, fileType and organizationType.                            </ xsd:documentation >
None.gif        
< xsd:documentation >  Do not define namespaces for xml in XML instances generated from this xsd.           </ xsd:documentation >
None.gif        
< xsd:documentation >  Imports IMS meta-data xsd, lower case element names.                                 </ xsd:documentation >
None.gif        
< xsd:documentation >  This XSD provides a reference to the IMS meta-data root element as imsmd:record      </ xsd:documentation >
None.gif        
< xsd:documentation >  If the IMS meta-data is to be used in the XML instance then the instance             </ xsd:documentation >
None.gif        
< xsd:documentation >  must definean IMS meta-data prefix with a namespace.                                 </ xsd:documentation >
None.gif        
< xsd:documentation >  The meta-data targetNamespace should be used.                                        </ xsd:documentation >
None.gif        
< xsd:documentation >   </ xsd:documentation >
None.gif        
< xsd:documentation > 2001-03-20, Thor Anderson: Remove manifestref, change resourceref back to             </ xsd:documentation >
None.gif        
< xsd:documentation >  identifierref, change manifest back to contained by manifest.                        </ xsd:documentation >
None.gif        
< xsd:documentation >   </ xsd:documentation >
None.gif        
< xsd:documentation >  --Tom Wason: manifest may contain _none_ or more manifests.                          </ xsd:documentation >
None.gif        
< xsd:documentation > 2001-04-13 Tom Wason: corrected attirbute name structure.  Was misnamed type.         </ xsd:documentation >
None.gif        
< xsd:documentation >   </ xsd:documentation >
None.gif        
< xsd:documentation > 2001-05-14 Schawn Thropp: Made all complexType extensible with the group.any          </ xsd:documentation >
None.gif        
< xsd:documentation >  Added the anyAttribute to all complexTypes.                                          </ xsd:documentation >
None.gif        
< xsd:documentation >  Changed the href attribute on the fileType and resourceType to xsd:string            </ xsd:documentation >
None.gif        
< xsd:documentation >  Changed the maxLength of the href, identifierref, parameters, structure              </ xsd:documentation >
None.gif        
< xsd:documentation >  attributes to match the Information model.                                           </ xsd:documentation >
None.gif        
< xsd:documentation >   </ xsd:documentation >
None.gif        
< xsd:documentation > 2001-07-25 Schawn Thropp: Changed the namespace for the Schema of Schemas to      </ xsd:documentation >
None.gif        
< xsd:documentation >  the 5/2/2001 W3C XML Schema Recommendation.                                          </ xsd:documentation >
None.gif        
< xsd:documentation >  attributeGroup attr.imsmd deleted, was not used anywhere.                            </ xsd:documentation >
None.gif        
< xsd:documentation >  Any attribute declarations that have use = "default"                                 </ xsd:documentation >
None.gif        
< xsd:documentation >  changed to use="optional" - attr.structure.req.                                      </ xsd:documentation >
None.gif        
< xsd:documentation >  Any attribute declarations that have value="somevalue" changed to                    </ xsd:documentation >
None.gif        
< xsd:documentation >  default="somevalue" - attr.structure.req (hierarchical).                             </ xsd:documentation >
None.gif        
< xsd:documentation >  Removed references to IMS MD Version 1.1.                                            </ xsd:documentation >
None.gif        
< xsd:documentation >  Modified attribute group "attr.resourcetype.req" to change use from optional         </ xsd:documentation >
None.gif        
< xsd:documentation >  to required to match the information model.  As a result the default value           </ xsd:documentation >
None.gif        
< xsd:documentation >  also needed to be removed                                                            </ xsd:documentation >
None.gif        
< xsd:documentation >  Name change for XSD.  Changed to match version of CP Spec                            </ xsd:documentation >
None.gif        
< xsd:documentation >   </ xsd:documentation >
None.gif        
< xsd:documentation >  2001-11-04 Chris Moffatt:                                                            </ xsd:documentation >
None.gif        
< xsd:documentation >   1. Refer to the xml namespace using the "x" abbreviation instead of "xml".          </ xsd:documentation >
None.gif        
< xsd:documentation >      This changes enables the schema to work with commercial XML Tools                </ xsd:documentation >
None.gif        
< xsd:documentation >   2. Revert to original IMS CP version 1.1 namespace.                                 </ xsd:documentation >
None.gif        
< xsd:documentation >      i.e. "http://www.imsglobal.org/xsd/imscp_v1p1"                                   </ xsd:documentation >
None.gif        
< xsd:documentation >      This change done to support the decision to only change the XML namespace with   </ xsd:documentation >
None.gif        
< xsd:documentation >      major revisions of the specification i.e. where the information model or binding </ xsd:documentation >
None.gif        
< xsd:documentation >      changes (as opposed to addressing bugs or omissions). A stable namespace is      </ xsd:documentation >
None.gif        
< xsd:documentation >      necessary to the increasing number of implementors.                              </ xsd:documentation >
None.gif        
< xsd:documentation >   3. Changed name of schema file to "imscp_v1p1p3.xsd" and                            </ xsd:documentation >
None.gif        
< xsd:documentation >      version attribute to "IMS CP 1.1.3" to reflect minor version change              </ xsd:documentation >
None.gif        
< xsd:documentation >         </ xsd:documentation >
None.gif        
< xsd:documentation > 2003-03-21 Schawn Thropp                                                              </ xsd:documentation >
None.gif        
< xsd:documentation > The following updates were made to the Version 1.1.3 "Public Draft" version:          </ xsd:documentation >
None.gif        
< xsd:documentation >   1. Updated name of schema file (imscp_v1p1.xsd) to match to IMS naming guideance    </ xsd:documentation >
None.gif        
< xsd:documentation >   2. Updated the import statement to reference the xml.xsd found at                   </ xsd:documentation >
None.gif        
< xsd:documentation >        "http://www.w3.org/2001/03/xml.xsd".  This is the current W3C schema           </ xsd:documentation >
None.gif        
< xsd:documentation >         recommended by the W3C to reference.                                          </ xsd:documentation >
None.gif        
< xsd:documentation >   3. Removed all maxLength's facets.  The maxLength facets was an incorrect binding   </ xsd:documentation >
None.gif        
< xsd:documentation >      implementation.  These lengths were supposed, according to the information       </ xsd:documentation >
None.gif        
< xsd:documentation >      model, to be treated as smallest permitted maximums.                             </ xsd:documentation >
None.gif        
< xsd:documentation >   4. Added the variations content model to support the addition in the information    </ xsd:documentation >
None.gif        
< xsd:documentation >      model.                                                                           </ xsd:documentation >
None.gif        
< xsd:documentation >              </ xsd:documentation >
None.gif        
< xsd:documentation >  2004-09-14 Alex Jackl, IMS Global:                                                            </ xsd:documentation >
None.gif        
< xsd:documentation >   1. Added "xmlns:xsi" declaration                     </ xsd:documentation >
None.gif        
< xsd:documentation >   2. Changed elementFormDefault to "qualified"            </ xsd:documentation >
None.gif        
< xsd:documentation >   3. Changed version attribute to "IMS CP 1.1.4" to reflect minor version change              </ xsd:documentation >
None.gif        
< xsd:documentation >   4. Changed Process Content Values to "lax" from "strict"             </ xsd:documentation >
None.gif        
< xsd:documentation >   5. Added attribute extension to  metadataType         </ xsd:documentation >
None.gif        
< xsd:documentation >   6. Corrected documentation title placement      </ xsd:documentation >
None.gif        
< xsd:documentation >   7. Changed xsd namespace schema location from "http://www.w3.org/2001/03/xml.xsd" to "http://www.w3.org/2001/xml.xsd"  </ xsd:documentation >
None.gif        
< xsd:documentation >   8. Changed item multiplicity to "1 to many" </ xsd:documentation >
None.gif    
</ xsd:annotation >
None.gif    
<!--  ********************  -->
None.gif    
<!--  ** Attribute Declarations**  -->
None.gif    
<!--  ********************  -->
None.gif    
< xsd:attributeGroup  name ="attr.base" >
None.gif        
< xsd:attribute  ref ="xml:base" />
None.gif    
</ xsd:attributeGroup >
None.gif    
< xsd:attributeGroup  name ="attr.default" >
None.gif        
< xsd:attribute  name ="default"  type ="xsd:IDREF" />
None.gif    
</ xsd:attributeGroup >
None.gif    
< xsd:attributeGroup  name ="attr.href" >
None.gif        
< xsd:attribute  name ="href"  type ="xsd:anyURI" />
None.gif    
</ xsd:attributeGroup >
None.gif    
< xsd:attributeGroup  name ="attr.href.req" >
None.gif        
< xsd:attribute  name ="href"  type ="xsd:anyURI"  use ="required" />
None.gif    
</ xsd:attributeGroup >
None.gif    
< xsd:attributeGroup  name ="attr.identifier.req" >
None.gif        
< xsd:attribute  name ="identifier"  type ="xsd:ID"  use ="required" />
None.gif    
</ xsd:attributeGroup >
None.gif    
< xsd:attributeGroup  name ="attr.identifier" >
None.gif        
< xsd:attribute  name ="identifier"  type ="xsd:ID" />
None.gif    
</ xsd:attributeGroup >
None.gif    
< xsd:attributeGroup  name ="attr.isvisible" >
None.gif        
< xsd:attribute  name ="isvisible"  type ="xsd:boolean" />
None.gif    
</ xsd:attributeGroup >
None.gif    
< xsd:attributeGroup  name ="attr.parameters" >
None.gif        
< xsd:attribute  name ="parameters"  type ="xsd:string" />
None.gif    
</ xsd:attributeGroup >
None.gif    
< xsd:attributeGroup  name ="attr.identifierref" >
None.gif        
< xsd:attribute  name ="identifierref"  type ="xsd:string" />
None.gif    
</ xsd:attributeGroup >
None.gif    
< xsd:attributeGroup  name ="attr.identifierref.req" >
None.gif        
< xsd:attribute  name ="identifierref"  type ="xsd:string"  use ="required" />
None.gif    
</ xsd:attributeGroup >
None.gif    
< xsd:attributeGroup  name ="attr.resourcetype.req" >
None.gif        
< xsd:attribute  name ="type"  type ="xsd:string"  use ="required" />
None.gif    
</ xsd:attributeGroup >
None.gif    
< xsd:attributeGroup  name ="attr.structure.req" >
None.gif        
< xsd:attribute  name ="structure"  type ="xsd:string"  default ="hierarchical" />
None.gif    
</ xsd:attributeGroup >
None.gif    
< xsd:attributeGroup  name ="attr.version" >
None.gif        
< xsd:attribute  name ="version"  type ="xsd:string" />
None.gif    
</ xsd:attributeGroup >
None.gif    
< xsd:group  name ="grp.any" >
None.gif        
< xsd:annotation >
None.gif            
< xsd:documentation > Any namespaced element from any namespace may be included within an "any" element.  The namespace for the imported element must be defined in the instance, and the schema must be imported.   </ xsd:documentation >
None.gif        
</ xsd:annotation >
None.gif        
< xsd:sequence >
None.gif            
< xsd:any  namespace ="##other"  processContents ="lax"  minOccurs ="0"  maxOccurs ="unbounded" />
None.gif        
</ xsd:sequence >
None.gif    
</ xsd:group >
None.gif    
<!--  **************************  -->
None.gif    
<!--  ** Element Declarations **  -->
None.gif    
<!--  **************************  -->
None.gif    
< xsd:element  name ="dependency"  type ="dependencyType" />
None.gif    
< xsd:element  name ="file"  type ="fileType" />
None.gif    
< xsd:element  name ="item"  type ="itemType" />
None.gif    
< xsd:element  name ="manifest"  type ="manifestType" />
None.gif    
< xsd:element  name ="metadata"  type ="metadataType" />
None.gif    
< xsd:element  name ="organization"  type ="organizationType" />
None.gif    
< xsd:element  name ="organizations"  type ="organizationsType" />
None.gif    
< xsd:element  name ="resource"  type ="resourceType" />
None.gif    
< xsd:element  name ="resources"  type ="resourcesType" />
None.gif    
< xsd:element  name ="schema"  type ="schemaType" />
None.gif    
< xsd:element  name ="schemaversion"  type ="schemaversionType" />
None.gif    
< xsd:element  name ="title"  type ="titleType" />
None.gif    
<!--  *******************  -->
None.gif    
<!--  ** Complex Types **  -->
None.gif    
<!--  *******************  -->
None.gif    
<!--  ****************  -->
None.gif    
<!--  ** dependency **  -->
None.gif    
<!--  ****************  -->
None.gif    
< xsd:complexType  name ="dependencyType" >
None.gif        
< xsd:sequence >
None.gif            
< xsd:group  ref ="grp.any" />
None.gif        
</ xsd:sequence >
None.gif        
< xsd:attributeGroup  ref ="attr.identifierref.req" />
None.gif        
< xsd:anyAttribute  namespace ="##other"  processContents ="strict" />
None.gif    
</ xsd:complexType >
None.gif    
<!--  **********  -->
None.gif    
<!--  ** file **  -->
None.gif    
<!--  **********  -->
None.gif    
< xsd:complexType  name ="fileType" >
None.gif        
< xsd:sequence >
None.gif            
< xsd:element  ref ="metadata"  minOccurs ="0" />
None.gif            
< xsd:group  ref ="grp.any" />
None.gif        
</ xsd:sequence >
None.gif        
< xsd:attributeGroup  ref ="attr.href.req" />
None.gif        
< xsd:anyAttribute  namespace ="##other"  processContents ="lax" />
None.gif    
</ xsd:complexType >
None.gif    
<!--  **********  -->
None.gif    
<!--  ** item **  -->
None.gif    
<!--  **********  -->
None.gif    
< xsd:complexType  name ="itemType" >
None.gif        
< xsd:sequence >
None.gif            
< xsd:element  ref ="title"  minOccurs ="0" />
None.gif            
< xsd:element  ref ="item"  minOccurs ="0"  maxOccurs ="unbounded" />
None.gif            
< xsd:element  ref ="metadata"  minOccurs ="0" />
None.gif            
< xsd:group  ref ="grp.any" />
None.gif        
</ xsd:sequence >
None.gif        
< xsd:attributeGroup  ref ="attr.identifier.req" />
None.gif        
< xsd:attributeGroup  ref ="attr.identifierref" />
None.gif        
< xsd:attributeGroup  ref ="attr.isvisible" />
None.gif        
< xsd:attributeGroup  ref ="attr.parameters" />
None.gif        
< xsd:anyAttribute  namespace ="##other"  processContents ="lax" />
None.gif    
</ xsd:complexType >
None.gif    
<!--  **************  -->
None.gif    
<!--  ** manifest **  -->
None.gif    
<!--  **************  -->
None.gif    
< xsd:complexType  name ="manifestType" >
None.gif        
< xsd:sequence >
None.gif            
< xsd:element  ref ="metadata"  minOccurs ="0" />
None.gif            
< xsd:element  ref ="organizations" />
None.gif            
< xsd:element  ref ="resources" />
None.gif            
< xsd:element  ref ="manifest"  minOccurs ="0"  maxOccurs ="unbounded" />
None.gif            
< xsd:group  ref ="grp.any" />
None.gif        
</ xsd:sequence >
None.gif        
< xsd:attributeGroup  ref ="attr.identifier.req" />
None.gif        
< xsd:attributeGroup  ref ="attr.version" />
None.gif        
< xsd:attribute  ref ="xml:base" />
None.gif        
< xsd:anyAttribute  namespace ="##other"  processContents ="lax" />
None.gif    
</ xsd:complexType >
None.gif    
<!--  **************  -->
None.gif    
<!--  ** metadata **  -->
None.gif    
<!--  **************  -->
None.gif    
< xsd:complexType  name ="metadataType" >
None.gif        
< xsd:sequence >
None.gif            
< xsd:element  ref ="schema"  minOccurs ="0" />
None.gif            
< xsd:element  ref ="schemaversion"  minOccurs ="0" />
None.gif            
< xsd:group  ref ="grp.any" />
None.gif        
</ xsd:sequence >
None.gif        
< xsd:anyAttribute  namespace ="##other"  processContents ="lax" />
None.gif    
</ xsd:complexType >
None.gif    
<!--  *******************  -->
None.gif    
<!--  ** organizations **  -->
None.gif    
<!--  *******************  -->
None.gif    
< xsd:complexType  name ="organizationsType" >
None.gif        
< xsd:sequence >
None.gif            
< xsd:element  ref ="organization"  minOccurs ="0"  maxOccurs ="unbounded" />
None.gif            
< xsd:group  ref ="grp.any" />
None.gif        
</ xsd:sequence >
None.gif        
< xsd:attributeGroup  ref ="attr.default" />
None.gif        
< xsd:anyAttribute  namespace ="##other"  processContents ="lax" />
None.gif    
</ xsd:complexType >
None.gif    
<!--  ******************  -->
None.gif    
<!--  ** organization **  -->
None.gif    
<!--  ******************  -->
None.gif    
< xsd:complexType  name ="organizationType" >
None.gif        
< xsd:sequence >
None.gif            
< xsd:element  ref ="title"  minOccurs ="0" />
None.gif            
< xsd:element  ref ="item"  maxOccurs ="unbounded" />
None.gif            
< xsd:element  ref ="metadata"  minOccurs ="0" />
None.gif            
< xsd:group  ref ="grp.any" />
None.gif        
</ xsd:sequence >
None.gif        
< xsd:attributeGroup  ref ="attr.identifier.req" />
None.gif        
< xsd:attributeGroup  ref ="attr.structure.req" />
None.gif        
< xsd:anyAttribute  namespace ="##other"  processContents ="lax" />
None.gif    
</ xsd:complexType >
None.gif    
<!--  ***************  -->
None.gif    
<!--  ** resources **  -->
None.gif    
<!--  ***************  -->
None.gif    
< xsd:complexType  name ="resourcesType" >
None.gif        
< xsd:sequence >
None.gif            
< xsd:element  ref ="resource"  minOccurs ="0"  maxOccurs ="unbounded" />
None.gif            
< xsd:group  ref ="grp.any" />
None.gif        
</ xsd:sequence >
None.gif        
< xsd:attributeGroup  ref ="attr.base" />
None.gif        
< xsd:anyAttribute  namespace ="##other"  processContents ="lax" />
None.gif    
</ xsd:complexType >
None.gif    
<!--  **************  -->
None.gif    
<!--  ** resource **  -->
None.gif    
<!--  **************  -->
None.gif    
< xsd:complexType  name ="resourceType" >
None.gif        
< xsd:sequence >
None.gif            
< xsd:element  ref ="metadata"  minOccurs ="0" />
None.gif            
< xsd:element  ref ="file"  minOccurs ="0"  maxOccurs ="unbounded" />
None.gif            
< xsd:element  ref ="dependency"  minOccurs ="0"  maxOccurs ="unbounded" />
None.gif            
< xsd:group  ref ="grp.any" />
None.gif        
</ xsd:sequence >
None.gif        
< xsd:attributeGroup  ref ="attr.identifier.req" />
None.gif        
< xsd:attributeGroup  ref ="attr.resourcetype.req" />
None.gif        
< xsd:attributeGroup  ref ="attr.base" />
None.gif        
< xsd:attributeGroup  ref ="attr.href" />
None.gif        
< xsd:anyAttribute  namespace ="##other"  processContents ="lax" />
None.gif    
</ xsd:complexType >
None.gif    
<!--  ******************  -->
None.gif    
<!--  ** Simple Types **  -->
None.gif    
<!--  ******************  -->
None.gif    
< xsd:simpleType  name ="schemaType" >
None.gif        
< xsd:restriction  base ="xsd:string" />
None.gif    
</ xsd:simpleType >
None.gif    
< xsd:simpleType  name ="schemaversionType" >
None.gif        
< xsd:restriction  base ="xsd:string" />
None.gif    
</ xsd:simpleType >
None.gif    
< xsd:simpleType  name ="titleType" >
None.gif        
< xsd:restriction  base ="xsd:string" />
None.gif    
</ xsd:simpleType >
None.gif    
<!--  Copyright (2) 2004 IMS Global Learning Consortium, Inc.  -->
None.gif
</ xsd:schema >
None.gif



各位组员拷贝上面的XML代码,然后存为 imsmetedata.xsd文件。
最后用XML Spy查看。


这4 个月一直在日本学习,主要在搞Oracle技术。Oracle在很多数据库领域已经走到世界的前沿,其中包括对象数据库研究,数据仓库,多维数据库,以及最新的 Grid结构计算。中国软件技术的强大,靠大家奋发图强啊!


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值