2014-11-04 100 views
0

我正在学习语义网,同时尝试创建一个简单的单页面应用程序(SPA)。如何显示菲涅耳词汇描述的RDF数据?

SPA应该能够显示各种rdf数据(并且还允许用户以用户友好的方式创建新的本体)。

我完全控制了本体的格式(这意味着我可以声明它们是否表示为RDF/XML,ntripples,turtle等,并且我可以决定如果我想使用本体来描述数据应该被显示)。

从我在Fresnel Manual中读到的内容中,我认为这可能是描述本体的“外观”的好方法。

我发现了什么看起来像JQuery fresnel engine,但我错过了一些关于如何使用它的例子。

问题:

  1. 我如何使用这种发动机下面显示的数据?
  2. 是菲涅耳什么建议用于这个问题的东西?
  3. 如果不是,你推荐什么?

从菲涅尔手册的一个例子:

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 . 
+0

我知道我是一个过于笼统的问题的边缘踮起脚尖,但我还是觉得这是有价值的为其他用户在未来.. – 2014-11-04 11:27:46

回答