PIXNET Logo登入

英國旅遊-英國民宿, 倫敦遊記, 英國海外婚紗

跳到主文

個人生活筆記,網路搜集的趣聞趣事(UK B&B, 英國旅遊, 英國民宿, 倫敦民宿, 湖區民宿, 愛丁堡民宿,英國倫敦旅遊資訊:必玩大英博物館、倫敦鐵橋、大笨鐘、白金漢宮等著名倫敦景點,以及英國旅遊行程、購物美食等豐富倫敦旅遊資訊,整理英國旅遊, 英國民宿, UK B&B, 交通, 行程規劃, 住宿, 租屋, 地鐵, 火車, 國鐵,輕鬆搞定倫敦自由行,民宿選擇與推薦)


部落格全站分類:休閒旅遊

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 6月 05 週六 201003:55
  • Protege錯誤An error related to DOT的解決辦法




Protege錯誤An error related to DOT的解決辦法


當時安裝protege3.3後,用示例測試,當調用OWLVizTab時總出現An error related to DOT:


到處找原因找不著,是一個叫Graphviz的外掛程式沒有安裝,於是到處找這個外掛程式,最後啃半天英文終於在這裡http://www.graphviz.org/Download_windows.php找到了這個外掛程式,下載後安裝,以為可以了,可是仍然出現這樣的問題。


這個問題再不解決,本體也就無從做起,所以鐵了心把它給解決,在W3C論壇上找到解決辦法。
出錯原因:
       事實上出錯圖片已經提示了,為“與DOT應用程式相關的錯誤出現了,原因很可能是OWL VIZ找不到DOT應用程式,請確保DOT應用程式的路徑設置正確”,這點英文倒不難懂,只是不知道DOT是個什麼東西就難辦,實質上DOT就是Graphviz程式中的一個可執行檔,功能是生成關係圖的。
       那麼既然安裝了Graphviz這個程式,那為什麼還出錯呢?其實是Protege沒能調用成功,也就是提示說的路徑設置不正確。
解決辦法:
      
安裝graphviz2.12.exe檔(當然也可是其它版本),可以預設路徑安裝(C:\Program Files\ATT\Graphviz\bin)也可安在其它地方,但要清楚自己安裝在哪了,即記下這個路徑,然後找到protege的安裝目錄,在該目錄下找到plugins資料夾下的dfki.protege.ontoviz 中的protege.properties文件,點右鍵用記事本找開。
      
檔內容為:
#Protege Properties
#Thu Nov 09 12:33:49 PST 2000
dot.fontsize=-2
mainframe.rectangle=81\ 95\ 918\ 616
dot.font=Arial
dot.command=C\:\\Program\ Files\\graphviz\\bin\\dot
問題就出在dot.command=後面的路徑上,只有把這個路徑改為剛安裝的Graphviz外掛程式中dot.exe檔的路徑才行,但改不是直接的粘貼,可以看到有些地方是雙斜線,那麼可以仿照修改如改為:dot.command=C\:\\Program\ Files\\ATT\\graphviz\\bin\\dot
保存後測試就行了。




(繼續閱讀...)
文章標籤

英國旅遊民宿推薦 發表在 痞客邦 留言(0) 人氣(190)

  • 個人分類:Protege
▲top
  • 6月 05 週六 201003:36
  • Install Protégé and Jess

Protégé 
Download Protégé
        http://protege.stanford.edu/download/download.html
(繼續閱讀...)
文章標籤

英國旅遊民宿推薦 發表在 痞客邦 留言(0) 人氣(156)

  • 個人分類:Protege
▲top
  • 6月 05 週六 201003:19
  • How to write Protege-OWL API?


