找回密码
 欢迎注册
搜索
热搜: 活动 交友 discuz
楼主: 南京猿人

开源项目1:在线散件配机决策系统

[复制链接]
发表于 2007-5-24 16:00:58 | 显示全部楼层

推荐一个轻量级的ontology editor: SWOOP

SWOOP 比Protege小巧很多,用来读写ontology都很快速方便。 http://www.mindswap.org/2004/SWOOP/
 楼主| 发表于 2007-5-31 13:47:46 | 显示全部楼层
semtek写得很好,非常清晰的表达了三种建模方式的优点和缺点。不知,semtek是否能用三种方法建个unit模型,给大家下载学习?
 楼主| 发表于 2007-5-31 13:59:09 | 显示全部楼层
在附件里,我和small potato建了一个computer.owl包括了高端机配置和低端机配置两个class.然后把cpu.owl和harddisk.owl import进来,并用restriction把三者进行了关联。希望各位的owl都支持两个配置,一个高端,一个低端。假想界面上将是一个radio button的单项选择题,当用户选择高端机的时候,从radio button返回一个参数给系统,然后查询owl,返回一个高端机或者低端机的配置给界面。大家觉得如何?有建议的请跟贴。

[ 本帖最后由 南京猿人 于 2007-5-31 14:04 编辑 ]

Computer_WIth_CPU_And_Harddisk.rar

6.66 KB, 下载次数: 7

 楼主| 发表于 2007-6-8 14:26:00 | 显示全部楼层
基本实现方案:
PICsystem.jpg
1. Web Page
界面上有一个选择的radio button,上面有高端配置推荐,低端配置推荐
一个submit button。
选择radio button , click submit button.向java的webservice传一个xml
2. Java Webservice
接受到这个参数,在computer ontology上运行一个Sparql,取出这个配置的具体的电脑配置,向页面返回一个xml
3. Web page
页面根据这个返回的xml,展现出来具体的电脑配置

[ 本帖最后由 南京猿人 于 2007-6-8 14:28 编辑 ]
发表于 2007-7-3 08:44:50 | 显示全部楼层

珊珊来迟的显卡

