我正在學習語義網,同時嘗試創建一個簡單的單頁面應用程序(SPA)。如何顯示菲涅耳詞彙描述的RDF數據?
SPA應該能夠顯示各種rdf數據(並且還允許用戶以用戶友好的方式創建新的本體)。
我完全控制了本體的格式(這意味着我可以聲明它們是否表示爲RDF/XML,ntripples,turtle等,並且我可以決定如果我想使用本體來描述數據應該被顯示)。
從我在Fresnel Manual中讀到的內容中,我認爲這可能是描述本體的「外觀」的好方法。
我發現了什麼看起來像JQuery fresnel engine,但我錯過了一些關於如何使用它的例子。
問題:
- 我如何使用這種發動機下面顯示的數據?
- 是菲涅耳什麼建議用於這個問題的東西?
- 如果不是,你推薦什麼?
從菲涅爾手冊的一個例子:
RDF待顯示的對象
:Chris rdf:type foaf:Person ;
foaf:name "Chris Bizer" ;
foaf:mbox <mailto:[email protected]> ;
foaf:mbox <mailto:[email protected]> ;
foaf:depiction <http://www.wiwiss.fu-berlin.de/suhl/ueber_uns/team/Fotos/ChrisPassbild.jpg> .
菲涅爾樣式信息:
:foafGroup rdf:type fresnel:Group ;
fresnel:stylesheetLink <http://www.example.org/example.css> ;
fresnel:containerStyle "background-color: white;"^^fresnel:stylingInstructions ;
:foafPersonFormat rdf:type fresnel:Format ;
fresnel:classFormatDomain foaf:Person ;
fresnel:resourceStyle "background-color: gray;"^^fresnel:stylingInstructions ;
fresnel:group :foafGroup .
:nameFormat rdf:type fresnel:Format ;
fresnel:propertyFormatDomain foaf:name ;
fresnel:propertyStyle "border-top: solid black;"^^fresnel:stylingInstructions ;
fresnel:labelStyle "font-weight: bold;"^^fresnel:stylingInstructions ;
fresnel:group :foafGroup .
:urlFormat rdf:type fresnel:Format ;
fresnel:propertyFormatDomain foaf:homepage ;
fresnel:propertyFormatDomain foaf:mbox ;
fresnel:value fresnel:externalLink ;
fresnel:propertyStyle "border-top: solid black;"^^fresnel:stylingInstructions ;
fresnel:labelStyle "font-weight: bold;"^^fresnel:stylingInstructions ;
fresnel:group :foafGroup .
:depictFormat rdf:type fresnel:Format ;
fresnel:propertyFormatDomain foaf:depiction ;
fresnel:label fresnel:none ;
fresnel:value fresnel:image ;
fresnel:propertyStyle "border-top: solid black;"^^fresnel:stylingInstructions ;
fresnel:group :foafGroup .
我知道我是一個過於籠統的問題的邊緣踮起腳尖,但我還是覺得這是有價值的爲其他用戶在未來.. – 2014-11-04 11:27:46