首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何显示菲涅耳词汇表描述的RDF数据?

如何显示菲涅耳词汇表描述的RDF数据?
EN

Stack Overflow用户
提问于 2014-11-04 11:26:54
回答 1查看 370关注 0票数 1

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

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

我完全控制了本体的格式(这意味着我可以声明它们是否被表示为RDF/XML、ntripple、turtle等,我还可以决定是否要使用本体来描述数据的显示方式)。

根据我在菲涅耳手册中读到的内容,我认为这是描述本体论的“外观”的一个很好的方法。

我发现了一个看起来像JQuery菲涅耳发动机的东西,但是缺少一些关于如何使用它的例子。

问题:

  1. 如何使用这样的引擎来显示下面的数据?
  2. 菲涅耳是什么东西,是建议使用这个问题?
  3. 如果没有,你有什么建议?

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

要显示的RDF对象

代码语言:javascript
复制
: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> .

菲涅耳造型信息:

代码语言:javascript
复制
: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 .
EN

回答 1

Stack Overflow用户

发布于 2014-11-25 03:14:21

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

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

菲涅耳是什么东西,是建议使用这个问题?

链接数据平台似乎已经将这一努力包括在内。

参考资料

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26733978

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档