【问题标题】:How to display RDF data described by Fresnel vocabulary?如何显示菲涅耳词汇描述的RDF数据?
【发布时间】:2014-11-04 11:26:54
【问题描述】:

我正在研究语义网,同时尝试创建一个简单的单页应用程序 (SPA)。

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

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

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

我发现了一个看起来像 JQuery fresnel engine 的东西,但我缺少一些关于如何使用它的示例。

问题:

  1. 如何使用这样的引擎来显示下面的数据?
  2. 建议使用菲涅耳解决此问题吗?
  3. 如果没有,您有什么建议?

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

要显示的RDF对象

:Chris rdf:type foaf:Person ;
       foaf:name "Chris Bizer" ;
       foaf:mbox <mailto:chris@bizer.de> ;
       foaf:mbox <mailto:bizer@gmx.de> ;
       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 .

【问题讨论】:

  • 我知道我在一个过于笼统的问题的边缘踮着脚尖,但我仍然觉得这对未来的其他用户可能很有价值..

标签: javascript rdf semantic-web fresnel


【解决方案1】:

如何使用这样的引擎来显示下面的数据?

使用FSL 将节点映射到DOM 选择器

推荐使用菲涅耳解决这个问题吗?

看来Linked Data Platform 已经完成了这项工作。

参考文献

【讨论】:

  • 好答案,我会一直等到有菲涅尔引擎实践经验的人回复,但给了你+1。感谢您的宝贵时间。
猜你喜欢
  • 1970-01-01
  • 2013-04-28
  • 1970-01-01
  • 1970-01-01
  • 2019-09-04
  • 2017-10-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多