简体   繁体   English

如何将 RDFS 转换为 RDFS?

[英]How to transform RDFS to RDFS?

I have two RDF schemas and I need to convert one to another.我有两个 RDF 模式,我需要将一个转换为另一个。
Is there any transformation language analogue to XSLT just for RDFS?是否有任何转换语言类似于 XSLT 仅用于 RDFS?
I'm looking for a possible implementation in .NET, but other platforms are welcomed as well.我正在寻找 .NET 中的可能实现,但也欢迎其他平台。

I would load the RDF into a triple store with SPARQL 1.1 support, and then use SPARQL CONSTRUCT queries to generate RDF that matches the target RDF schema.我会将 RDF 加载到支持 SPARQL 1.1 的三元存储中,然后使用 SPARQL CONSTRUCT 查询来生成与目标 RDF 模式匹配的 RDF。

Probably it takes more than one CONSTRUCT query if the structure of your data is on the complex side.如果您的数据结构比较复杂,可能需要不止一个 CONSTRUCT 查询。

In terms of how you implement the transformation I'd go with cygri's suggestion.关于如何实现转换,我会根据 cygri 的建议来 go 。 Though it may be possible to do it entirely at the API level depending on the complexity of your transformation.尽管根据转换的复杂性,可能完全在 API 级别完成。

Try out dotNetRDF if you want a.Net API for doing this ( disclaimer - I develop this ).如果您想要一个 .Net API 来执行此操作,请尝试dotNetRDF免责声明 - 我开发了这个)。 It has a SPARQL 1.1 engine built in and a fairly comprehensive API for manipulating RDF directly它有一个内置的 SPARQL 1.1 引擎和一个相当全面的 API 用于直接操作 RDF

AFAIK there is no general analogue to XSLT for RDF, there have been a few attempts at designing such a thing but I don't know of any that have actually been particularly popular or widely used. AFAIK 对于 RDF,没有与 XSLT 类似的通用类似物,在设计这样的东西方面已经进行了一些尝试,但我不知道有什么实际上特别流行或广泛使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM