简体   繁体   English

语义Web服务中owl-s与wsdl-s之间的区别?

[英]the difference between owl-s vs wsdl-s in semantic web services?

i am acctually dealing with semantic web services, more specifically WS composition. 我正在正确地处理语义Web服务,更具体地说是WS组合。

to add semantics in web services i find two paths (using owl-s or wsdl-s) ,so what is the limits of each solution? 为了在Web服务中添加语义,我找到了两条路径(使用owl-s或wsdl-s),那么每种解决方案的局限性是什么?

In my opinion, both OWL-S and WSDL-S are equally obsolete. 在我看来,OWL-S和WSDL-S都已经过时了。 Both approaches were conceived at a time when heavy-weight service descriptions were thought to be the best way to build a web service architecture. 这两种方法都是在认为重量级服务描述是构建Web服务体系结构的最佳方法时构思的。 Now, with the possible exception of some in-house corporate development teams, web services API's are generally based on fairly simple HTTP-based approaches, with JSON (usually) or XML (less often) as the payload. 现在,除了某些内部公司开发团队以外,Web服务API通常基于相当简单的基于HTTP的方法,并且使用JSON(通常)或XML(较少使用)作为有效负载。 They often claim to use REST as a basis for defining the service, though in many cases it's far from clear that the term is being used correctly. 他们经常声称使用REST作为定义服务的基础,尽管在许多情况下,术语使用是否正确尚不清楚。 By and large, these services are invoked through developers reading API documentation and writing code, rather than some cumbersome semi-automated process involving the processing of a service description language. 总的来说,这些服务是通过开发人员阅读API文档和编写代码来调用的,而不是通过涉及服务描述语言处理的一些麻烦的半自动化过程来调用的。

I'm not aware of any widely-used technique that can be used to describe the metadata of a modern web service of the form I describe above. 我不了解任何可用于描述我上面描述的形式的现代Web服务的元数据的广泛使用的技术。 There are approaches such as json-service , but I don't know how broadly they are used. 有一些方法,例如json-service ,但我不知道它们的使用范围。

I think the truth is that having a rich service description as a first-class object never proved to be as useful as people expected, or hoped, it was going to be. 我认为事实是,将丰富的服务描述作为一流的对象从来没有像人们期望或希望的那样有用。 It is especially true that we never achieved the flexible, dynamic composition of complex services from simpler component services envisaged in service choreography or agent-based web services . 尤其是,我们从未从服务编排基于代理的Web服务中设想的更简单的组件服务中实现复杂服务的灵活,动态组合。 I think it's also true to say that describing what service would do upon invocation proved to be a much harder problem than the early research investigations anticipated, and premature attempts at standardisation actually made the problem worse not better. 我认为,说出描述调用时将执行的服务要比早期研究调查预期的要困难得多,而且标准化的过早尝试实际上使问题变得更糟,这确实是一个难题。

If you're interested in web service composition, I strongly recommend you read some of the extensive research literature to get a sense of the scale of the effort that tried - and failed - to solve a problem that developers actually want to solve. 如果您对Web服务组合感兴趣,我强烈建议您阅读一些广泛的研究文献,以了解尝试解决(但最终失败)来解决开发人员实际想要解决的问题的规模。 Then ask yourself what problem for your users you are trying to address. 然后问问自己要解决的用户有什么问题。 Don't just invent some technology and then try to figure out what it might be useful for - that approach has been tried! 不要只是发明一些技术,然后尝试弄清楚它可能对什么有用-这种方法已经尝试过了!

SWS have still long way to go. SWS还有很长的路要走。 WSDL 2.0: RDF mapping W3C specification defines WSDL 2.0 - OWL mapping. WSDL 2.0:RDF映射W3C规范定义了WSDL 2.0-OWL映射。 The main problem is not how to describe the services in ontology, but what to do with type system. 主要问题不是如何描述本体中的服务,而是如何处理类型系统。 Linked Data is based on DL model (OWL2) which is quite different from XML Schema message descriptions. 链接数据基于DL模型(OWL2),该模型与XML Schema消息描述完全不同。 OWL 1/2 partially adopt XML datatypes, but you can't just use OWL2/XML serialization. OWL 1/2部分采用XML数据类型,但您不能仅使用OWL2 / XML序列化。 One can use OWL/RDF messages directly (passing individuals with correspondent data), but there is no standard way to define this pattern in WSDL. 可以直接使用OWL / RDF消息(向个人传递相应的数据),但是在WSDL中没有定义这种模式的标准方法。 The XML Schema is another brake here - it doesn't support multiple inheritance, so mapping between OWL / XML is not that easy (and to be fair in XML there no concept of inheritance at all). XML模式是这里的另一个障碍-它不支持多重继承,因此OWL / XML之间的映射并不是那么容易(而且公平地说,在XML中根本没有继承的概念)。

IMHO the solution would be to create a new XML Schema language, keeping the type system, but changing a structural specification to something "Linked Data friendly". 恕我直言,解决方案是创建一种新的XML Schema语言,保留类型系统,但将结构规范更改为“友好的链接数据”。 Then, provide new OWL serialization format based on say "XML Schema 2.0" specification, where all datatypes and individuals will be directly represented, so may be structurally represented in XML. 然后,基于“ XML Schema 2.0”规范提供新的OWL序列化格式,其中所有数据类型和个体将直接表示,因此可以用XML进行结构表示。 Obviously there could be a lot of questions - how to represent OWL IRI in XML Schema QNames? 显然会有很多问题-如何在XML Schema QNames中表示OWL IRI?

Kind regards, 亲切的问候,

D. D.

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

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