版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、知识管理Knowledge Management,Li_,课程邮箱, PWD:12345678,与知识管理相关的Topic,信息检索 Information Retrieval 知识工程 Knowledge Engineering 语义网 Semantic Web 本体 Ontology 资源描述框架 Resource Description Framework 本体描述语言 Ontology Web Language 知识网格 Knowledge Grid 面向服务的架构 Service-Oriented Architecture 知识管理成熟度模型 Knowledge Management
2、 Maturity Model (K3M) 知识管理案例 ,知识管理标准,知识管理标准 国家标准GB/T 23703.1 欧洲标准 澳大利亚国家标准 加拿大国家标准 英国国家标准 美国APQC标准(美国生产力与质量中心American Productivity and Quality Center),知识管理国家标准,框架 术语 组织文化 知识活动 实施指南 评价,知识管理业务流程 知识管理成熟度模型K3M 知识管理评估模型,上次课程内容回顾,元数据 召回率(Recall) 检索出的相关文档数和文档库中所有的相关文档数的比率 衡量的是搜索引擎的查全率 精度(Precision) 检索出的相关文
3、档数与检索出的文档总数的比率 衡量的是搜索引擎的查准率,语义Web,语义Web的基础架构Tim Berners-Lee,2000,语义网书籍推荐,语义网书籍推荐,元数据表示语言,标记语言 标准通用标记语言SGML 超文本标记语言HTML 可扩展标记语言XML 虚拟现实模型语言VRML 无线标记语言WML 元数据标准 Dublin Core HL7(描述医学网络资源的元数据 ) 教育资源元数据 机读目录(MARC),XML,性质 W3C于1998年2月发布的一种标准 是SGML的一个简化子集 可扩展标记语言 特点 较好地解决了HTML无法表达数据内容等问题 允许各个组织、个人建立适合自己需要的标
4、记集合,XML与HTML比较,文档的3个要素 数据、结构以及显示方式 HTML 显示方式内嵌在数据中 在创建文本时,要时时考虑输出格式 创建文档的重复工作量大 不易抽取语义信息 XML 显示格式从数据内容中独立出来,保存在样式单文件(Style Sheet)中 自我描述性质能够很好地表现许多复杂的数据关系,XML结构,文件头 与HTML类似,是可选的 文件主体 包括一个或多个元素 形式是一棵分级的树 混杂的“结尾部分” 由注释、处理指令和空白组成 注释用表示,可在文档中任意位置,元素(Element),表示方法 由开始标记、结束标识以及标识之间的数据构成 标记之间的数据被认为是元素的值 每个元
5、素都有不同的标记名 王力 元素名是director 元素值是“王力” 王力 元素名是actor 元素值是“王力”,元素要点,关键的3点 所有元素必须有结束标记 所有元素必须正确嵌套,不允许交迭 所有属性值必须加引号 注意点 XML文档主体有且仅有一个XML根元素 可以嵌套XML元素,形成一棵树形结构,XML文档例子, 数据结构 许卓群等 数据挖掘 韩家炜等 ,例子的树状结构,XML属性,给元素提供进一步的说明信息 必须出现在起始标记中 以名称/取值对出现,属性名不能重复 名称与取值之间用等号“=”分隔 用引号把取值引起来 例如 100000 说明了工资的货币单位是人民币元,XML处理器,目的
6、解析XML文档 提供对XML文档内容和结构的访问 文档对象模型(Document Object Model,DOM) 将完整的XML转换成一棵树的形式放在内存中 供随机访问元素、属性 XML简单API(Simple API for XML,SAX) 采用事件驱动模型 通过标记的起止来触发事件 DOM与SAX的比较(讨论),处理指令(Processing Instruction),目的 给XML处理器提供信息,使其能够正确解释文档内容 表示 起始标记是“” 方法 XML分析器把这些信息原封不动地传给应用程序 由应用程序来解释这个指令 遵照它所提供的信息进行处理,两种处理指令,XML声明 必须包括
7、version属性,指明所采用的XML的版本号,而且它必须在属性列表中排在第一位 standalone属性表明该XML文档是否和一个外部文档类型定义DTD配套使用 encoding属性则指明了数据所采用的编码标准 XSL样式单引用 告诉XSL样式单解析器,样式单的类型是text-xsl 类型text-xsl可以在文档contacts.xsl中找到,XML的名字空间,背景 由于XML对互操作性的支持,每个人都可以创建属于自己的XML词汇 不同的开发者会用相同的元素来代表不同的实体 作用 为XML文档元素提供了一个上下文 允许开发者按一定的语义来处理元素 为什么引入NS(命名空间) 讨论,XML
8、NS 例子,?xml version=1.0? hamburgers xmlns:purchase=/franchise/prices xmlns:sales=/customer/prices hamburger lowfat=dream on nameCowBurger/name descriptionGreasy and good./description purchase:price0.99/price sales:price2.99/price /hamburger /hamburgers,XSL(Extensib
9、le Stylesheet Language),背景 用标准的DOM API来实现XML数据的交互,是十分单调乏味的 如想找到所有满足某些条件的元素,或转换为简单的HTML表格,必须手工书写代码遍历整棵树来寻找 目的 为标准化及简化人们完成这些任务所需做的工作,食品的例子,XML文档 月饼 中秋节食用的传统食品 2.99 ,HTML文档 食品 月饼, 中秋节的传统 食品, 2元 ,XSL文件, 选取了当前结点的所有食品子结点 hamburgers 标识出符合给定条件的结点 , , 取结点中各个元素的值 ,XSL用途,增强了互操作性 XML数据转换为HTML 从一种XML格式到另一种XML格式之
10、间的转换 开发人员不用为了描述某种类型的数据而采用通用的词汇 某个人向你的系统发送了一篇XML文档,而你的系统不认识它所采用的XML词汇 只要进行一次简单的XSL转换就可以得到自己熟悉的词汇,文档类型定义 DTD,目的 定义XML文档结构,即其中的元素、属性以及元素之间关系的 定义了文件中的元素能用什么名字,能放在什么位置,应该怎样组合 可以检测XML文档的结构是否正确 例如描述一组,其中每个又可以包含若干个 DTD中应该有语句: 生成的表 :管乐弦乐器乐,DTD 引用,内部引用 包含在XML文档的前导说明部分 如 文档体 外部引用 作为一个外部文档被引用 如 文档体 SYSTEM指一个作者或
11、组织所编写的通用的DTD 或是 PUBLIC 指由权威机构制订的、提供给特定行业或公众使用的DTD,DTD中ETD(元素类型声明),作用 声明所有有效的文档元素 结构 类型 空元素类型 使用空元素标记,元素中没有内容 ANY元素类型 元素中可以包含任何内容 父元素类型 元素中可以包含子元素 在DTD中通过正则表达式规定子元素出现的顺序和次数 混合元素类型 元素中可以包含文本 文本之间可以有选择地插入子元素,子元素出现的顺序和次数不受限制,XML Schema,DTD缺点 采用了非XML的语法规则 不支持数据类型 扩展性较差 XML模式己经渐有取代DTD的趋势 拥有比DTD更强大的功能 用于更精
12、确和有效地描述XML文档结构,XML模式的优点,一致性 直接借助XML自身的特性 利用XML的基本语法规则 定义XML文档的结构 不必再利用一种特定的形式化的语言 扩展性 引入了数据类型、命名空间 在基本数据类型基础上用户可自己扩展数据类型 互换性 利用模式能够书写XML文档并验证文档的合法性 对不同的模式进行转换,以实现更高层次的数据交换 规范性 利用元素的内容和属性来定义XML文档的整体结构 基于XML,更具有规范性,数据类型,用途 为Element Type和Attribute Type指定数据类型 基本数据类型 (10种) entity,entities,enumeration,id,
13、idref,idrefs,nmtoken,nmtokens,notation和string 扩展数据类型 bin.baSe64,bin.heX,boolean,char,date,dateTime,dateTime.tz,fixed.14.4,float,int,number,timetime.tz,i1 ,i2, i4,r4, r8,ui1, ui2,ui4, uri,uuid,XMLS元素类型,基本格式 取值及含义 (略),XMLS属性类型,基本格式 取值及含义 (略),数据类型的使用例子(1),定义元素“名字”和“生日” 其中string和date类型都是Schema中自带的基本数据类型
14、 minOccurs和maxOccurs是最少和最多出现次数的约束,这里表示有而且只出现一次,数据类型的使用例子(2),扩展数据类型 Schema中没有规定的类型,如“性别”类型 定义例子 注释 name属性是该数据类型的名称 数据类型由restriction子元素进行约束 该元素中的base属性是基类型,元数据自动抽取技术,预处理 剔除在格式、内容、语言等方面存在问题或严重缺失的文档 产生格式相对规整的文本文档 提取元数据 由数字化文档元数据的规范定义,产生提取元数据的各种模式 依据元数据模式进行数字化文档的挖掘与匹配 利用与数字化文档相关的启发式规则和经验规则,有效提取元数据,MathML
15、,含义 Mathematical Markup Language 用途 用来描述数学符号、纪录其结构和内容 目标 是在Web上实现能像HTML处理文本一样,处理数学问题,例:x2 + 4x + 4 =0,apply plus/ apply power/ cix/ci cn2/cn /apply apply times/ cn4/cn cix/ci /apply cn4/cn /apply,SMIL,含义 Synchronized Multimedia Integration Language 用途 一种基于XML的表述多媒体演示的语言 将一组独立的多媒体对象整合为一个多媒体演示,SMIL例子,
16、HTMLHEADSTYLE .time behavior:url(#default#time); /STYLE/HEAD BODY DIV CLASS=time t:timeline=seq P class=time t:dur=1 This appears for one second and goes away/P P class=time t:dur=1 This appears after one second, remains visible for one second and goes away /P P class=time t:dur=1 This appears after
17、 two seconds, remains visible for one second and goes away /P /DIV/BODY/HTML,CDF,含义 Channel Definition Format 一种开放的规格 允许Web的发布者经常更新信息或是频道 CDF起到了频道内容目录的作用 用户仅需选择一下频道 信息就会从Web服务器定时的传递到客户端,资源描述语言RDF,资源描述框架语言RDF,采用元数据来索引网络上的信息 使用RDF(Resource Description Framework)来描述元数据以及元数据之间的关系 元数据是“关于数据的数据”,是用来描述网络资源
18、的数据。 RDF是处理元数据的基础,它为在应用程序之间交换机器可理解的网络数据提供了可互操作性。,RDF的应用领域,RDF可以应用在很多领域中 在资源发现中,RDF可以增强搜索引擎语义处理能力 在编目领域中,RDF可以用来描述某个网站、网页之间或者数字图书馆中的内容及内容之间的关系 采用RDF的智能主体(Agent)能够提高机构之间知识共享和交换的能力,RDF的作用?,RDF (Resource Description Framework)来描述元数据以及元数据之间的关系 长江的XML描述文档, 6300 kilometers western Chinas Qinghai-Tibet Plat
19、eau East China Sea ,Here is data about the Yangtze River. It has a length of 6300 kilometers. Its startingLocation is western Chinas Qinghai-Tibet Plateau. Its endingLocation is the East China Sea.,XML - RDF,RDF格式, 6300 kilometers western Chinas Qinghai-Tibet Plateau East China Sea ,RDF provides an
20、ID attribute for identifying the resource being described.,The ID attribute is in the RDF namespace.,Add the fragment identifier symbol to the namespace.,1,2,3,RDF格式 (cont.),命名规则,RDF格式, value value . ,使用RDF格式的好处,The RDF format, if widely used, will help to make XML more interoperable: Tools can inst
21、antly characterize the structure, this element is a type (class), and here are its properties”. RDF promotes the use of standardized vocabularies . standardized types (classes) and standardized properties. The RDF format gives you a structured approach to designing your XML documents. The RDF format
22、 is a regular, recurring pattern. It enables you to quickly identify weaknesses and inconsistencies of non-RDF-compliant XML designs. It helps you to better understand your data! You reap the benefits of both worlds: You can use standard XML editors and validators to create, edit, and validate your
23、XML. You can use the RDF tools to apply inferencing to the data. It positions your data for the Semantic Web!,Network effect,Interoperability,使用RDF格式的缺点,受限制:在设计XML文件时受到RDF格式的约束. RDF使用命名空间来唯一识别类(types /classes), 属性和资源。要求对命名空间有准确的理解。 必须掌握RDF格式的语法。,唯一识别资源,Earlier we said that RDF is very concerned abou
24、t uniquely identifying the type (class) and the properties. RDF is also very concerned about uniquely identifying the resource, e.g., 6300 kilometers western Chinas Qinghai-Tibet Plateau East China Sea ,This is the resource being described. We want to uniquely identify this resource.,rdf:ID,The valu
25、e of rdf:ID is a relative URI. The complete URI is obtained by concatenating the URL of the XML document with # and then the value of rdf:ID, e.g., 6300 kilometers western Chinas Qinghai-Tibet Plateau East China Sea ,Suppose that this RDF/XML document is located at this URL: /geog
26、raphy/rivers. Thus, the complete URI for this resource is:,Yangtze.rdf,/geography/rivers#Yangtze,xml:base,On the previous slide we showed how the URL of the document provided the base URI. Depending on the location of the document is brittle: it will break if the document is moved
27、, or is copied to another location. A more robust solution is to specify the base URI in the document, e.g., 6300 kilometers western Chinas Qinghai-Tibet Plateau East China Sea ,Resource URI = concatenation(xml:base, #, rdf:ID) = concatenation(/geography/rivers, #, Yangtze) = http
28、://geography/rivers#Yangtze,rdf:about,不使用相对的URI,而是用rdf:about 标识出完整的资源URI。, 6300 kilometers western Chinas Qinghai-Tibet Plateau East China Sea ,RDF三元组-资源/属性/值,The RDF Format = triples!,The fundamental design pattern of RDF is to structure your XML data as resource/property/value triples
29、!,The value of a property can be a literal (e.g., length has a value of 6300 kilometers). Also, the value of a property can be a resource, as shown above (e.g., property-A has a value of Resource-B, property-B has a value of Resource-C). We will see examples of properties having a resource value in
30、a little bit., Value-C ,value of property-A,value of property-B,Notice that the RDF design pattern is an alternating sequence of resource-property. This pattern is known as striping.,命名规范,类名的第一个字母大写,属性名的第一个字母小写。便于快速识别类名,属性名。, 6300 kilometers western Chinas Qinghai-Tibet Plateau East China Sea ,upper
31、case,lowercase,RDF Model (graph),Legend: Ellipse indicates Resource Rectangle indicates literal string value,rdf:Description + rdf:type,There is still another way of representing the XML. This way makes it very clear that you are describing something, and it makes it very clear what the type (class)
32、 is of the thing you are describing:, 6300 kilometers western Chinas Qinghai-Tibet Plateau East China Sea ,This is read as: This is a Description about the resource /geography/rivers#Yangtze. This resource is an instance of the River type (class). The /geography
33、/rivers#Yangtze resource has a length of 6300 kilometers, a startingLocation of western Chinas Qinghai-Tibet Plateau, and an endingLocation of the East China Sea.,Note: this form of describing a resource is called the long form. The form we have seen previously is an abbreviation of this long form.
34、An RDF Parser interprets the abbreviated form as if it were this long form.,Alternative,Alternatively we can use rdf:ID rather than rdf:about, as shown here:, 6300 kilometers western Chinas Qinghai-Tibet Plateau East China Sea ,Equivalent Representations!,Note: In the RDF literature the examples are
35、 typically shown in this form.,RDF Namespace,术语,As you read the RDF literature you may see the following terminology: Subject: this term refers to the item that is playing the role of the resource. predicate: this term refers to the item that is playing the role of the property. Object: this term re
36、fers to the item that is playing the role of the value.,RDF Parser,There is a nice RDF parser at the W3 Web site:,/RDF/Validator/,This RDF parser will tell you if your XML is in the proper RDF format.,Example #2, 6300 kilometers western Chinas Qinghai-Tibet Plateau East China Sea The
37、 Three Gorges Dam 1.5 miles 610 feet $30 billion ,Yangtze2.xml,Modify the following XML document so that it is RDF-compliant:,Note the two types (classes),River,Dam,Instance: Yangtze Properties: length startingLocation endingLocation,Instance: ThreeGorges Properties: name width height cost,Dam - out
38、 of place, 6300 kilometers western Chinas Qinghai-Tibet Plateau East China Sea The Three Gorges Dam 1.5 miles 610 feet $30 billion ,Dam,Types (classes) contain properties . Here we see the River type containing the properties - length, startingLocation, and endingLocation. It also shows River contai
39、ning a type - Dam. Thus, there is a Resource that contains another Resource. This is inconsistent with RDF design pattern. (We are seeing one of the benefits of using the RDF format - to identify inconsistencies in an XML design.),Property value must be a Literal or a Resource,6300 kilometers,proper
40、ty,Value is a Literal, The Three Gorges Dam 1.5 miles 610 feet $30 billion ,property,Value is a Resource,Modified XML (to make it consistent), 6300 kilometers western Chinas Qinghai-Tibet Plateau East China Sea The Three Gorges Dam 1.5 miles 610 feet $30 billion ,Yangtze2,v2.xml,The Yangtze River ha
41、s an obstacle that is the ThreeGorges Dam. The Dam has a name - The Three Gorges Dam. It has a width of 1.5 miles, a height of 610 feet, and a cost of $30 billion.,RDF Format, 6300 kilometers western Chinas Qinghai-Tibet Plateau East China Sea The Three Gorges Dam 1.5 miles 610 feet $30 billion ,Cha
42、nged id to rdf:ID,Added the # symbol,As always, the other representations using rdf:about and rdf:Description are available.,RDF Model (graph), The Three Gorges Dam 1.5 miles 610 feet $30 billion , 6300 kilometers western Chinas Qinghai-Tibet Plateau East China Sea ,Three-Gorges-Dam.rdf,Alternativel
43、y, suppose that someone has already created a document containing information about the Three Gorges Dam:,Yangtze.rdf,Then we can simply reference the Three Gorges Dam resource using rdf:resource, as shown here:,Note: reference is to a resource, not to a file,Anyone, Anywhere, Anytime Can Talk About
44、 a Resource,In all of our examples we have provided a unique identifier to resources, e.g.,/geography/rivers#Yangtze,Consequently, if another RDF document identifies the same resource then the data that it specifies gives additional data about that resource. An aggregator tool wil
45、l be able to collect all data about a resource and present a consolidated set of data for the resource. Thats powerful!,rdf:ID versus rdf:about,When should rdf:ID be used? When should rdf:about be used? When you want to introduce a resource, and provide an initial set of information about a resource
46、 use rdf:ID When you want to extend the information about a resource use rdf:about The RDF philosophy is akin to the Web philosophy. That is, anyone, anywhere, anytime can provide information about a resource., 6300 kilometers western Chinas Qinghai-Tibet Plateau East China Sea ,/
47、geography/rivers/yangtze.rdf, Dri Chu - Female Yak River Tongtian He, Travelling-Through-the-Heavens River Jinsha Jiang, River of Golden Sand ,/yangtze-alternate-names.rdf, 6300 kilometers western Chinas Qinghai-Tibet Plateau East China Sea Dri Chu - Female Yak River Tongtian He, Travelling-Through-the-Heavens River Jinsha Jiang, River of Golden Sand ,Aggregated Data!,Aggregator tool collects data about the Yangtze,A distributed network of data!, The Three Gorges Dam 1.5 miles 610 feet $30 billion , 6300 kilometers western Chinas Qinghai-
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年中煤矿山建设集团安徽安厦房地产有限责任公司中层管理人员招聘6名考试参考试题及答案解析
- 2026青岛海发国有资本投资运营集团有限公司招聘笔试备考试题及答案解析
- 2026黑龙江省沾河林业局有限公司公开招聘19人笔试备考题库与答案解析
- 2026射阳县卫生健康委员会直属事业单位公开招聘工作人员考试相关事项笔试备考题库与答案解析
- 2026上海市民办扬波中学秋季招聘教师笔试备考题库及答案解析
- 2026成都市武侯区人民政府簇桥街道办事处招聘编外人员(8人)笔试模拟试题及答案解析
- 2026西咸新区泾河第六幼儿园就业见习招聘(2人)笔试备考题库与答案解析
- 高邮市守正传媒集团有限公司公开招聘工作人员5人考试参考题库及答案解析
- 2026麻栗坡县八布乡人民政府招聘边境联防员(5人)考试参考题库及答案解析
- 2027年交通银行天津分行校园招聘岗位笔试备考题库与答案解析
- 二年级(上)语文1-8单元高频考点默写单
- 国信证券笔试真题题库及标准答案(2026完整版)
- GB/T 1345-2026水泥细度检验方法筛析法
- TB 10811-2024 铁路基本建设工程设计概(预)算费用定额
- 实验室质量管理培训课件
- 《储能技术概论双语课程》课件-抽水蓄能电站的能量转换过程
- 2025年普通高中学业水平测试音乐试题及答案
- 2025-2026学年人教版一年级数学上册第二单元6~10的认识和加、减法素养通关试卷(含答案)
- CE认证培训课件
- 烟花爆竹培训试题及答案
- DBJ51-T 040-2021 四川省工程建设项目招标代理操作规程
评论
0/150
提交评论