<?xml version="1.0"?>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns="http://bbs.miforum.org/compatible-computer/VideoCard.owl#"
    xmlns:units="http://sweet.jpl.nasa.gov/ontology/units.owl#"
  xml:base="http://bbs.miforum.org/compatible-computer/VideoCard.owl">
  <owl:Ontology rdf:about="">
    <owl:imports rdf:resource="http://sweet.jpl.nasa.gov/ontology/units.owl"/>
    <owl:versionInfo rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Created with TopBraid Composer</owl:versionInfo>
  </owl:Ontology>
  <owl:Class rdf:about="#VideoCard">
    <rdfs:subClassOf rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
  </owl:Class>
  <owl:Class rdf:about="#VideoCardProperties">
    <rdfs:subClassOf rdf:resource="http://www.w3.org/2002/07/owl#Thing"/>
  </owl:Class>
  <owl:Class rdf:ID="BusType">
    <rdfs:subClassOf>
      <owl:Class rdf:ID="VideoCardProperties"/>
    </rdfs:subClassOf>
  </owl:Class>
  <owl:Class rdf:ID="Chip">
    <rdfs:subClassOf>
      <owl:Class rdf:about="#VideoCardProperties"/>
    </rdfs:subClassOf>
  </owl:Class>
  <owl:Class rdf:ID="VideoMemory">
    <rdfs:subClassOf>
      <owl:Class rdf:about="#VideoCardProperties"/>
    </rdfs:subClassOf>
  </owl:Class>
  <owl:Class rdf:ID="MemoryInterface">
    <rdfs:subClassOf>
      <owl:Class rdf:about="#VideoCardProperties"/>
    </rdfs:subClassOf>
  </owl:Class>
  <owl:Class rdf:ID="MemoryClock">
    <rdfs:subClassOf>
      <owl:Class rdf:about="#VideoCardProperties"/>
    </rdfs:subClassOf>
  </owl:Class>
  <owl:ObjectProperty rdf:ID="hasBusType">
    <rdfs:range rdf:resource="#BusType"/>
    <rdfs:domain rdf:resource="#VideoCard"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="hasChip">
    <rdfs:range rdf:resource="#Chip"/>
    <rdfs:domain rdf:resource="#VideoCard"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="hasVideoMemory">
    <rdfs:range rdf:resource="#VideoMemory"/>
    <rdfs:domain rdf:resource="#VideoCard"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="hasMemoryInterface">
    <rdfs:range rdf:resource="#MemoryInterface"/>
    <rdfs:domain rdf:resource="#VideoCard"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="hasMemoryClock">
    <rdfs:range rdf:resource="#MemoryClock"/>
    <rdfs:domain rdf:resource="#VideoCard"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="hasUnit">
    <rdfs:domain>
      <owl:Class>
        <owl:unionOf rdf:parseType="Collection">
          <owl:Class rdf:about="#MemoryInterface"/>
          <owl:Class rdf:about="#MemoryClock"/>
        </owl:unionOf>
      </owl:Class>
    </rdfs:domain>
    <rdfs:range rdf:resource="http://sweet.jpl.nasa.gov/ontology/units.owl#Unit"/>
  </owl:ObjectProperty>
  <owl:DatatypeProperty rdf:ID="hasVideoMemoryStandardName">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    <rdfs:domain rdf:resource="#VideoMemory"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="hasMemoryInterfaceValue">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#int"/>
    <rdfs:domain rdf:resource="#MemoryInterface"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="hasMemoryClockValue">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#int"/>
    <rdfs:domain rdf:resource="#MemoryClock"/>
  </owl:DatatypeProperty>
  <BusType rdf:ID="BusType_AGP"/>
  <BusType rdf:ID="BusType_PCIEXPRESS"/>
  <Chip rdf :ID="ATI1650GT"/>
  <Chip rdf :ID="NVIDIA8600GT"/>
  <Chip rdf :ID="NVIDIA7300GT"/>

  <VideoCard  rdf ID="ASUS1650GT">
    <hasBusType>
      <BusType rdf:ID="BusType_PCIEXPRESS"/>
    </hasBusType>
    <hasChip>
      <Chip rdf :ID="ATI1650GT"/>
    </hasChip>
    <hasVideoMemory>
      <VideoMemory rdf:ID="128MBDDR2">
        <hasVideoMemoryStandardName rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
        >128 DDR2</hasVideoMemoryStandardName>
      </VideoMemory>
    </hasVideoMemory>
    <hasMemoryInterface>
      <MemoryInterface rdf:ID="128bit">
        <hasMemoryInterfaceValue rdf:datatype="http://www.w3.org/2001/XMLSchema#int"
        >128</hasMemoryInterfaceValue>
        <hasUnit rdf:resource="#bit"/>
      </MemoryInterface>
    </hasMemoryInterface>
    <hasMemoryClock>
      <MemoryClock rdf:ID="666MHZ">
        <hasMemoryClockValue rdf:datatype="http://www.w3.org/2001/XMLSchema#int"
        >666</hasMemoryClockValue>
        <hasUnit rdf:resource="#MHZ"/>
      </MemoryClock>
    </hasMemoryClock>
  </VideoCard>
  <VideoCard  rdf ID="MSI8600GT">
    <hasBusType>
      <BusType rdf:ID="BusType_PCIEXPRESS"/>
    </hasBusType>
    <hasChip>
      <Chip rdf :ID="NVIDIA8600GT"/>
    </hasChip>
    <hasVideoMemory>
      <VideoMemory rdf:ID="512MBDDR2">
        <hasVideoMemoryStandardName rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
        >512MB DDR2</hasVideoMemoryStandardName>
      </VideoMemory>
    </hasVideoMemory>
    <hasMemoryInterface>
      <MemoryInterface rdf:ID="256bit">
        <hasMemoryInterfaceValue rdf:datatype="http://www.w3.org/2001/XMLSchema#int"
        >256</hasMemoryInterfaceValue>
        <hasUnit rdf:resource="#bit"/>
      </MemoryInterface>
    </hasMemoryInterface>
    <hasMemoryClock>
      <MemoryClock rdf:ID="666MHZ">
        <hasMemoryClockValue rdf:datatype="http://www.w3.org/2001/XMLSchema#int"
        >666</hasMemoryClockValue>
        <hasUnit rdf:resource="#MHZ"/>
      </MemoryClock>
    </hasMemoryClock>
  </VideoCard>
</rdf:RDF>

<!-- Created with TopBraid Composer -->

[[i] 本帖最后由 agg163 于 2007-7-3 08:48 编辑 [/i]]

VideoCard.rar

1 KB, 下载次数: 3

您需要登录后才可以回帖 登录 | 欢迎注册

本版积分规则

快速回复 返回顶部 返回列表