Protégé Plug-in API is a huge program, consists of well-known packages, such as Jena, Xerces, log4j, Junit, etc. If you have no intention of updating the source code, you can pack the sources into jar files for the convenience in the future.
Installation & Getting Started
Download the sources of Protégé-OWL 3.2.1 and Core Protégé and Protégé-Frames 3.2.1
Unzip the files
Copy the sources of Protégé-OWL and Core Protégé to a directory /src.
Protégé-OWL will create directories and files under edu/stanford/smi/protegex
Core Protégé will create directories and files under edu/stanford/smi/protege
Copy the JAR files to /lib. I suggest that copy the Protégé-OWL library first, it includes lots of JAR files. While copy the Core Protégé to /lib will contain a duplicate JAR (junit.jar), ignore it, and copy the other two JAR files (looks.jar and unicode_panel.jar) to the library.
Using Java IDE to create a new project in , add all JAR in the /lib to java classpath, and then compile all .java files, where the .class files will be created in /class.
Make jar files. Change directory to /class and type the following commands:
jar cvf protegex.jar edu/stanford/smi/protegex/*
jar cvf protege.jar edu/stanford/smi/protege/*
Copy the /lib/*.jar, protegex.jar and protege.jar to your working directory .
A Sample Test Program
In your you can write a small test program, such as the following:
package test;
import edu.stanford.smi.protegex.owl.model.OWLModel;
import edu.stanford.smi.protegex.owl.model.OWLNamedClass;
import edu.stanford.smi.protegex.owl.ProtegeOWL;
public class OWLAPIDemoApplication {
public static void
main(String[] args) {
    OWLModel owlModel = ProtegeOWL.createJenaOWLModel();
    owlModel.getNamespaceManager().setDefaultNamespace("http://hello.com#");
    OWLNamedClass worldClass = owlModel.createOWLNamedClass("World");
    System.out.println("Class URI: " + worldClass.getURI());
  }
}
Execute this program stand-alone. The output should be Class URI: http://hello.com#World.
(繼續閱讀...)
文章標籤

英國旅遊民宿推薦 發表在 痞客邦 留言(0) 人氣(216)

  • 個人分類:Protege
▲top
  • 6月 05 週六 201003:13
  • 在JessTab內使用FuzzyJ



Protege是很有名的一套編寫ontology的軟體
JessTab可讓Protege使用用JAVA編寫的推理引擎JESS
目前Protege已經都把JessTab的Plug-in裝好了
只要下載JESS放進plug-in的檔案夾中即可以使用
若需使用到模糊變數
我們不論是單獨在JESS中或使用JAVA都可以用FuzzyJ這個套件
但若要在Protege內借助JessTab來整合Ontology、推理語言與模糊變數時
原始的JessTab會無法使用模糊變數
解決的方法為取得JessTab的原始碼
在JessTabEngine.java中將建構式裡的engine = new Rete();
置換成engine = new FuzzyRete();
當然也要記得import FuzzyJ的JAR檔
Compile完後打包成JessTab的JAR檔並置換原先的JAR檔
就可以在JessTab內使用FuzzyJ啦


(繼續閱讀...)
文章標籤

英國旅遊民宿推薦 發表在 痞客邦 留言(2) 人氣(169)

  • 個人分類:Protege
▲top
1

最新文章

  • 裝飾花
  • 拿鐵拉花
  • 小物
  • 桌布
  • 睫毛膏
  • 法式檸檬塔
  • 抹茶原料
  • 披薩
  • 炒麵
  • 手工餅乾

熱門文章

  • (2)可憐我走不進妳的世界  2002-08-09 23:32:54
  • (3)e8917_900101  2003-03-14 04:48:34
  • (3)我不能...
  • (2)靠近 2004-06-14 01:40:08
  • (3)分合聚散 2005-03-09 09:24:28
  • (3)如果有這麼一個人... 2005-08-06 01:14:00
  • (12)2003年 12月12日 生日快樂
  • (11)2003 10/10 墾丁天氣晴
  • (3)我的思悸繫伴的我約定過的司機!
  • (5)一千多個日子

動態訂閱

文章分類

toggle 婚禮結婚 (1)
  • 婚禮準備 (3)
toggle 英倫生活 (3)
  • 寫在出發前 (11)
  • 前往英國 (7)
  • 生活在英國 (29)
toggle 旅遊行程規劃 (2)
  • 住宿證明 (0)
  • 行程規劃 (2)
toggle 訂票資訊 (3)
  • 火車訂票 (1)
  • 劇院訂票 (0)
  • 倫敦地鐵Travel Card (0)
toggle 英國必買特色禮物 (4)
  • 英國必買-食品 (2)
  • 英國必買-用品 (2)
  • 英國必買-精品名牌 (1)
  • 英國必買-特色商品 (0)
toggle 倫敦地鐵教戰手冊 (1)
  • 倫敦地鐵車站介紹 (0)
toggle 倫敦房屋出租 (2)
  • [民宿][租屋][短租]短期出租(1~7天) (0)
  • [民宿][租屋][房屋出租]長期出租(7天以上) (0)
toggle 民宿B&B資訊 (2)
  • 湖區民宿 (0)
  • 英國民宿B&B (2)
toggle 倫敦旅遊景點 (5)
  • 倫敦旅遊 (1)
  • 英格蘭北區 (0)
  • 英格蘭中央區 (0)
  • 英格蘭西南區 (0)
  • 英格蘭東南區 (0)
toggle 寫作 (4)
  • 【小說】 (100)
  • 心情日記(2010) (80)
  • 心情日記(2002) (100)
  • 心情日記(2004) (100)
toggle 設計大師 (1)
  • Painter(插畫, 漫畫) (48)
toggle 語意網路 (6)
  • Protege (4)
  • 語意印射 (1)
  • Semantic (0)
  • Ontology (1)
  • JESS (0)
  • Fuzzy (0)
toggle 電腦筆記 (22)
  • ajax (0)
  • ExtJS (0)
  • jQuery (1)
  • SEO (0)
  • ZK (0)
  • ASP.net (0)
  • Android (0)
  • JBoss (0)
  • CSS (3)
  • PHP (0)
  • Eclipse (1)
  • C++ (0)
  • Java (3)
  • C# (0)
  • 資料探勘 (0)
  • 電腦硬體 (0)
  • 資訊經濟 (0)
  • 免費資源 (0)
  • 藥粧美容 (0)
  • 節約能源 (0)
  • 學術研究 (0)
  • 資訊系統開發 (2)
toggle Facebook (2)
  • 應用淚 (0)
  • 開發類 (0)
toggle 投資理財 (1)
  • 股市理財 (0)
toggle 網站架設 (4)
  • Drupal (0)
  • Wordpress (0)
  • Tomcat架設 (0)
  • Discus (0)
toggle WEB SERVICE (6)
  • 01-基礎介紹 (0)
  • 02-環境架設 (0)
  • 03-程式撰寫 (0)
  • 04-網路服務 (0)
  • 05-SCA與Web Service (0)
  • 06-Enterprise Service Bus (0)
toggle Unix (2)
  • FreeBSD (0)
  • Linux (0)
toggle 裝置藝術 (2)
  • 公共藝術作品欣賞 (0)
  • 公共藝術設置 (0)
toggle 互動裝置與程式設計 (11)
  • ShiVa (0)
  • Arduino入門介紹 (0)
  • Arduino教學 (0)
  • Processing (0)
  • 感測元件 (0)
  • IO控制 (0)
  • 步進馬達 (0)
  • 無線網路 (0)
  • 案例搜集 (0)
  • 作品欣賞 (0)
  • 有線網路 (0)
toggle 政府資源 (3)
  • 創新育成 (1)
  • 產業補助 (13)
  • 展演資訊 (0)
toggle 攝影之美 (1)
  • 攝影 (2)
toggle 職場工作 (5)
  • 面試準備 (0)
  • 自傳撰寫 (0)
  • 職場進修 (2)
  • 知識分享 (18)
  • 產業要聞 (0)
  • 未分類文章 (1)

參觀人氣

  • 本日人氣:
  • 累積人氣:

文章精選

個人資訊

英國旅遊民宿推薦
暱稱:
英國旅遊民宿推薦
分類:
休閒旅遊
好友:
累積中
地區:

文章搜尋