关于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 

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



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


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




本文转自斯克迪亚博客园博客,原文链接:http://www.cnblogs.com/sgsoft/archive/2005/01/25/97337.html,如需转载请自行联系原作者

相关文章
|
9月前
|
开发框架 前端开发 .NET
一个适用于 .NET 的开源整洁架构项目模板
一个适用于 .NET 的开源整洁架构项目模板
150 26
|
9月前
|
C# Android开发 iOS开发
2025年全面的.NET跨平台应用框架推荐
2025年全面的.NET跨平台应用框架推荐
343 23
|
9月前
|
开发框架 安全 .NET
【Azure Developer】.NET Aspire 项目本地调试遇 Grpc.Core.RpcException 异常( Error starting gRPC call ... )
Error starting gRPC call. HttpRequestException: The SSL connection could not be established, see inner exception. AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot
178 12
|
8月前
|
传感器 人工智能 机器人
D1net阅闻|OpenAI机器人项目招新 或自研传感器
D1net阅闻|OpenAI机器人项目招新 或自研传感器
|
10月前
|
消息中间件 开发框架 监控
NET任务调度框架Hangfire使用指南
Hangfire 是一个用于 .NET 应用程序的开源任务调度框架,支持长时间运行任务、定时任务等。通过简单的安装配置,即可将任务从主线程分离,提升应用性能。支持多种数据库,提供丰富的任务类型如立即执行、延迟执行和周期性任务,并有可视化管理界面 Hangfire Dashboard。还支持安全性配置及扩展插件,如 Hangfire.HttpJob,适合各种复杂场景下的任务调度需求。
912 1
NET任务调度框架Hangfire使用指南
|
10月前
|
监控 前端开发 API
一款基于 .NET MVC 框架开发、功能全面的MES系统
一款基于 .NET MVC 框架开发、功能全面的MES系统
235 5
|
11月前
|
开发框架 安全 .NET
在数字化时代,.NET 技术凭借跨平台兼容性、丰富的开发工具和框架、高效的性能及强大的安全稳定性,成为软件开发的重要支柱
在数字化时代,.NET 技术凭借跨平台兼容性、丰富的开发工具和框架、高效的性能及强大的安全稳定性,成为软件开发的重要支柱。它不仅加速了应用开发进程,提升了开发质量和可靠性,还促进了创新和业务发展,培养了专业人才和技术社区,为软件开发和数字化转型做出了重要贡献。
176 5
|
11月前
|
传感器 人工智能 供应链
.NET开发技术在数字化时代的创新作用,从高效的开发环境、强大的性能表现、丰富的库和框架资源等方面揭示了其关键优势。
本文深入探讨了.NET开发技术在数字化时代的创新作用,从高效的开发环境、强大的性能表现、丰富的库和框架资源等方面揭示了其关键优势。通过企业级应用、Web应用及移动应用的创新案例,展示了.NET在各领域的广泛应用和巨大潜力。展望未来,.NET将与新兴技术深度融合,拓展跨平台开发,推动云原生应用发展,持续创新。
132 4
|
11月前
|
开发框架 .NET C#
.NET 技术凭借高效开发环境、强大框架支持及跨平台特性,在软件开发中占据重要地位
.NET 技术凭借高效开发环境、强大框架支持及跨平台特性,在软件开发中占据重要地位。从企业应用到电子商务,再到移动开发,.NET 均展现出卓越性能,助力开发者提升效率与项目质量,推动行业持续发展。
208 4
|
11月前
|
消息中间件 监控 数据可视化
基于.NET开源、功能强大且灵活的工作流引擎框架
基于.NET开源、功能强大且灵活的工作流引擎框架
267 3

热门文章

最新文章