silverlight 内的 Rowlex.net

发布于 2024-09-06 20:19:22 字数 148 浏览 2 评论 0原文

有没有人有在 silverlight 应用程序中使用 rowlex 生成的类的经验? 由于我们无法将这些类公开为 RIA 服务,那么使用它们的最佳解决方案是什么?如果 linqtordf 和 rowlex.net 合并到同一个解决方案中不是很好吗...

谢谢, 巴特

Has anyone experience using rowlex generated classes within a silverlight application?
Since we can't expose the classes as a RIA service, what would be the best solution to use them? Wouldn't it be nice if linqtordf and rowlex.net will be merged into a same solution...

Thx,
Bart

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦太阳 2024-09-13 20:19:22

ROWLEX 主要是为了浏览和操作内存中的 RDF 图。 RDF 图本身由 RdfDocument 类的实例表示(例如,您可以通过调用 new RdfDocument(@"C:\myRdfGraph.rdf"); 来从磁盘加载 RDF 文件。实例ROWLEX 生成的类(又名 ROWLEX 代理类)表示图中的一个节点,这些代理实例直接引用其 RdfDocument,因此,只要保留 RdfDocument,您就可以在服务器端和客户端上执行 ROWLEX。或者换句话说,将 RdfDocument 及其代理类保持在同一端。

如果您希望使用 Silverlight 在客户端处理 RDF,那么这应该不是问题。通过网络将 RDF 图作为 RDF/XML 文档发送,将客户端的图加载到 RdfDocument 中,然后您可以使用代理类的实例自由浏览/操作它。

您可能想阅读我在 < 上的回答。 a href="http://www.semanticoverflow.com/questions/212/what-is-the-perfect-programming-language-for-semantic-web-development" rel="nofollow noreferrer">这个问题 也可以更深入地了解幕后发生的事情。

ROWLEX is created primarily to browse and manipulate RDF graphs in memory. The RDF graph itself is represented by an instance of the RdfDocument class (e.g., you can load an RDF file from disk by calling new RdfDocument(@"C:\myRdfGraph.rdf");. The instances of the ROWLEX generated classes (aka ROWLEX proxy classes) represent a node in the graph. These proxy instances hold direct reference to their RdfDocument. Therefore, you may execute ROWLEX both on the server and on the client side, as long as keep the RdfDocument instance the proxy class instances in the same AppDomain. Or in other words, keep the RdfDocument and its proxy classes on the same end of the wire.

If you wish to process RDF on the client side with Silverlight, it should not be a problem. Send the RDF graph over the wire as an RDF/XML document, load the graph on the client side into the RdfDocument and you are free to browse/manipulate it with the instances of your proxy classes.

You might want to read my answer on this question, too, for deeper understanding what goes on under the hood.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文