Introspector/程式碼片段
以下列出所有單行語句
Introspector介面是允許從程式的InternalDataStructures?提取RDF語句的匯入和匯出例程。
我們將為以下專案構建用於資料提取的介面
[CLanG C] [CPlusPlus C++], ObjectiveC 和 JavaLang 支援來自 GccProject http://gcc.gnu.org/
[CsharpLang C#], [MicrosoftIntermediateLang MSIL] 和其他語言支援來自 DotGnuProject http://www.gnu.org/projects/dotgnu/
GnuMake
PerlInternals
ParrotMetaData
M4Language
AutoMake
AutoConf
BashDb
Glade 只是可以匯入到 Luxor 的眾多形式之一 http://luxor-xul.sourceforge.net/
資料儲存庫將是一個分散式 RDFServer,用於儲存和索引 RDFFiles。
Introspector 提取的知識表示很簡單:它是一個識別符號、標籤、ID 的列表。具有語義分配的事物,或者可能分配語義的事物。這些事物是節點、專案、塊。基本上它們是知識的基礎。 http://www.burningchrome.com/archives/unrev-ii/msg01818.html
使用者應該能夠宣告新的識別符號、替換它們,以及從系統中匯入和匯出它們
我們需要使用者宣告新資料結構的方法。Introspector 的資料宣告為所有相關工具提供了一個通用的命名系統
我們需要新的工具從各種其他系統中提取 RDF 元資料。我們為 Introspector 支援許多不同的檔案格式。更多內容將在此處新增,待辦事項:新增一個檔案格式表。我們需要能夠將各種名稱和型別的表格文字檔案轉儲到系統中。取決於 QuerySystem? Doxygen 類似的 HTML 輸出很重要。我們將支援各種 XML 格式的輸入和輸出。主要目標是轉向 RDF,因為它具有 RDF 符號的強大功能。但是使用 RDF 來註釋 XML 樹對於表示物件結構是有意義的。
NTriples 甚至比 n3 更簡單。 http://www.w3.org/2001/sw/RDFCore/ntriples/
n3 是一個簡單的 rdf 替代符號。 http://www.w3.org/DesignIssues/Notation3.html 另請參見 http://www.w3.org/2000/10/swap/Primer.html
我想使用 BootLib? http://www.boost.org/
Introspector 需要從 bash 命令列訪問。
Emacs 介面承諾了許多整合工具
Rdf 是一種資料格式,在此有最佳描述 http://www.w3.org/RDF/ 什麼是 Rdf? http://www.xml.com/pub/a/2001/01/24/rdf.html 許多人問,為什麼使用 Rdf 而不是 Xml。
* Rdf is appropiate for the introspector because of its simple syntax.
* The nodes of the compiler are naturally graphs.
* Rdf allows for information about resources to be added in when it is needed.
* MetaData is naturally stored in RDF.
* Rdf allows for the Ontology and Structure of the data to be added in after the fact.
我使用 Redland http://www.redland.opensource.ac.uk/ Redland 是一個 RDF 應用程式框架,具有許多 SwigLanguageBindings?。 http://www.redland.opensource.ac.uk/ 我們使用 Redland 與 C 模組進行互動。
我使用 Perl http://www.useperl.com/ 我使用 EulerSharp? http://eulersharp.sourceforge.net/2003/03swap/
我已經發布了 Introspector 本體的第一版,請檢視 http://introspector.sourceforge.net/2003/08/16/introspector.n3
在此節點,您可以找到 Introspected 專案的示例
http://www.nntp.perl.org/group/perl.perl6.internals/14717?show_headers=1
http://mail.gnu.org/archive/html/m4-discuss/2003-01/msg00001.html
視覺化工具將建立在以下工具鏈之上
* Data Extraction of statements from the subject
* Data filtering of only relevant information from the program
* Breaking down the data set into pages and subgraphs
* Conversion of the statements to nodes and arcs
* emitting of the graph to the graph layout language * invoking of the layout engine
* importing the results of the layout
* creation of a planar graph
* drawing of that graph
* allowing the editing of the graph by the user
* exporting of the graph to other systems.
* saving of the graph data as a resource in the introspector
使用者應該可以輕鬆地建立新的程式碼生成器
圖形佈局工具 vcg graphvis tulip xvpodb 等等
Petal2Dia : 請參閱 http://mail.gnome.org/archives/dia-list/2002-November/msg00111.html AutoDia 是 Arron 的一個很棒的模組 http://droogs.org/autodia/